第2部分:配置和监测帧中继多点子接口
以下的配置把R1的S0接口设置成为帧中继的多点子接口,其他路由器依然使用物理接口。
配置清单8-6列出了各路由器的配置。
配置清单8-6配置帧中继多点子接口
第1段:R1路由器的配置
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service passWord-encryption
!
hostname R1
!
ip subnet-zero
!
interface Loopback0
ip address 10.1.1.1255.255.255.0
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
no frame-relay inverse-arp
interface Serial0.2 multipoint
bandwidth 64
ip address 192.168.1.1255.255.255.0
frame-relay map ip 192.16S.1.2 102 broadcast
frame-relay map ip 192.168.1.3 103 broadcast
!
router eigrp 100
network 10.1.1.0 0.0.0.255
network 192.168.1.00.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip http server
!
line con 0
line aux 0
line vty 0 4
!
end
第2段:R2路由器的配置
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
ip subnet-zero
no ip finger
!
interface Loopback0
ip address 10.1.2.1255.255.255.0
!
interface Serial0
bandwidth 64
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
no fair-queue
frame-relay map ip 192.168.1.1 201 broadcast
frame-relay interface-dici 201
no frame-relay inverse-arp
!
router eigrp 100
network 10.1.2.00.0.0.255
network 192.168.1.0
no auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip http server
!
line con 0
transport input none
line aux 0
line vty 0 4
!
end
第3段:R3路由器的配置
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
ip subnet-zero
no ip finger
!
interface Loopback0
ip address 10.1.3.1255.255.255.0
!
interface Serial0
bandwidth 64
ip address 192.168.L3
encapsulation frame-relay
no fair-queue
frame-relay map ip 192.168.1.1 301 broadcast
frame-relay interface-dici 301
no frame-relay inverse-arp
!
router eigrp 100
network 10.1.3.00.0.0.255
network 192.168.1.0
no auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip http server
!
line con 0
transport input none
line aux 0
line vty 0 4
!
end
(1)第1段中,对R1路由器进行了帧中继多点子接口的配置。配置中注重以下几点:
●在物理接口下只配置帧中继封装,不配置IP地址和带宽属性;
●定义子接口号可以任意,如实验中的S0.2;
●在定义子接口号时指定所用的方式,即多点方式;
●在多点子接口中定义IP地址、带宽,并配置帧中继MAP语旬;
●在多点子接口配置方式下,该于接口可连接多台路由器。
(2)R2和R3路由器使用的是物理接口来配置帧中继,使用了MAP语旬定义静态映射。注重R1。R2和R3三台路由器的S0接口共处于192.168.1.0/24网段中。
这是一个典型的NBMA(Nonebroadcast MultiAccess,非广播式多路访问)环境,在下面的探讨中将看到它的一些特点。
(3)EIGRP协议的配置与点到点方式下相似。
监测清单8-5所列内容是对上述配置的监测和调试的过程。
监测清单8-5查看帧中继多点子接口配置结果
第1段:查看EIGRP路由表
R1#sh ip route eigrp
10.0.0.0/24 is subnetted, 3 subnets
D10.1.3.0[90/40640000]via 192.168.1.3,00:08:24,Serial0.2
D10.1.2.0[90/40640000]via 192.l68.1.2,00:07:42.Serial0.2
R1#
Term_Server#2
[Resuming connection 2 to r2 ... ]
R2#sh ip route eigrp
10.0.0.0/24 is subnetted, 2 subnets
D10.1.1.0 [90/406400003 via 192.168.1.1,00:07:51,Serial0
R2#
Term_Server#3
[Resuming connection 3 to r3 ... ]
R3#sh ip route eigrp
10.0.0.0/24 is subnetted, 2 subnets
D10.1.1,0 [90/40640000] via 192.168.1.1,00:08:34,Serial0
R3#
第2段:禁用EIGRP水平分割并查看路由表和网络连通性
Term_Server#1
[Resuming connection 1 to r1 ... ]
R1#conft
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s0.2
R1(config-subif)#no ip split-horizon eigrp 100
R1(config-subif)#^Z
R1#
Term_Server#2
[Resuming connection 2 to r2 ... ]
R2#
R2#sh ip route eigrp
10.0.0.0/24 is subnetted, 3 subnets
D10.1.2.0[90/41152000]via 192.168.1.1,00:00:34,Serial0
D10.1.1.0[90/40640000]via 192.168.1.1,00:00:34,Serial0
R2#
Term_Server#3
[Resuming connection 3 to r3 ... ]
R3#sh ip route eigrp
10.0.0.0/24 is subnetted, 3 subnets
D10.1.2.0[90/41152000]via 192.168.1.1,00:17:25,Serial0
D10.1.1.0[90/40640000]via 192.168.1.1,00:17:25,Serial0
R3#
R3#ping 10.1.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.1, timeout is 2 seconds:
.....
SUCcess rate is 0 percent (0/5)
第3段:增加帧中继静态映射并再次测试连通性
R3#ping
Protocol [ip]:
Target IP address: 10.1.2.1
Repeat count [5]:
Datagram size [ 100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.1.3.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=116/116/120 ms
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int sO
R3(config-if)#frame map ip 192.168.1.2 301 broadcast
R3(config-if)#
Term_Server#^2
[Resuming connection 2 to r2 ... ]
R2#conft
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int sO
R2(config-if)#frame map ip 192.168.1.3 201 broadcast
R2(config-if)#^Z
R2#
R2#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=120/124/36 ms
R2#ping 10.1.3.1
Type es