标签:目标 需要 sniffer directly 关系 指定 router success dir
实验任务和目标:
任务1.按照实验要求连接网络拓扑
任务2.完成网络基本IP配置,环回接口IP,测试直连网络连通性
任务3.配置OSPF路由【需要指定ROUTER-ID】
任务4.用SNIFFER抓包,分析OSPF邻居关系建立过程
实验操作过程及配置说明:
任务一、
从左到右依次为:R1 、R2、SW1、R3
Router1 S0/0 <----> Router2 S0/0
Router2 F1/0 <----> Switch1 F0/1
Switch1 F0/0 <----> Router3 F0/0
Switch1 F0/2 <----> XPC P0/1
R1: S0/0 IP 192.169.10.1/24
LO 0 IP 10.1.1.1/24
R2: S0/0 IP 192.168.10.2/24
F1/0 IP 192.168.20.1/24
LO 0 IP 20.1.1.1/24
R3: F0/0 IP 192.168.20.2/24
LO 0 IP 30.1.1.1/24
Sniffer pc IP 192.168.20.3/24
交换机不用配置
任务二、
R1配置:
r1(config)#int lo0
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#exit
r1(config)#int s0/0
r1(config-if)#ip add 192.168.10.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#exit
R2配置:
r2(config)#int s0/0
r2(config-if)#ip add 192.168.10.2 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#int f1/0
r2(config-if)#ip add 192.168.20.1 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#int lo0
r2(config-if)#ip add 20.1.1.1 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
R3配置:
r3(config)#int f0/0
r3(config-if)#no switchport
r3(config-if)#ip add 192.168.20.2 255.255.255.0
r3(config-if)#no shut
r3(config-if)#exit
r3(config)#int lo0
r3(config-if)#ip add 30.1.1.1 255.255.255.0
r3(config-if)#no shut
r3(config-if)#end
r1#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r1#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/71/160 ms
r1#ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/34/60 ms
r3#ping 192.168.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r3#ping 192.168.20.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/48/88 ms
r3#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
任务三:
r1(config)#router ospf 10
r1(config-router)#router-id 1.1.1.1
r1(config-router)#network 192.168.10.1 0.0.0.0 area 0
r1(config-router)#network 10.1.1.1 0.0.0.0 area 0
r2(config)#router ospf 10
r2(config-router)#router-id 2.2.2.2
r2(config-router)#network 192.168.10.2 0.0.0.0 area 0
r2(config-router)#network 192.168.20.1 0.0.0.0 area 0
r2(config-router)#network 20.1.1.1 0.0.0.0 area 0
r3(config)#router ospf 10
r3(config-router)#router-id 3.3.3.3
r3(config-router)#network 192.168.20.2 0.0.0.0 area 0
r3(config-router)#network 30.1.1.1 0.0.0.0 area 0
r1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.1.1 [110/65] via 192.168.10.2, 00:01:16, Serial0/0
C 192.168.10.0/24 is directly connected, Serial0/0
O 192.168.20.0/24 [110/65] via 192.168.10.2, 00:01:16, Serial0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Loopback0
30.0.0.0/32 is subnetted, 1 subnets
O 30.1.1.1 [110/66] via 192.168.10.2, 00:01:16, Serial0/0
r2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
20.0.0.0/24 is subnetted, 1 subnets
C 20.1.1.0 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, Serial0/0
C 192.168.20.0/24 is directly connected, FastEthernet1/0
10.0.0.0/32 is subnetted, 1 subnets
O 10.1.1.1 [110/65] via 192.168.10.1, 00:01:28, Serial0/0
30.0.0.0/32 is subnetted, 1 subnets
O 30.1.1.1 [110/2] via 192.168.20.2, 00:01:28, FastEthernet1/0
r3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.1.1 [110/2] via 192.168.20.1, 00:01:41, FastEthernet0/0
O 192.168.10.0/24 [110/65] via 192.168.20.1, 00:01:41, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/0
10.0.0.0/32 is subnetted, 1 subnets
O 10.1.1.1 [110/66] via 192.168.20.1, 00:01:41, FastEthernet0/0
30.0.0.0/24 is subnetted, 1 subnets
C 30.1.1.0 is directly connected, Loopback0
标签:目标 需要 sniffer directly 关系 指定 router success dir
原文地址:http://www.cnblogs.com/bgd140206228/p/6610878.html