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

简介:

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


二:实验拓扑:

 

 

 

 

三:实验配置

(1) 对R2的配置

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 

 

 

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

(3) show frame pvc

 

 

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

(4) show frame lmi

 

该命令显示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

连通性测试

 

 

 

 

(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

连通性测试

 

 

 

 

 



     本文转自Tar0 51CTO博客,原文链接:http://blog.51cto.com/tar0cissp/1295116,如需转载请自行联系原作者





相关文章
|
运维 网络协议 网络架构
路由与交换系列之OSPF在帧中继的配置实践
掌握OSPF在帧中继网络中的配置方法 理解Hub- Spoke组网架构 掌握在帧中继网络中排除OSPF故障的方法
617 0
|
10月前
|
网络协议 网络架构
以太网链路连接 和 ISIS/OSPF等路由协议关系
以太网链路连接 和 ISIS/OSPF等路由协议关系
113 0
|
网络协议 网络虚拟化
数据通信网络之IPv6以太网单臂路由
数据通信网络之IPv6以太网单臂路由
163 1
|
网络协议 数据库 网络架构
数据通信网络之OSPFv3基础
数据通信网络之OSPFv3基础
139 0
|
网络协议 Shell 网络虚拟化
ospf,三层交换机,热备,以太网通道练习实验(含命令)
ospf,三层交换机,热备,以太网通道练习实验(含命令)
224 0
ospf,三层交换机,热备,以太网通道练习实验(含命令)
|
网络协议 Shell 网络虚拟化
三层-生成树-ospf-速端口思科练习实验
三层-生成树-ospf-速端口思科练习实验
198 0
三层-生成树-ospf-速端口思科练习实验
|
网络协议 网络虚拟化 网络架构
单臂路由实现VLAN间相互通信
单臂路由实现VLAN间相互通信
239 0
|
负载均衡 网络协议 算法
ospf路由器连接物理网络的方式 以及ospf与IGRP对比(补充)
ospf路由器连接物理网络的方式 以及ospf与IGRP对比(补充)
222 0
|
网络虚拟化 网络架构
ensp 实现三层交换机和单臂路由之间的通信
ensp 实现三层交换机和单臂路由之间的通信
325 0
ensp 实现三层交换机和单臂路由之间的通信
|
网络协议 网络架构
ensp 交换机、路由器和pc之间利用vlanif以及ospf实现通信
ensp 交换机、路由器和pc之间利用vlanif以及ospf实现通信
554 0
ensp 交换机、路由器和pc之间利用vlanif以及ospf实现通信