帧中继子接口静态映射:
[RTA]int s1/0
[RTA-Serial1/0]link-protocol fr ietf 接口封装FR
[RTA-Serial1/0]fr interface-type dte 设置接口类型为DTE
[RTA-Serial1/0]fr lmi type q933a 设置接口LMI类型
[RTA]int s1/0.1 p2p 设置接口为P2P模式
[RTA-Serial1/0.1]ip add 10.1.1.1 24
[RTA-Serial1/0.1]fr dlci 20 设置本地DLCI号
[RTA-fr-dlci-Serial0/0/0.1-20]quit
[RTA-Serial1/0.1]quit
[RTA]int s1/0.2 p2p
[RTA-Serial1/0.2]ip add 10.1.2.1 24
[RTA-Serial1/0.2]fr dlci 30
[RTB]int s0/0
[RTB-Serial0/0]link-protocol fr ietf
[RTB-Serial0/0]fr lmi type q933a
[RTB-Serial0/0]fr interface-type dte
[RTB-Serial0/0]undo shutdown
[RTB]int s0/0.1 p2p
[RTB-Serial0/0.1]fr dlci 40
[RTB-fr-dlci-Serial0/0/0.1-40]quit
[RTB-Serial0/0.1]ip add 10.1.1.2 24
[RTB-Serial0/0.1]quit
[RTC]int s0/0
[RTC-Serial0/0]link-protocol fr ietf
[RTC-Serial0/0]fr interface-type dte
[RTC-Serial0/0]fr lmi type q933a
[RTC-Serial0/0]undo shutdown
[RTC]int s0/0.1 p2p
[RTC-Serial0/0.1]fr dlci 50
[RTC-fr-dlci-Serial0/0.1-50]quit
[RTC-Serial0/0.1]ip add 10.1.2.2 24
[RTA]disp fr map-info
Map Statistics for interface Serial1/0 (DTE)
DLCI 20, Point-to-Point DLCI, Serial1/0.1
created at: 2012/08/14 20:18:05, status: INACTIVE
DLCI 30, Point-to-Point DLCI, Serial1/0.2
created at: 2012/08/14 20:18:28, status: INACTIVE
[RTB]disp fr map-info
Map Statistics for interface Serial0/0 (DTE)
DLCI 40, Point-to-Point DLCI, Serial0/0.1
created at: 2012/08/14 20:22:09, status: INACTIVE
[RTC]disp fr map-info
Map Statistics for interface Serial0/0 (DTE)
DLCI 50, Point-to-Point DLCI, Serial0/0.1
created at: 2012/08/14 20:28:35, status: INACTIVE
配置FR交换机:
[FR SWITCH]fr switching 开启FR SWITCH功能
[FR SWITCH]int s6/0
[FR SWITCH-Serial6/0]link-protocol fr ietf 接口封装FR
[FR SWITCH-Serial6/0]fr interface-type dce 设置接口模式DCE
[FR SWITCH-Serial6/0]fr dlci 20 为FR接口分配虚电路号
[FR SWITCH-fr-dlci-Serial6/0-20]quit
[FR SWITCH-Serial6/0]fr dlci 30
[FR SWITCH-fr-dlci-Serial6/0-30]quit
[FR SWITCH-Serial6/0]int s7/0
[FR SWITCH-Serial7/0]link-protocol fr ietf
[FR SWITCH-Serial7/0]fr interface-type dce
[FR SWITCH-Serial7/0]fr dlci 40
[FR SWITCH-fr-dlci-Serial7/0-40]quit
[FR SWITCH-Serial7/0]int s7/1
[FR SWITCH-Serial7/1]link-protocol fr ietf
[FR SWITCH-Serial7/1]fr interface-type dce
[FR SWITCH-Serial7/1]fr dlci 50
[FR SWITCH-fr-dlci-Serial7/1-50]quit
[FR SWITCH-Serial7/1]quit
[FR SWITCH]fr switch a-b interface s6/0 dlci 20 interface s7/0 dlci 40 配置DLCI路由
[FR SWITCH-fr-switching-a-b]quit
[FR SWITCH]fr switch a-c interface s6/0 dlci 30 interface s7/1 dlci 50
[FR SWITCH-fr-switching-a-c]quit
[FR SWITCH]disp fr switch-table all
Total PVC switch records:2
PVC-Name Status Interface(Dlci) <-----> Interface(Dlci)
a-b Active Serial6/0(20) Serial7/0(40)
a-c Active Serial6/0(30) Serial7/1(50)
此时的FR switch已经配置成功,都为active状态。
此时RTA,RTB,RTC间可以互访:
[RTA]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=86 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=4 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=10 ms
--- 10.1.1.2 ping statistics ---
4 packet(s) transmitted
4 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/25/86 ms
[RTA]ping 10.1.2.2
PING 10.1.2.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.2.2: bytes=56 Sequence=1 ttl=255 time=13 ms
Reply from 10.1.2.2: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 10.1.2.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.1.2.2: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 10.1.2.2: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 10.1.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/3/13 ms
在每个路由器上配置loop接口来验证连通性:
[RTA]int loop0
[RTA-LoopBack0]ip add 20.0.0.1 32
[RTA]rip 1
[RTA-rip-1]ver 2
[RTA-rip-1]undo summary
[RTA-rip-1]network 10.1.1.0
[RTA-rip-1]network 10.1.2.0
[RTA-rip-1]network 20.0.0.0
[RTB]int loop0
[RTB-LoopBack0]ip add 30.0.0.1 32
[RTB-LoopBack0]quit
[RTB]rip 1
[RTB-rip-1]ver 2
[RTB-rip-1]undo summary
[RTB-rip-1]network 10.1.1.0
[RTB-rip-1]network 30.0.0.0
[RTB-rip-1]quit
[RTC]int loop0
[RTC-LoopBack0]ip add 40.0.0.1 32
[RTC-LoopBack0]quit
[RTC]rip 1
[RTC-rip-1]ver 2
[RTC-rip-1]undo summary
[RTC-rip-1]network 10.1.2.0
[RTC-rip-1]network 40.0.0.0
[RTC-rip-1]quit
此时发现无需配置RIP PEER也可获取全网路由信息:
[RTA]disp ip routing-table
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 Direct 0 0 10.1.1.1 S0/0.1
10.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
10.1.2.0/24 Direct 0 0 10.1.2.1 S0/0.2
10.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0
20.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
30.0.0.1/32 RIP 100 1 10.1.1.2 S0/0.1
40.0.0.1/32 RIP 100 1 10.1.2.2 S0/0.2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
[RTB]disp ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 Direct 0 0 10.1.1.2 S0/0.1
10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
10.1.2.0/24 RIP 100 1 10.1.1.1 S0/0.1
20.0.0.1/32 RIP 100 1 10.1.1.1 S0/0.1
30.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
40.0.0.1/32 RIP 100 2 10.1.1.1 S0/0.1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
[RTC]disp ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 RIP 100 1 10.1.2.1 S0/0.1
10.1.2.0/24 Direct 0 0 10.1.2.2 S0/0.1
10.1.2.2/32 Direct 0 0 127.0.0.1 InLoop0
20.0.0.1/32 RIP 100 1 10.1.2.1 S0/0.1
30.0.0.1/32 RIP 100 2 10.1.2.1 S0/0.1
40.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
[RTA]ping -a 20.0.0.1 40.0.0.1
PING 40.0.0.1: 56 data bytes, press CTRL_C to break
Reply from 40.0.0.1: bytes=56 Sequence=1 ttl=255 time=14 ms
Reply from 40.0.0.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 40.0.0.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 40.0.0.1: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 40.0.0.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 40.0.0.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/5/14 ms
[RTB]ping -a 30.0.0.1 40.0.0.1
PING 40.0.0.1: 56 data bytes, press CTRL_C to break
Reply from 40.0.0.1: bytes=56 Sequence=1 ttl=254 time=23 ms
Reply from 40.0.0.1: bytes=56 Sequence=2 ttl=254 time=20 ms
Reply from 40.0.0.1: bytes=56 Sequence=3 ttl=254 time=10 ms
Reply from 40.0.0.1: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 40.0.0.1: bytes=56 Sequence=5 ttl=254 time=20 ms
--- 40.0.0.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/14/23 ms