天天看點

CCNP精粹系列之八----幀中繼全網拓撲試驗配置

                     幀中繼全網拓撲試驗配置

公司總部和分支機構的通信除了用DDN之外,另外還可以采用幀中繼。路由器A是總公司,B和C是分支機構,利用幀中繼通信的具體配置可以如下:

試驗環境:

首先要清楚全網示意圖:

A:連接配接幀中繼的端口:202.110.100.1   255.255.255.0

區域網路端口192.168.10.1   255.255.255.0

B:連接配接幀中繼的端口:202.110.100.2   255.255.255.0

區域網路端口192.168.10.2   255.255.255.0

C:連接配接幀中繼的端口:202.110.100.3   255.255.255.0

區域網路端口192.168.10.3   255.255.255.0

通過對幀中繼的配置,實作不同網段間的通信,那麼試驗就成功了。

在A上做:

router>en

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#host A

A(config)#int e0

A(config-if)#ip addr 192.168.10.1 255.255.255.0

A(config-if)#no shut

%LINK-3-UPDOWN: Interface Ethernet0, changed state to up

A(config-if)#int s0

A(config-if)#ip addr 202.110.100.1 255.255.255.0

A(config-if)#encap frame-relay

A(config-if)#frame-relay int

A(config-if)#frame-relay interface-dlci 102

A(config-if)#frame-relay interface-dlci 103

A(config-if)#bandwidth 64

%LINK-3-UPDOWN: Interface Serial0, changed state to up

A(config-if)#exit

%LINK-3-UPDOWN: Interface Serial0, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

21:49:39: %FR-5-DLCICHANGE: Interface Serial0

A(config)#router eigrp 100

A(config-router)#net 202.110.100.0

A(config-router)#net 192.168.10.0

A(config-router)#exit

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up

A(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console

再B上做:

Router>en

Router(config)#host B

B(config)#int e0

B(config-if)#ip addr 192.168.20.1 255.255.255.0

B(config-if)#no shut

B(config-if)#int s0

B(config-if)#ip addr 202.110.100.2 255.255.255.0

B(config-if)#encap frame-relay

B(config-if)#frame-relay interface-dlci 201

B(config-if)#frame-relay interface-dlci 203

B(config-if)#bandwidth 64

B(config-if)#exit

B(config)#router eigrp 100

B(config-router)#net 192.168.20.0

B(config-router)#net 202.110.100.0

B(config-router)#exit

B(config)#^Z

在C上做:

Router>

Router(config)#host C

C(config)#int e0

C(config-if)#ip addr 192.168.30.1 255.255.255.0

C(config-if)#no shut

C(config-if)#int s0

C(config-if)#ip addr 202.110.100.3 255.255.255.0

C(config-if)#encap frame-relay

C(config-if)#frame-relay int

C(config-if)#frame-relay interface-dlci 301

C(config-if)#frame-relay interface-dlci 302

C(config-if)#bandwidth 64

C(config-if)#exit

C(config)#router eigrp 100

C(config-router)#net 202.110.100.0

C(config-router)#net 192.168.30.0

C(config-router)#exit

C(config)#exit

在A上測試路由:

A#

A#show ip ro

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default

       U - per-user static route

Gateway of last resort is not set

C    192.168.10.0 is directly connected, Ethernet0

C    202.110.100.0 is directly connected, Serial0

D    192.168.20.0 [90/3061760] via 202.110.100.2, 00:03:43, Serial0

D    192.168.30.0 [90/3061760] via 202.110.100.3, 00:00:28, Serial0

在B上測試路由:

B#

B#show ip ro

C    192.168.20.0 is directly connected, Ethernet0

D    192.168.10.0 [90/3061760] via 202.110.100.1, 00:02:27, Serial0

D    192.168.30.0 [90/3061760] via 202.110.100.3, 00:00:17, Serial0

在C上測試路由:

C#

C#show ip ro

C    192.168.30.0 is directly connected, Ethernet0

D    192.168.10.0 [90/3061760] via 202.110.100.1, 00:11:44, Serial0

D    192.168.20.0 [90/3061760] via 202.110.100.2, 00:11:44, Serial0

互通情況測試:

C#ping 192.168.30.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.30.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

C#ping 192.168.20.1

Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:

C#ping 192.168.10.1

Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:

C#ping 202.110.100.1

Sending 5, 100-byte ICMP Echos to 202.110.100.1, timeout is 2 seconds:

C#ping 202.110.100.2

Sending 5, 100-byte ICMP Echos to 202.110.100.2, timeout is 2 seconds:

C#ping 202.110.100.3

Sending 5, 100-byte ICMP Echos to 202.110.100.3, timeout is 2 seconds:

     本文轉自shenleigang 51CTO部落格,原文連結:http://blog.51cto.com/shenleigang/150696,如需轉載請自行聯系原作者