Tool used in the experiment: Xiao fan Simulator
1. Configure interface information on each vro
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface loopback 0
R1-jin (config-if) # ip address 1.1.1.1 255.255.255.255
R1-jin (config-if) # exit
R1-jin (config) # interface f0/0
R1-jin (config-if) # ip address 10.0.0.1 255.0.0.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # interface f1/0
R1-jin (config-if) # ip address 192.168.64.2 255.255.255.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface loopback 0
R2-jin (config-if) # ip address 2.2.2.2 255.255.255.255
R2-jin (config-if) # exit
R2-jin (config) # interface f1/0
R2-jin (config-if) # ip address 192.168.64.1 255.255.255.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # interface f0/0
R2-jin (config-if) # ip address 192.168.1.1 255.255.255.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # exit
R3
Router>
Router> enable
Router # config terminal
Router (config) # hostname R3-jin
R3-jin (config) # interface loopback 0
R3-jin (config-if) # ip address 3.3.3.3 255.255.255.255
R3-jin (config-if) # exit
R3-jin (config) # interface f0/0
R3-jin (config-if) # ip address 192.168.1.2 255.255.255.0
R3-jin (config-if) # no shutdown
R3-jin (config-if) # interface s1/0
R3-jin (config-if) # clock rate 128000
R3-jin (config-if) # ip address 192.168.224.1 255.255.255.0
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit
R4
Router>
Router> enable
Router # config terminal
Router (config) # hostname R4-jin
R4-jin (config) # interface loopback 0
R4-jin (config-if) # ip address 4.4.4.4 255.255.255.255
R4-jin (config-if) # exit
R4-jin (config) # interface s1/0
R4-jin (config-if) # clock rate 128000
R4-jin (config-if) # ip address 192.168.224.2 255.255.255.0
R4-jin (config-if) # no shutdown
R4-jin (config-if) # interface f0/0
R4-jin (config-if) # ip address 255.0.0.1 255.0.0.0
R4-jin (config-if) # no shutdown
R4-jin (config-if) # exit
2. Start the OSFP process and advertise the corresponding network segments. Perform the peripheral area (R1/R2) on area1 and complete the peripheral area (R3) and the peripheral area (R4) on area2)
R1
R1-jin (config) # router ospf 1
R1-jin (config-router) # network 10.0.0.1 0.0.0.0 area 1
R1-jin (config-router) # network 192.168.64.2 0.0.0.0 area 1
R1-jin (config-router) # area 1 stub -- configure the ending area
R1-jin (config-router) # end
R1-jin # show ip route
R1-jin # show ip ospf database
R2
R2-jin (config) # router ospf 1
R2-jin (config-router) # network 192.168.64.1 0.0.0.0 area 1
R2-jin (config-router) # network 192.168.1.1 0.0.0.0 area 0
R2-jin (config-router) # area 1 stub
R2-jin (config-router) # end
R2-jin # show ip route
R2-jin # show ip ospf database
R3
R3-jin (config) # router ospf 1
R3-jin (config-router) # network 192.168.1.2 0.0.0.0 area 0
R3-jin (config-router) # network 192.168.224.1 0.0.0.0 area 2
R3-jin (config-router) # area 2 stub no-summary -- configure the full ending area
R3-jin (config-router) # end
R3-jin # show ip route
R3-jin # show ip ospf database
R4
R4-jin (config) # router ospf 1
R4-jin (config-router) # network 192.168.224.2 0.0.0.0 area 2
R4-jin (config-router) # network protocol 0.0.1 0.0.0.0 area 2
R4-jin (config-router) # area 2 stub
R4-jin (config-router) # end
R4-jin # show ip route
R4-jin # show ip ospf database
3. Configure the PC to Verify communication
VPCS 1>
VPCS 1> show
VPCS 1> ip 10.0.0.2 10.0.0.1 8
VPCS 1> 2
VPCS 2> ip address 255.0.0.2 255.0.0.1 8
VPCS 2> show
Name ip/CIDR GATEWAY LPORT RPORT
PC1 10.0.0.2/8 10.0.0.1 10001 11100
PC2 255.0.0.2/8 255.0.0.1 10002 11400
PC3 0.0.0.0/0 0.0.0.0 10003 30002
PC4 0.0.0.0/0 0.0.0.0 10004 30003
PC5 0.0.0.0/0 0.0.0.0 10005 30004
PC6 0.0.0.0/0 0.0.0.0 10006 30005
PC7 0.0.0.0/0 0.0.0.0 10007 30006
Pc80.0.0.0/0 0.0.0.0 10008 30007
PC9 0.0.0.0/0 0.0.0.0 10009 30008
VPCS 2> ping 10.0.0.2
10.0.0.2 icmp_seq = 1 timeout
10.0.0.2 icmp_seq = 2 time = 141.000 MS
10.0.0.2 icmp_seq = 3 time = 156.000 MS
10.0.0.2 icmp_seq = 4 time = 187.000 MS
10.0.0.2 icmp_seq = 5 time = 188.000 MS
VPCS 2>
OK, the experiment is successfully completed !!!
All the tools I use are the "Xiao fan Simulator ".
The operation is the same as that of a real device. Apart from several commands, you can discover them slowly!
Author: ""