用路由器模拟帧中继交换机配制

本文介绍如何使用路由器模拟帧中继交换机,并详细展示了配置步骤及注意事项。此外,还介绍了如何配置OSPF以实现点到多点的网络连接。

八、用路由器模拟帧中继交换机配制

8.1、拓扑图

(注:这个模拟完全可以用模拟器作,而且IE的机试一定要考的)

 

 

 

图上所示是一个部分网状的帧中继的拓扑,其中R7中模拟帧中继交换机,R1为中心路由器,R2和R3为分支路由器
 
8.2 、基本配制

R1 ==========================================
host R1
no ip domain-look
line con 0
logg sy
exec-time 0 0
!
int s1/2
encap frame
ip add 192.168.192.1 255.255.255.0
no sh
frame map ip 192.168.192.2 102 broadcast
frame map ip 192.168.192.4 103 broadcast
!
int loop 0
 ip add 192.168.10.10 255.255.255.0
R2 ==========================================
host R2
no ip domain-look
line con 0
logg sy
exec-time 0 0
!
int s1/2
encap frame
ip add 192.168.192.2 255.255.255.0
no sh
frame map ip 192.168.192.1 201 broadcast
frame map ip 192.168.192.4 201 broadcast
no frame inverse-arp
int loop 0
 ip add 192.168.20.20 255.255.255.0
!
R3 ==========================================
host R3
no ip domain-look
line con 0
logg sy
exec-time 0 0
!
int s1/2
encap frame
ip add 192.168.192.4 255.255.255.0
no sh
frame map ip 192.168.192.1 301 broadcast
frame map ip 192.168.192.2 301 broadcast
no frame inverse-arp
int loop 0
 ip add 192.168.30.30 255.255.255.0
!
R7 ==========================================
路由器模拟frame-relay交换机配制

host Frame-Swith
no ip domain-look
line con 0
logg sy
exec-time 0 0
!
frame switching
!
interface Serial1/0
 no ip directed-broadcast
 clock rate 56000
 encapsulation frame-relay
 frame-relay intf-type dce
 frame-relay route 102 interface Serial1/1 201
 frame-relay route 103 interface Serial1/2 301
 no sh
!
interface Serial1/1
 no ip directed-broadcast
 clock rate 56000
 encapsulation frame-relay
 frame-relay intf-type dce
 frame-relay route 201 interface Serial1/0 102
 no sh
!
interface Serial1/2
 no ip directed-broadcast
 clock rate 56000 
 encapsulation frame-relay
 frame-relay intf-type dce
 frame-relay route 301 interface Serial1/0 103
 no sh
!
 
 
当所有基本都配制好后,我们就可以在R1、R2、R3之间互相ping串口的IP,如果能通就说明帧中继正常工作。但是我们是不能ping 对方的loopback0的地址。
当然也可以用一些查看帧中继的命来查看
Show fram map
Show fram pvc
Show ip route 
来验证
 
8.3、配制OSPF
注意事项:配制时须要指明网络类型
R1:
int s1/2
ip ospf network point-to-multipoint
router ospf 1
net 192.168.192.0 0.0.0.255 area 0
net 192.168.10.0 0.0.0.255 area 0
R2:
int s1/2
ip ospf network point-to-multipoint
router ospf 1
net 192.168.192.0 0.0.0.255 area 0
net 192.168.20 .0 0.0.0.255 area 0
R3:
int s1/2
ip ospf network point-to-multipoint
router ospf 1
net 192.168.192.0 0.0.0.255 area 0
net 192.168.30 .0 0.0.0.255 area 0
 
此时配制完成
我们可以在一个路由器上 ping另一个路由器的loopback0地址,如果通就说明配制成功
也可以用 show ip route来查看是不是有对方的loopback0路由

 



本文转自zcm8483 51CTO博客,原文链接:http://blog.51cto.com/haolun/993022

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值