R4#sh run
multilink bundle-name authenticated
frame-relay switching
interface Serial1/1
no ip address
encapsulation frame-relay
no ip route-cache
serial restart-delay 0
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 interface Serial1/2 201
frame-relay route 103 interface Serial1/3 301
!
interface Serial1/2
no ip address
encapsulation frame-relay
no ip route-cache
serial restart-delay 0
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial1/1 102
frame-relay route 203 interface Serial1/3 302 <ISP 会取消一条>
!
interface Serial1/3
no ip address
encapsulation frame-relay
no ip route-cache
serial restart-delay 0
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface Serial1/1 103
frame-relay route 302 interface Serial1/2 203<ISP会取消这一条>
!
===============================================
R4#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial1/1 102 Serial1/2 201 active
Serial1/1 103 Serial1/3 301 active
Serial1/2 201 Serial1/1 102 active
Serial1/2 203 Serial1/3 302 active
Serial1/3 301 Serial1/1 103 active
Serial1/3 302 Serial1/2 203 active
我们依旧让r4保持互联(默认情况下,供应商 r4并不会全互联)
分别在R1/R2/R3 配置如下 ( 关闭 in arp)
====================R1=============================
interface Serial1/0
ip address 192.168.123.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 192.168.123.3 103 B
frame-relay map ip 192.168.123.2 102 B
no frame-relay inverse-arp
frame-relay lmi-type cisco
frame-relay inft-type dce
====================R2============================
interface Serial1/0
ip address 192.168.123.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
/frame-relay map ip 192.168.123.3 203 B/
frame-relay map ip 192.168.123.1 201 B
no frame-relay inverse-arp
frame-relay lmi-type cisco
frame-relay inft-type dce
===================R3=========================
interface Serial1/0
ip address 192.168.123.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
/ frame-relay map ip 192.168.123.2 302 B/
frame-relay map ip 192.168.123.1 301 B
no frame-relay inverse-arp
frame-relay lmi-type cisco
================================================
以前的配置是全互联的配置,但往往实际环境中是hub-spoken方式,以上红色标出的的FR map是没有的
R1可以跟R2/R3连接,但r2与r3不可以 ping通
我们分别在R1 跑rip v1结果发现更本就学不到,所以我们在做FR map的时候,后面要加一个broadcast
那么我们在R2中看路由表及下一条是什么? <192.168.123.1>
R2#sh ip route rip
R 1.0.0.0/8 [120/1] via 192.168.123.1, 00:00:17, Serial1/0
R 3.0.0.0/8 [120/1] via 192.168.123.1, 00:00:17, Serial1/0
默认情况下: R1 的s1/0水平分割是关闭的
R1(config)#int s1/0
R1(config-if)#ip split-horizon \\开启水平分割
用命令 show ip int s1/0 可以查看
R2#sh ip route r
R 1.0.0.0/8 [120/1] via 192.168.123.1, 00:00:06, Serial1/0
R2 只能获得R1 的环回口路由,这是由于R1 上的水平分割开启后,R1 从R3 接收到R3 公
告的路由后,不从帧中继口发送出来,导致R2 没有接收到R3上公告的路由
R1#sh run int s0/0
Building configuration...
Current configuration : 128 bytes
!
interface Serial0/0
no ip address
encapsulation frame-relay
no dce-terminal-timing-enable
no frame-relay inverse-arp
end
R1#sh run int s0/0.2
Building configuration...
Current configuration : 176 bytes
!
interface Serial0/0.2 multipoint
ip address 192.168.123.1 255.255.255.0
frame-relay map ip 192.168.123.2 102 broadcast
frame-relay map ip 192.168.123.3 103 broadcast
R1#sh ip int s0/0.2
Serial0/0.2 is up, line protocol is up
Internet address is 192.168.123.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.9
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled \\R1 的点到多点子接口水平分割是开启
……
分别在R1/R2/R3启用RIP
所以在r2上看到的route table 如下:
R2#sh ip route rip
R 1.0.0.0/8 [120/1] via 192.168.123.1, 00:00:05, Serial0/0
可以使用“no interface s0/0.2”命令来删除子接口,然而需要重新启动路由
器,该子接口才真正被删除。
R1:
interface Serial0/0
no ip address
encapsulation frame-relay
no dce-terminal-timing-enable
no frame-relay inverse-arp
!
interface Serial0/0.12 point-to-point
ip address 192.168.12.1 255.255.255.0
frame-relay interface-dlci 102
!
interface Serial0/0.13 point-to-point
ip address 192.168.13.1 255.255.255.0
frame-relay interface-dlci 103
R2:
interface Serial0/0
no ip address
encapsulation frame-relay
no dce-terminal-timing-enable
no frame-relay inverse-arp
!
interface Serial0/0.12 point-to-point
ip address 192.168.12.2 255.255.255.0
frame-relay interface-dlci 201
R3:
interface Serial0/0
no ip address
encapsulation frame-relay
no dce-terminal-timing-enable
no frame-relay inverse-arp
!
interface Serial0/0.13 point-to-point
ip address 192.168.13.3 255.255.255.0
frame-relay interface-dlci 301
看r3的路由表:
R3#sh ip route
R 192.168.12.0/24 [120/1] via 192.168.13.1, 00:00:00, Serial0/0.13
R 1.0.0.0/8 [120/1] via 192.168.13.1, 00:00:00, Serial0/0.13
C 192.168.13.0/24 is directly connected, Serial0/0.13
R 2.0.0.0/8 [120/2] via 192.168.13.1, 00:00:00, Serial0/0.13
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
\\注意路由的下一跳
r2 路由表
R2#sh 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
C 192.168.123.0/24 is directly connected, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 192.168.123.1, 00:01:02, Serial0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
r1 :
R1(config-if)#no ip split-horizon eigrp 90
\\关闭 水平 分割
R2#sh ip rou eig
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 192.168.123.1, 00:04:16, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2809856] via 192.168.123.1, 00:00:33, Serial0/0
r1:
R1(config-if)#no ip next-hop-self eigrp 90
\\开启第三方下一跳
R2#sh ip route eigrp
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 192.168.123.1, 00:00:31, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2809856] via 192.168.123.3, 00:00:32, Serial0/0
这样就出现了 到 3.3.3.3 路由路径 (192.168.123.3)和 实际 路径(192.168.123.1) 不 一至的 情况,单协议还比较简单,要是碰到的是多协议环境就更复杂了.
本文出自 “Erick WAY” 博客,谢绝转载!