扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
我们用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:
!!!!!
实验完成!
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者