开发者社区> 科技小先锋> 正文

ospf下帧中继网络配置

简介:
+关注继续查看

 一直想写篇文章关于帧中继这方面的,一来这东西是个难点二来网上这东西配置的都不咋完全,那小弟就献丑了。废话不说 看图

 

我们用r2模拟帧中继交换机

frame-relay s

 

enable

conf t

no ip domain-lookup

ip classless

ip subnet-zero

hostname r2

line cons 0

exec-timeout 0 0

logg sy

exit

 

int s0/0

no sh

en fr 

frame-relay lmi-type cisco   ||: lmi 类型

frame-relay intf-type dce               :设为dce

frame-relay route 103 interface s0/1 301     :静态路由映射

frame-relay route 104 interface s0/2 401

clock rate 64000

 
int s0/1 
no sh
en fr
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface s0/0 103
int s0/2
en fr
no sh
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 401 interface s0/0 104
r1配置
no ip domain-lookup
ip classless
ip subnet-zero
hostname r1
line cons 0
exec-timeout 0 0
logg sy
exit
int s0/0
ip add 192.168.1.1 255.255.255.0
en fr
no sh
r2配置
int s0/1
ip add 192.168.1.3 255.255.255.0
en fr
no sh
r4配置
ip add 192.168.1.4 255.255.255.0
en fr 
no sh
这样我们我们就完成了r1 2 3 4 基本配置  
在r2  r4#show frame-relay r
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       103             Serial0/1       301             inactive
Serial0/0       104             Serial0/2       401             inactive
Serial0/1       301             Serial0/0       103             inactive
Serial0/2       401             Serial0/0       104             inactive
我们再在r1上配置ospf
int loo 0
ip add 1.1.1.1 255.255.255.0 
ip ospf netw point to point
int s0/0
ip add 192.168.1.1 255.255.255.0
en fr
ip ospf netw b
ip ospf pri 10
frame-re map ip 192.168.1.3 103 b                 :对端ip   自己的dlci     广播类型
frame-re map ip 192.168.1.4 103 b
frame-re map ip 192.168.1.1 103     可以 ping 通自己
no frame-re inv
no sh
router ospf 1
router-id 1.1.1.1
netw 192168.1.0 0.0.0.255 area 0
netw  1.1.1.0 0.0.0.255 area 0
r3配置
int loo 0
ip add 3.3.3.3 255.255.255.0
ip ospf netw point to point
int s0/1
ip add 192.168.1.3 255.255.255.0
en fr
ip ospf pri 
no frame-re inv
ip ospf netw b
frame-relay map ip 192.168.1.1 301 b
frame-relay map ip 192.168.1.4 301 b
frame-relay map ip 192.168.1.3 301
router ospf 1
netw 3.3.3.0 0.0.0.255 area 0
netw 192.168.1.0 0.0.0.255 area 0
router-id 3.3.3.3
r4配置
int loop 0
ip add 4.4.4.4 255.255.255.0 
ip ospf netw b
int s0/2
no frame-re inv
ip add 192.168.1.4 255.255.255.0 
en fr
ip ospf pri 
ip ospf netw b
frame-relay map ip 192.168.1.1 401 b
frame-relay map ip 192.168.1.3 401 b
frame-relay map ip 192.168.1.4 401
no sh
router ospf 1
netw 192.168.1.0 0.0.0.255 area 0
netw 4.4.4.0 0.0.0.255 area
router-id 4.4.4.4
我们测试下r4路由表
r4#show ip route 
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
     1.0.0.0/24 is subnetted, 1 subnets
O       1.1.1.0 [110/65] via 192.168.1.1, 00:28:02, Serial0/2
     3.0.0.0/24 is subnetted, 1 subnets
O       3.3.3.0 [110/65] via 192.168.1.3, 00:28:02, Serial0/2
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Loopback0
C    192.168.1.0/24 is directly connected, Serial0/2
ping 1.1.1.1
r4#ping 1.1.1.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
实验完成!
 
 
点到点子接口的配置
 
 
 
 FR
 
 
interface Serial2/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 no fair-queue
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 103 interface Serial2/3 301
 frame-relay route 104 interface Serial2/1 401
 frame-relay route 105 interface Serial2/2 501
interface Serial2/1
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 401 interface Serial2/0 104
interface Serial2/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 501 interface Serial2/0 105
interface Serial2/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 clock rate 64000
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 301 interface Serial2/0 103
R1
interface Serial1/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 no fair-queue
inerface Serial1/0.3 point-to-point
 ip address 172.16.2.1 255.255.255.0
 frame-relay interface-dlci 103   
interface Serial1/0.4 point-to-point
 ip address 172.16.2.10 255.255.255.0
 frame-relay interface-dlci 104   
interface Serial1/0.5 point-to-point
 ip address 172.16.2.11 255.255.255.0
 frame-relay interface-dlci 105
R3
 
 interface Serial0/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/3.1 point-to-point
 ip address 172.16.2.3 255.255.255.0
 frame-relay interface-dlci 301   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0
 
 R4
 
  
interface Serial0/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/2.1 point-to-point
 ip address 172.16.2.4 255.255.255.0
 frame-relay interface-dlci 401   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0
R5
nterface Serial0/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
interface Serial0/2.1 point-to-point
 ip address 172.16.2.5 255.255.255.0
 frame-relay interface-dlci 501   
router ospf 10
 log-adjacency-changes
 network 172.16.2.0 0.0.0.255 area 0

 

 本文转自q狼的诱惑 51CTO博客,原文链接:http://blog.51cto.com/liangrui/408451,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
Cisco静态路由和OSPF结合小实验
Cisco静态路由和OSPF结合小实验
40 0
路由器和静态路由的配置
路由器和静态路由的配置 1、路由器 1.1 什么是路由器 路由器(Router)是连接两个或多个网络的硬件设备,在网络间起网关的作用,是读取每一个数据包中的地址然后决定如何传送的专用智能性的网络设备。 路由器作用在OSI模型的第三层,提供了路由与转发两种重要机制。
99 0
交换机 路由器配置
交换机 路由器配置
67 0
HCL_路由器_OSPF配置
HCL_路由器_OSPF配置
189 0
HCL_路由器_静态路由
HCL_路由器_静态路由
290 0
在NBMA网络中配置OSPF
在NBMA网络中配置OSPF
143 0
文章
问答
文章排行榜
最热
最新
相关电子书
更多
子网路由介绍
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载