1、用路由器模拟帧中继交换机配置(GNS3_C3640 模拟修正版)1、拓扑图 图上所示是一个部分网状的帧中继的拓扑,其中 R7 中模拟帧中继交换机,R1 为中心路由器,R2 和 R3 为分支路由器 2、基本配置R1 =host R1no ip domain-lookline con 0logg syexec-time 0 0!int s1/2encap frameip add 192.168.192.1 255.255.255.0no shframe map ip 192.168.192.2 102 broadcastframe map ip 192.168.192.4 103 broadcas
2、t!int loop 0ip add 192.168.10.10 255.255.255.0R2 =host R2no ip domain-lookline con 0logg syexec-time 0 0!int s1/2encap frameip add 192.168.192.2 255.255.255.0no shframe map ip 192.168.192.1 201 broadcastframe map ip 192.168.192.4 201 broadcastno frame inverse-arpint loop 0ip add 192.168.20.20 255.25
3、5.255.0!R3 =host R3no ip domain-lookline con 0logg syexec-time 0 0!int s1/2encap frameip add 192.168.192.4 255.255.255.0no shframe map ip 192.168.192.1 301 broadcastframe map ip 192.168.192.2 301 broadcastno frame inverse-arpint loop 0ip add 192.168.30.30 255.255.255.0!R7 =路由器模拟 frame-relay 交换机配置hos
4、t R7-FRno ip domain-lookline con 0logg syexec-time 0 0!frame switching!interface Serial1/0no ip directed-broadcastclock rate 56000encapsulation frame-relayframe-relay intf-type dceframe-relay route 102 interface Serial1/1 201frame-relay route 103 interface Serial1/2 301no sh!interface Serial1/1no ip
5、 directed-broadcastclock rate 56000encapsulation frame-relayframe-relay intf-type dceframe-relay route 201 interface Serial1/0 102no sh!interface Serial1/2no ip directed-broadcastclock rate 56000 encapsulation frame-relayframe-relay intf-type dceframe-relay route 301 interface Serial1/0 103no sh! 当所
6、有基本都配制好后,我们就可以在 R1、R2 、R3 之间互相 ping 串口的 IP,如果能通就说明帧中继正常工作。但是我们是不能 ping 通对方的 loopback的地址。当然也可以用一些查看帧中继的命来查看Show fram mapShow fram pvcShow ip route来验证3、配制 OSPF注意事项:配制时须要指明网络类型R1:int s1/2ip ospf network point-to-multipointrouter ospf 1net 192.168.192.0 0.0.0.255 area 0net 192.168.10.0 0.0.0.255 area 0R
7、2:int s1/2ip ospf network point-to-multipointrouter ospf 1net 192.168.192.0 0.0.0.255 area 0net 192.168.20.0 0.0.0.255 area 0R3:int s1/2ip ospf network point-to-multipointrouter ospf 1net 192.168.192.0 0.0.0.255 area 0net 192.168.30.0 0.0.0.255 area 0此时配置完成我们可以在一个路由器上 ping 另一个路由器的 loopback0 地址,如果通就说明配制成功也可以用 show ip route 来查看是不是有对方的 loopback0 路由。