A-A+
	Serial口的ARP实验
一.实验目的
查看路由器的ARP表项,看看Serial 口有没有ARP
二.实验拓扑: PC1 - RT1 - RT2 -z- RT3 - RT4 - PC2
一.实验步骤
1.为PC机配置IP,网关。
2.为路由器配置IP地址。
3.全网使用OSPF,全网互通。
4.PING,并查看ARP表。
四.实验内容
- PC1
 - R1#configure terminal
 - R1(config)#hostname ZJPC1
 - ZJPC1(config)#no ip routing
 - ZJPC1(config)#interface ethernet 0/0
 - ZJPC1(config-if)#ip address 1.1.1.1 255.255.255.0
 - ZJPC1(config-if)#no shutdown
 - ZJPC1(config-if)#exit
 - ZJPC1(config)#ip default-gateway 1.1.1.2
 - PC2
 - R1#configure terminal
 - R1(config)#hostname ZJPC2
 - ZJPC2(config)#no ip routing
 - ZJPC2(config)#interface ethernet 0/0
 - ZJPC2(config-if)#ip address 5.5.5.2 255.255.255.0
 - ZJPC2(config-if)#no shutdown
 - ZJPC2(config-if)#exit
 - ZJPC2(config)#ip default-gateway 5.5.5.1
 - RT1
 - R2#configure terminal
 - R2(config)#hostname ZJRT1
 - ZJRT1(config)#interface ethernet 0/0
 - ZJRT1(config-if)#ip address 1.1.1.2 255.255.255.0
 - ZJRT1(config-if)#no shutdown
 - ZJRT1(config-if)#exit
 - ZJRT1(config)#interface ethernet 0/1
 - ZJRT1(config-if)#ip address 2.2.2.1 255.255.255.0
 - ZJRT1(config-if)#no shutdown
 - ZJRT1(config-if)#exit
 - ZJRT1(config)#router ospf 1
 - ZJRT1(config-router)#network 1.1.1.0 0.0.0.255 area 0
 - ZJRT1(config-router)#network 2.2.2.0 0.0.0.255 area 0
 - RT2
 - R3#configure terminal
 - R3(config)#hostname ZJRT2
 - ZJRT2(config)#interface ethernet 1/0
 - ZJRT2(config-if)#ip address 2.2.2.2 255.255.255.0
 - ZJRT2(config-if)#no shutdown
 - ZJRT2(config-if)#exit
 - ZJRT2(config)#interface serial 0/0
 - ZJRT2(config-if)#ip address 3.3.3.1 255.255.255.0
 - ZJRT2(config-if)#no shutdown
 - ZJRT2(config-if)#exit
 - ZJRT1(config)#router ospf 1
 - ZJRT1(config-router)#network 2.2.2.0 0.0.0.255 area 0
 - ZJRT1(config-router)#network 3.3.3.0 0.0.0.255 area 0
 - RT3
 - R4#configure terminal
 - R4(config)#hostname ZJRT3
 - ZJRT3(config)#interface serial 0/0
 - ZJRT3(config-if)#ip address 3.3.3.2 255.255.255.0
 - ZJRT3(config-if)#no shutdown
 - ZJRT3(config-if)#exit
 - ZJRT3(config)#interface ethernet 1/0
 - ZJRT3(config-if)#ip address 4.4.4.1 255.255.255.0
 - ZJRT3(config-if)#no shutdown
 - ZJRT3(config-if)#exit
 - ZJRT3(config)#router ospf 1
 - ZJRT3(config-router)#network 3.3.3.0 0.0.0.255 area 0
 - ZJRT3(config-router)#network 4.4.4.0 0.0.0.255 area 0
 - RT4
 - R5#configure terminal
 - R5(config)#hostname ZJRT4
 - ZJRT4(config)#interface ethernet 0/1
 - ZJRT4(config-if)#ip address 4.4.4.2 255.255.255.0
 - ZJRT4(config-if)#no shutdown
 - ZJRT4(config-if)#exit
 - ZJRT4(config)#interface ethernet 0/0
 - ZJRT4(config-if)#ip address 5.5.5.2 255.255.255.0
 - ZJRT4(config-if)#no shutdown
 - ZJRT4(config-if)#exit
 - ZJRT4(config)#router ospf 1
 - ZJRT4(config-router)#network 4.4.4.0 0.0.0.255 area 0
 - ZJRT4(config-router)#network 5.5.5.0 0.0.0.255 area 0
 
现在我们来查看ARP表,看看路由器有无ARP。
我们可以看见RT1上有ARP表项。
我们再查看RT2看看Serial 口有没有MAC地址和ARP。
我们可以看见RT2上也有ARP表,但是没有Serial的ARP,因为Serial没有MAC地址。
总结:路由器上也有MAC地址,路由器上也可以生成ARP表,但是Serial没有MAC地址,所以,ARP也不会生成Serial口的ARP映射。