帧中继环境下ospf的使用(点到点模式)

一:实验目标:
掌握帧中继的网络环境下ospf的配置.


二:实验拓扑:

 

152617522.png

 

 

 

三:实验配置

(1) 对R2的配置<?xml:namespace prefix="o">?xml:namespace>

R2(config)# frame-relay switching 

R2(config)# interface s0/0

R2(config-if)# encapsulation frame-relay

R2(config-if)# clock rate 64000

R2(config-if)# frame-relay lmi-type cisco 

R2(config-if)# frame-relay intf-type dce

R2(config-if)# frame-relay route 103 interface s0/1 301

R2(config-if)# frame-relay route 104 interface s0/2 401

R2(config-if)# no shutdown

R2(config)# interface s0/1

R2(config-if)# encapsulation frame-relay

R2(config-if)# clock rate 64000

R2(config-if)# frame-relay lmi-type cisco 

R2(config-if)# frame-relay intf-type dce

R2(config-if)# frame-relay route 301 interface s0/0 103

R2(config-if)# no shutdown

R2(config)# interface s0/2

R2(config-if)# encapsulation frame-relay

R2(config-if)# clock rate 64000

R2(config-if)# frame-relay lmi-type cisco 

R2(config-if)# frame-relay intf-type dce

R2(config-if)# frame-relay route 401 interface s0/0 104

R2(config-if)# no shutdown

(  (2)show frame-relay route 

 

152617673.jpg

 

由上图可以看出R2帧中继映射表已经形成,Serial0/0的DLCI103对应Serial0/1的DLCI301,Serial0/0的DLCI104对应Serial0/1的DLCI401。两条虚电路尚处于未激活状态。

(3) show frame pvc

 

152617189.jpg

 

以上显示R2上各个接口的PVC状态,在Serial0/0接口共连接有两条PVC但是都处于Inactive状态。

(4) show frame lmi

152618309.jpg

 

该命令显示R2上LMI的类型及相关参数,上图显示尚无数据包活动。

(5) 利用反向ARP动态获取帧中继映射表实现

对R1的配置

R1(config)# interface s0/0

R1(config-if)# encapsulation frame-relay

R1(config-if)# frame-relay lmi-type cisco

R1(config-if)# frame-relay inverse-arp ip 103

R1(config-if)# frame-relay inverse-arp ip 104

R1(config-if)# ip address 192.168.123.1 255.255.255.0

R1(config-if)# no shutdown

R1(config)# interface loopback 0

R1(config-if)# ip address 1.1.1.1 255.255.255.0

对R3的配置

R3(config)# interface s0/0

R3(config-if)# encapsulation frame-relay

R3(config-if)# frame-relay lmi-type cisco

R3(config-if)# frame-relay inverse-arp ip 301

R3(config-if)# ip address 192.168.123.3 255.255.255.0

R3(config-if)# no shutdown

R3(config)# interface loopback0

R3(config-if)# ip address 3.3.3.3 255.255.255.0

对R4的配置

R4(config)# interface s0/0

R4(config-if)# encapsulation frame-relay

R4(config-if)# frame-relay lmi-type cisco

R4(config-if)# frame-relay inverse-arp ip 401

R4(config-if)# ip address 192.168.123.4 255.255.255.0

R4(config-if)# no shutdown

R4(config)# interface loopback0

R4(config-if)# ip address 4.4.4.4 255.255.255.0

连通性测试

152618558.png

 

 

152618952.png

 

 

(6) 利用ospf协议实现1.1.1.1/24和3.3.3.3/24和4.4.4.4/24之间的互通。

对R1的配置

R1(config)# router ospf 1

R1(config-router)# network 192.168.123.0 0.0.0.255 a 0

R1(config-router)# network 1.1.1.0 0.0.0.255 a 0

R1(config-router)# end

对R3的配置

R3(config)# router ospf 1

R3(config-router)# network 192.168.123.0 0.0.0.255 a 0

R3(config-router)# network 3.3.3.0 0.0.0.255 a 0

R3(config-router)# end

对R4的配置

R4(config)# router ospf 1

R4(config-router)# network 192.168.123.0 0.0.0.255 a 0

R4(config-router)# network 4.4.4.0 0.0.0.255 a 0

R4(config-router)# end

连通性测试

152618583.png

 

 

152619634.png

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值