OSPF Exercise: Campus Network Design Workshop
OSPF Exercise: Campus Network Design Workshop
OSPF Exercise: Campus Network Design Workshop
1
Figure 1: Logical Topology
2
Figure 2: Physical Topology
3
Introduction
The purpose of this exercise is to learn how to configure OSPF on a group
of Cisco routers so that they exchange network reachability information and
maintain their own routing tables dynamically.
All participants will work within a group as a team. Each group has three routers
and four switches to work with. There is a certain dependency between the
labs as the exercises progress. Make sure to maintain your configuration unless
otherwise instructed. All exercises will use a common IP addressing scheme
and network topology. As you go through the exercises all the examples are
given from the point of view of R11, the border router in group 1. Make sure
to take the examples and adapt them to your own router, network
topology and addressing scheme.
1 10.1.0.0/16 fd00:1::/32
2 10.2.0.0/16 fd00:2::/32
3 10.3.0.0/16 fd00:3::/32
4 10.4.0.0/16 fd00:4::/32
5 10.5.0.0/16 fd00:5::/32
Each group will then further partition their space like this:
4
With X being your group number (1,2,3,4,5)
Exercises
hostname R11
!
aaa new-model
aaa authentication login default local
aaa authentication enable default enable
username nsrc secret nsrc
enable secret nsrc
service password-encryption
line vty 0 4
transport preferred none
line console 0
transport preferred none
!
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
Interface Configuration
interface loopback 0
ip address 10.X.254.Y 255.255.255.255
ipv6 address fd00:X:0:fe::Y/128
!
interface GigabitEthernet1/0
ip address 10.X.1.Y 255.255.255.0
description Link to Core
ipv6 address fd00:X:1:1::Y/64
no ip redirects
no ip directed-broadcast
5
no ip proxy-arp
no shutdown
interface Fast0/0
no ip address
no shutdown
!
interface Fast0/0.64
encapsulation dot1Q 64
ip address 10.X.64.2 255.255.255.0
description Link VLAN 64
ipv6 enable
ipv6 address fd00:X:2:64::2/64
no ip redirects
no ip directed-broadcast
no ip proxy-arp
no shutdown
interface Fast0/0
no ip address
no shutdown
!
interface Fast0/0.64
encapsulation dot1Q 64
ip address 10.X.64.3 255.255.255.0
description Link VLAN 64
ipv6 enable
ipv6 address fd00:X:2:64::3/64
no ip redirects
no ip directed-broadcast
no ip proxy-arp
no shutdown
6
Testing Connectivity
1. Configure a new OSPF routing process and configure OSPF on the in-
terfaces where adjacencies need to be established, and also on any
interface that needs to have its subnets advertised by OSPF.
7
In the case of R12 and R13, this includes the sub-interfaces for VLANs 64, 65
and 255. Notice that we are configuring authentication for the OSPF adjacencies.
This is important.
Notice that we will use the number “10” as the OSPF process number for routers
R11, R12 and R13. This number is local to the router, so it doesn’t need to
match the process number of a neighboring router. However, it is strongly
recommended that you use the same number throughout your network. Most
people use their Autonomous System number (although OSPF has nothing to
do with the BGP AS).
R11:
router ospf 10
log-adjacency-changes
passive-interface default
area 0 authentication message-digest
no passive-interface GigabitEthernet1/0
auto-cost reference-bandwidth 1000
!
ipv6 router ospf 10
log-adjacency-changes
passive-interface default
no passive-interface GigabitEthernet1/0
area 0 authentication ipsec spi 256 md5 0123456789ABCDEF0123456789ABCDEF
auto-cost reference-bandwidth 1000
!
interface Loopback0
ip ospf 10 area 0
ipv6 ospf 10 area 0
!
interface GigabitEthernet1/0
ip ospf 10 area 0
ip ospf authentication-key nsrc
ipv6 ospf 10 area 0
2. STOP – Checkpoint.
8
a. How many routes do you have on R11 for each access network?
b. Is there a preferred path? Why?
Load balance the traffic for the different access networks by using OSPF link
costs.
b. If you did the Layer-2 exercises and used PVST to load balance traffic
for the different VLANs, make sure that you assign OSPF link costs
accordingly to avoid unnecessary hops.
Hint: You need to make the cost lower than the current cost on the path that
you want the router to prefer, and higher on the path that you want the router
to NOT prefer.
R12:
interface Fast0/0.64
ip ospf cost 5
ipv6 ospf cost 5
!
interface Fast0/0.65
ip ospf cost 5
ipv6 ospf cost 5
!
interface Fast0/0.255
ip ospf cost 15
ipv6 ospf cost 15