Lab Objective:
The focus of this lab is to understand OSPF implementation and configuration in Cisco IOS routers. Additional technologies tested include path control and backbone connectivity.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no interface fastethernet 0/0 Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. Also, if you are using the www.howtonetwork.net racks, configure R3 as the Frame Relay switch using the following configuration commands: hostname R3-Frame-Relay-Switch |
Task 1
Configure hostnames and IP addressing on all routers as illustrated in the network topology.
Task 2
Configure the Frame Relay network so that all routers can ping each others’ WAN interfaces.
Task 3
Using interface-based configuration, configure OSPF over the Frame Relay WAN connectivity R1, R2, and R4, as well as on the LAN segment connected to R1. Ensure that there is no DR/BDR election on the WAN segment. Also, ensure that no Hellos or LSAs are flooded out of the LAN segment. Finally, ensure that OSPF uses Multicast packets when sending updates over the WAN. Verify your configuration using the appropriate commands.
Task 4
Configure the 192.168.0.0/24 subnet on the LAN segment between R2 and R4. In addition, also configure a secondary IP subnet of 192.168.1.0/24 on the LAN segment between R2 and R4. Using interface-based configuration, configure OSPF area 1 on the LAN segment between R1 and R2. Ensure that both the primary 192.168.0.0/24 and secondary 192.168.1.0/24 subnets are advertised as internal OSPF routes. Verify that R1 can ping both subnets.
Task 5
Without modifying any interface bandwidth or cost values, or default administrative distance values, configure OSPF so that R1 prefers the path via R2 to reach the 192.168.0.0/24 and prefers the path via R4 to reach the 192.168.1.0/24 subnet. Verify your path control configuration using the appropriate commands.
Task 6
Configure OSPF so that R1 and R2 establish an OSPF adjacency in area 5. Do NOT enable OSPF for the point-to-point link, i.e. the 10.0.1.0/30 subnet, between R1 and R2. Implement your configuration so that when the Frame Relay network is unavailable, the 192.168.0.0/24 and the 192.168.1.0/24 subnets can still communicate with the 150.1.1.0/24 subnet. Verify your OSPF configuration using the appropriate commands.
Lab Validation
Task 1
| Router(config)#hostname R1 R1(config)#interface fastethernet 0/0 R1(config-if)#no shutdown R1(config-if)#ip address 150.1.1.1 255.255.255.0 R1(config-if)#exit R1(config)#interface serial 0/0 R1(config-if)#no shutdown R1(config-if)#ip address 10.0.1.1 255.255.255.252 R1(config-if)#clock rate 2000000 R1(config-if)#exit R1(config)#interface serial 0/1 R1(config-if)#ip address 10.0.0.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#exit |
| Router(config)#hostname R2 R2(config)#interface fastethernet 0/0 R2(config-if)#no shutdown R2(config-if)#ip address 150.5.5.2 255.255.255.0 R2(config-if)#exit R2(config)#interface serial 0/0 R2(config-if)#no shutdown R2(config-if)#ip address 10.0.1.2 255.255.255.252 R2(config-if)#exit R2(config)#interface serial 0/1 R2(config-if)#ip address 10.0.0.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#encapsulation frame-relay R2(config-if)#exit |
| Router(config)#hostname R4 R4(config)#interface fastethernet 0/0 R4(config-if)#ip address 150.5.5.4 255.255.255.0 R4(config-if)#exit R4(config)#interface serial 0/0 R4(config-if)#ip address 10.0.0.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#encapsulation frame-relay R4(config-if)#exit |
Task 2
Although Frame Relay configuration is not a CCNP topic, per se, it is still important that you remember your Frame Relay configurations from the CCNA. The task is completed as follows:
| R1(config)#interface serial 0/1 R1(config-if)#frame-relay map ip 10.0.0.2 102 broadcast R1(config-if)#frame-relay map ip 10.0.0.4 104 broadcast R1(config-if)#exit |
On the spoke routers, because the same DLCI is being used, the broadcast keyword should only be specified once to avoid duplicate Broadcast packets across the Frame Relay WAN. This task is completed as follows:
| R2(config)#interface serial 0/1 R2(config-if)#frame-relay map ip 10.0.0.1 201 broadcast R2(config-if)#frame-relay map ip 10.0.0.4 201Â Â Â Â Â Â Â Â Â R2(config-if)#exit |
| R4(config)#interface serial 0/0 R4(config-if)#frame-relay map ip 10.0.0.1 401 broadcast R4(config-if)#frame-relay map ip 10.0.0.2 401Â Â Â Â Â Â Â Â Â R4(config-if)#exit |
Verify your Frame Relay configuration using the show frame-relay map command:
| R1#show frame-relay map Serial0/1 (up): ip 10.0.0.2 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, active Serial0/1 (up): ip 10.0.0.4 dlci 104(0x68,0x1880), static, broadcast, CISCO, status defined, active |
| R2#show frame-relay map Serial0/1 (up): ip 10.0.0.1 dlci 201(0xC9,0x3090), static, broadcast, CISCO, status defined, active Serial0/1 (up): ip 10.0.0.4 dlci 201(0xC9,0x3090), static, CISCO, status defined, active |
| R4#show frame-relay map Serial0/0 (up): ip 10.0.0.1 dlci 401(0x191,0x6410), static, broadcast, CISCO, status defined, active Serial0/0 (up): ip 10.0.0.2 dlci 401(0x191,0x6410), static, CISCO, status defined, active |
Finally, verify that you can ping between all routers across the Frame Relay WAN:
| R1#ping 10.0.0.2 repeat 10
Type escape sequence to abort. Type escape sequence to abort. |
| R2#ping 10.0.0.1 repeat 10
Type escape sequence to abort. Type escape sequence to abort. |
| R4#ping 10.0.0.1 repeat 10
Type escape sequence to abort. Type escape sequence to abort. |
Task 3
To complete this task, you need to configure a point-to-multipoint network type. This will allow OSPF to use Multicast but prevent DR/BDR election. This task is completed as follows:
| R1(config)#router ospf 1 R1(config-router)#router-id 1.1.1.1 R1(config-router)#passive-interface fastethernet 0/0 R1(config-router)#exit R1(config)#interface fastethernet 0/0 R1(config-if)#ip ospf 1 area 0 R1(config-if)#exit R1(config)#interface serial 0/1 R1(config-if)#ip ospf network point-to-multipoint R1(config-if)#ip ospf 1 area 0 R1(config-if)#exit |
| R2(config)#router ospf 2 R2(config-router)#router-id 2.2.2.2 R2(config-router)#exit R2(config)#interface serial 0/1 R2(config-if)#ip ospf network point-to-multipoint R2(config-if)#ip ospf 2 area 0 R2(config-if)#exit |
| R4(config)#router ospf 4 R4(config-router)#router-id 4.4.4.4 R4(config-router)#exit R4(config)#interface serial 0/0 R4(config-if)#ip ospf network point-to-multipoint R4(config-if)#ip ospf 4 area 0 R4(config-if)#exit |
Verify your configuration using the show ip ospf neighbor command:
| R1#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address        Interface |
| R2#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address        Interface |
| R4#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address        Interface |
Task 4
| R2(config)#interface fastethernet 0/0 R2(config-if)#ip address 192.168.0.2 255.255.255.0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 secondary R2(config-if)#ip ospf 2 area 1 R2(config-if)#exit |
| R4(config)#interface fastethernet 0/0 R4(config-if)#ip address 192.168.0.4 255.255.255.0Â Â Â Â Â Â Â Â Â R4(config-if)#ip address 192.168.1.4 255.255.255.0 secondary R4(config-if)#ip ospf 4 area 1 R4(config-if)#exit |
Verify OSPF configuration using the show ip ospf neighbor command:
| R2#show ip ospf neighbor
Neighbor ID    Pri  State     Dead Time  Address     Interface |
| R4#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address    Interface |
Finally, verify that R1 has two routes to these subnets and can ping them both:
| R1#show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks OÂ Â Â Â Â Â 10.0.0.2/32 [110/64] via 10.0.0.2, 00:01:03, Serial0/1 OÂ Â Â Â Â Â 10.0.0.4/32 [110/64] via 10.0.0.4, 00:01:03, Serial0/1 O IA 192.168.0.0/24 [110/65] via 10.0.0.4, 00:01:03, Serial0/1 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [110/65] via 10.0.0.2, 00:01:03, Serial0/1 O IA 192.168.1.0/24 [110/65] via 10.0.0.4, 00:01:03, Serial0/1 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [110/65] via 10.0.0.2, 00:01:03, Serial0/1 |
| R1#ping 192.168.0.0
Type escape sequence to abort. |
| R1#ping 192.168.1.0
Type escape sequence to abort. |
Task 5
To complete this task you need to think outside the box and use the area <area> range command. This command allows you to directly specify the cost of the advertised summary route. Prior to any routing changes, R1 shows the following route entries:
| R1#show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks OÂ Â Â Â Â Â 10.0.0.2/32 [110/64] via 10.0.0.2, 00:01:03, Serial0/1 OÂ Â Â Â Â Â 10.0.0.4/32 [110/64] via 10.0.0.4, 00:01:03, Serial0/1 O IA 192.168.0.0/24 [110/65] via 10.0.0.4, 00:01:03, Serial0/1 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [110/65] via 10.0.0.2, 00:01:03, Serial0/1 O IA 192.168.1.0/24 [110/65] via 10.0.0.4, 00:01:03, Serial0/1 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [110/65] via 10.0.0.2, 00:01:03, Serial0/1 |
This task is completed as follows:
| R2(config)#router ospf 2 R2(config-router)#area 1 range 192.168.0.0 255.255.255.0 cost 1 R2(config-router)#area 1 range 192.168.1.0 255.255.255.0 cost 5 R2(config-router)#exit |
| R4(config)#router ospf 4 R4(config-router)#area 1 range 192.168.0.0 255.255.255.0 cost 5 R4(config-router)#area 1 range 192.168.1.0 255.255.255.0 cost 1 R4(config-router)#exit |
Following this configuration, the routing table on R1 shows the following entries:
| R1#show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks OÂ Â Â Â Â Â 10.0.0.2/32 [110/64] via 10.0.0.2, 00:01:58, Serial0/1 OÂ Â Â Â Â Â 10.0.0.4/32 [110/64] via 10.0.0.4, 00:01:58, Serial0/1 O IA 192.168.0.0/24 [110/65] via 10.0.0.2, 00:01:58, Serial0/1 O IA 192.168.1.0/24 [110/65] via 10.0.0.4, 00:01:35, Serial0/1 |
Task 6
The requirements of this task are two-fold. First, you must enable OSPF across the WAN link between R1 and R2 without explicitly enabling it for the 10.0.1.0/30 subnet. To do so, you should configure a GRE tunnel between the two routers. This task is completed as follows:
| R1(config)#interface tunnel 0 R1(config-if)#ip address 200.0.0.1 255.255.255.252 R1(config-if)#ip ospf 1 area 5 R1(config-if)#tunnel source serial 0/0 R1(config-if)#tunnel destination 10.0.1.2 R1(config-if)#exit |
| R2(config)#interface tunnel 0 R2(config-if)#ip address 200.0.0.2 255.255.255.252 R2(config-if)#ip ospf 2 area 5 R2(config-if)#tunnel source serial 0/0 R2(config-if)#tunnel destination 10.0.1.1 R2(config-if)#exit |
Verify your configuration using the show ip ospf neighbor command:
| R1#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address        Interface |
| R2#show ip ospf neighbor
Neighbor ID    Pri  State      Dead Time  Address        Interface |
The second part of this task requires that you configure a virtual link so that when the Frame Relay WAN is down, area 1 still has a logical connection to the backbone. If you do not configure a virtual link, routing will ‘break’ when the Frame Relay WAN fails. This task is completed as follows:
| R1(config)#router ospf 1 R1(config-router)#area 5 virtual-link 2.2.2.2 R1(config-router)#exit |
| R2(config)#router ospf 2 R2(config-router)#area 5 virtual-link 1.1.1.1 R2(config-router)#exit |
Verify your configuration using the show ip ospf virtual-links command:
| R1#show ip ospf virtual-links Virtual Link OSPF_VL0 to router 2.2.2.2 is up Run as demand circuit DoNotAge LSA allowed. Transit area 5, via interface Tunnel0, Cost of using 11111 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:02 Adjacency State FULL (Hello suppressed) Index 3/4, retransmission queue length 0, number of retransmission 0 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 0, maximum is 0 Last retransmission scan time is 0 msec, maximum is 0 msec |
Finally, test your configuration by shutting down the Frame Relay interface on R1:
| R1(config)#interface serial 0/1 R1(config-if)#shutdown R1(config-if)#exit R1(config)#do show ip route ospf 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks OÂ Â Â Â Â Â 10.0.0.2/32 [110/11111] via 200.0.0.2, 00:00:03, Tunnel0 O IA 192.168.0.0/24 [110/11112] via 200.0.0.2, 00:00:03, Tunnel0 O IA 192.168.1.0/24 [110/11116] via 200.0.0.2, 00:00:03, Tunnel0 |
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 1260 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1339 bytes R2# |
R3
|
R3-Frame-Relay-Switch#term len 0 Current configuration : 1556 bytes R3-Frame-Relay-Switch# |
R4
|
R4#term len 0 Current configuration : 1168 bytes R4# |
