An OSPF comprehensive experiment includes nine routers (one of which is a simulated frame relay switch ), it involves multiple OSPF regions, OSPF Virtual links, Stub areas, NSSA areas, OSPF manual summary, OSPF interface authentication, OSPF region authentication, and other technologies.
The GNS3 topology is exactly the same as the experiment topology. I have packaged the pre-configuration file (including all interface configurations and the configurations of the frame relay switch, below ), you can download and focus on OSPF.
Click to download:GNS3 experiment topology and pre-configuration file
Lab Topology
Experiment process:
1. Configure the frame relay switch. I will write it down briefly (the pre-configuration has been completed, but it has little to do with OSPF ).
En
Conf t
Ho R9
Frame-relay switching
Int s1/0
Encapsulation frame-relay
Clock rate 64000
Frame-relay intf-type dce
Frame-relay route 203 interface s1/1 302
Frame-relay route 204 interface s1/2 402
No sh
Int s1/1
Encapsulation frame-relay
Clock rate 64000
Frame-relay intf-type dce
Frame-relay route 302 interface s1/0 203
No sh
Int s1/2
Encapsulation frame-relay
Clock rate 64000
Frame-relay intf-type dce
Frame-relay route 402 interface s1/0 204
No sh
End
2. Configure Area 0 without using sub-interfaces. Set the network type of the physical interface to broadcast.
R2 (config) # router ospf 10
R2 (config-router) # router-id 2.2.2.2
R2 (config-router) # network 172.17.1.1 0.0.0.0 area 0
// Modify the OSPF interface network type to broadcast
R2 (config-router) # int s1/2
R2 (config-if) # ip ospf network broadcast
R3 (config) # router ospf 10
R3 (config-router) # router-id 3.3.3.3
R3 (config-router) # network 172.17.1.2 0.0.0.0 area 0
// Modify the OSPF interface network type to broadcast
R3 (config-router) # int s1/2
R3 (config-if) # ip ospf network broadcast
// Set the ospf interface priority to 0 and disable R3 from becoming DR/BDR
R3 (config-if) # ip ospf priority 0
R4 (config) # router ospf 10
R4 (config-router) # router-id 4.4.4
R4 (config-router) # network 172.17.1.3 0.0.0.0 area 0
// Modify the OSPF interface network type to broadcast
R4 (config-router) # int s1/2
R4 (config-if) # ip ospf network broadcast
// Set the priority of the ospf interface to 0. Disable R4.
R4 (config-if) # ip ospf priority 0
3. Check the neighbor relationship on R2. Both R3 and R4 are DROTHER.
R2 # sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/DROTHER 00:00:34 172.17.1.2 Serial1/2
4.4.4.4 0 FULL/DROTHER 00:00:33 172.17.1.3 Serial1/2
4. Configure Area 1
R2 (config) # router ospf 10
R2 (config-router) # net 10.1.1.2 0.0.0.0 area 1
R1 (config) # router ospf 10
R1 (config-router) # router-id 1.1.1.1
R1 (config-router) # net 172.16.0.0 0.0.3.255 area 1
R1 (config-router) # net 10.1.1.1 0.0.0.0 area 1
5. Configure Area 2
R4 (config) # router ospf 10
R4 (config-router) # net 10.1.3.1 0.0.0.0 area 2
R7 (config) # router ospf 10
R7 (config-router) # router-id 7.7.7.7
R7 (config-router) # net 172.18.1.0 0.0.1.255 area 2
R7 (config-router) # net 10.1.3.2 0.0.0.0 area 2
6. Configure Area 3
R7 (config) # router ospf 10
R7 (config-router) # net 10.1.4.1 0.0.0.0 area 3
R8 (config) # router ospf 10
R8 (config-router) # router-id 8.8.8.8
R8 (config-router) # net 172.255.0.0 0.0.3.255 area 3
R8 (config-router) # net 10.1.4.2 0.0.0.0 area 3
7. Configure Area 4
R3 (config) # router ospf 10
R3 (config-router) # net 10.1.2.1 0.0.0.0 area 4
R5 (config) # router ospf 10
R5 (config-router) # router-id 5.5.5
R5 (config-router) # net 172.19.0.0 0.0.1.255 area 4
R5 (config-router) # net 10.1.2.2 0.0.0.0 area 4
8. Because Area 3 is not directly connected to Area 0, you need to create a virtual link on R4 and R7.
// The virtual Link parameter is the peer Router ID.
R4 (config) # router ospf 10
R4 (config-router) # area 2 virtual-link 7.7.7.7
R7 (config) # router ospf 10
R7 (config-router) # area 2 virtual-link 4.4.4.4
9. Configure the r12002 routing protocol. Because rip does not support mask representation, each class C network segment must be declared in sequence.
R5 (config) # router rip
R5 (config-router) # version 2
R5 (config-router) # no auto-summary
R5 (config-router) # net 192.168.255.0
R6 (config) # router rip
R6 (config-router) # version 2
R6 (config-router) # no auto-summary
R6 (config-router) # net 192.168.0.0
R6 (config-router) # net 192.168.1.0
R6 (config-router) # net 192.168.2.0
R6 (config-router) # net 192.168.3.0
R6 (config-router) # net 192.168.4.0
R6 (config-router) # net 192.168.5.0
R6 (config-router) # net 192.168.6.0
R6 (config-router) # net 192.168.7.0
R6 (config-router) # net 192.168.8.0
R6 (config-router) # net 192.168.9.0
R6 (config-router) # net 192.168.10.0
R6 (config-router) # net 192.168.11.0
R6 (config-router) # net 192.168.255.0
10. re-distribute rip in ospf on R5. Overhead uses the E1 type. R5 is ASBR.
R5 (config) # router ospf 10
R5 (config-router) # redistribute rip subnets metric-type 1
11. Check the route table of R2. You should be able to learn the network segment 192.168.0.0/24.
R2 # sh ip ro
O E1 192.168.8.0/24 [110/148] via 172.17.1.2, 00:00:58, Serial1/2
O E1 192.168.9.0/24 [110/148] via 172.17.1.2, 00:00:58, Serial1/2
O E1 192.168.10.0/24 [110/148] via 172.17.1.2, 00:00:58, Serial1/2
172.17.0.0/24 is subnetted, 1 subnets
C 172.17.1.0 is directly connected, Serial1/2
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.0.0 [110/65] via 10.1.1.1, 00:10:09, Serial1/0
O 172.16.1.0 [110/65] via 10.1.1.1, 00:10:09, Serial1/0
O 172.16.2.0 [110/65] via 10.1.1.1, 00:10:12, Serial1/0
O 172.16.3.0 [110/65] via 10.1.1.1, 00:10:12, Serial1/0
172.19.0.0/24 is subnetted, 2 subnets
O ia 172.19.1.0 [110/129] via 172.17.1.2, 00:06:38, Serial1/2
O ia 172.19.0.0 [110/129] via 172.17.1.2, 00:06:38, Serial1/2
172.18.0.0/24 is subnetted, 2 subnets
O ia 172.18.0.0 [110/129] via 172.17.1.3, 00:06:41, Serial1/2
O ia 172.18.1.0 [110/129] via 172.17.1.3, 00:06:41, Serial1/2
172.2.160.0/24 is subnetted, 4 subnets
O ia 172.2.160.0 [110/193] via 172.17.1.3, 00:06:41, Serial1/2
O ia 172.20.1.0 [110/193] via 172.17.1.3, 00:06:41, Serial1/2
O ia 172.20.2.0 [110/193] via 172.17.1.3, 00:06:41, Serial1/2
O ia 172.20.3.0 [110/193] via 172.17.1.3, 00:06:41, Serial1/2
O E1 192.168.11.0/24 [110/148] via 172.17.1.2, 00:01:04, Serial1/2
O E1 192.168.4.0/24 [110/148] via 172.17.1.2, 00:01:04, Serial1/2
O E1 192.168.5.0/24 [110/148] via 172.17.1.2, 00:01:04, Serial1/2
10.0.0.0/24 is subnetted, 4 subnets
O ia 10.1.3.0 [110/128] via 172.17.1.3, 00:06:41, Serial1/2
O ia 10.1.2.0 [110/128] via 172.17.1.2, 00:06:41, Serial1/2
C 10.1.1.0 is directly connected, Serial1/0
O ia 10.1.4.0 [110/192] via 172.17.1.3, 00:06:41, Serial1/2
O E1 192.168.6.0/24 [110/148] via 172.17.1.2, 00:01:04, Serial1/2
O E1 192.168.7.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
O E1 192.168.255.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
O E1 192.168.0.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
O E1 192.168.1.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
O E1 192.168.2.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
O E1 192.168.3.0/24 [110/148] via 172.17.1.2, 00:01:07, Serial1/2
For more information, click the next page!
- 2 pages in total:
- Previous Page
- 1
- 2
- Next Page