方法:在R2/R4上建立一个隧道,将帧中继的DLCI方向通过隧道引到对方.以下输出,被shut的端口表示未用到.
R1:无特殊配置,和正常一样
r1-2514#sh run
Building configuration...
00:36:13: %SYS-5-CONFIG_I: Configured from console by console
Current configuration : 655 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname r1-2514
!
!
ip subnet-zero
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.0.0.0
!
interface Ethernet0
no ip address
shutdown
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 10.0.0.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.0.3 103 broadcast
frame-relay map ip 10.0.0.5 105 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.0.1.1 255.255.255.0
!
ip classless
ip http server
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
R2 配置成帧中继交换机,将R1--R3的直接引导,R1--R5和R3---R5的配置一个隧道,利用frame-relay route 将对应的DLCI引导到各自的隧道的DLCI上
r2-2514#sh run
Building configuration...
Current configuration : 1058 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2-2514
!
!
ip subnet-zero
!
frame-relay switching
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.0.0.0
!
interface Tunnel0
no ip address
tunnel source Ethernet0
tunnel destination 8.8.8.4
!
interface Ethernet0
ip address 8.8.8.2 255.255.255.0
!
interface Ethernet1
ip address 10.0.3.2 255.255.255.0
shutdown
!
interface Serial0
no ip address
encapsulation frame-relay
clock rate 9600
frame-relay intf-type dce
frame-relay route 103 interface Serial1 301
frame-relay route 105 interface Tunnel0 200
!
interface Serial1
no ip address
encapsulation frame-relay
clock rate 9600
frame-relay intf-type dce
frame-relay route 301 interface Serial0 103
frame-relay route 305 interface Tunnel0 201
!
router ospf 1
log-adjacency-changes
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 0
!
ip classless
ip http server
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
R4基本同R2配置,只是少了R1--R3的引导.
r4-2501#sh run
Building configuration...
Current configuration : 847 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname r4-2501
!
!
ip subnet-zero
!
frame-relay switching
!
!
!
interface Loopback0
ip address 4.4.4.4 255.0.0.0
!
interface Tunnel0
no ip address
tunnel source Ethernet0
tunnel destination 8.8.8.2
!
interface Ethernet0
ip address 8.8.8.4 255.255.255.0
!
interface Serial0
ip address 10.0.4.4 255.255.255.0
shutdown
!
interface Serial1
ip address 10.0.3.4 255.255.255.0
encapsulation frame-relay
clock rate 9600
frame-relay intf-type dce
frame-relay route 501 interface Tunnel0 200
frame-relay route 503 interface Tunnel0 201
!
ip classless
no ip http server
!
!
!
line con 0
logging synchronous
line aux 0
transport input all
line vty 0 4
login
!
end
R3 无特殊配置
r3-2514#sh run
Building configuration...
Current configuration : 734 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3-2514
!
!
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.0.0.0
!
interface Ethernet0
ip address 10.0.3.3 255.255.255.0
shutdown
!
interface Ethernet1
ip address 10.0.4.3 255.255.255.0
shutdown
!
interface Serial0
ip address 10.0.2.3 255.255.255.0
shutdown
no fair-queue
!
interface Serial1
ip address 10.0.0.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.0.1 301 broadcast
frame-relay map ip 10.0.0.5 305 broadcast
no frame-relay inverse-arp
!
ip classless
ip http server
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
R5 无特殊配置
r5-2501#sh run
Building configuration...
Current configuration : 893 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r5-2501
!
!
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Ethernet0
ip address 10.0.5.5 255.255.255.0
shutdown
!
interface Serial0
ip address 172.31.1.5 255.255.255.0
encapsulation frame-relay
shutdown
no fair-queue
no arp frame-relay
frame-relay map ip 172.31.1.1 501 broadcast
frame-relay map ip 172.31.1.2 502 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.0.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.0.1 501
frame-relay map ip 10.0.0.3 503
no frame-relay inverse-arp
!
router eigrp 100
network 5.0.0.0
network 172.16.0.0
no auto-summary
!
ip classless
ip http server
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
验证:
r5-2501#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 372/373/376 ms
r5-2501#ping 10.0.0.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 376/376/376 ms
r3-2514#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 368/370/372 ms
结果:R1 R3 R5相互都能PING通
附:
复习一下821一个考
点,我配完R1,R3后,还
文章评论