【CCNA】思科帧中继、EIGRP与子接口应用实验

实验拓扑:

wKiom1PwCbHyHjNGAADxPpwDz58597.jpg

这是著名的红茶三杯耿叔的实验,将R4作为帧中继交换机,R1做2个子接口,DLCI号分别为102,103

R2与R3也分别做子接口,DLCI号为201和301(如图)。

实验目的:1.通过帧中继,使R1与R2,R1与R3互通

          2.分别在R1,R2,R3上做虚拟网段1.1.1.1 ,2.2.2.2 ,3.3.3.3,使互相都能学习到。

实验步骤:1.首先配置R4

R4#conf t

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

R4(config)#no ip routing

R4(config)#frame-relay switching     /指定为帧中继交换机

R4(config)#int s1/1

R4(config-if)#no sh

*Mar  1 00:26:56.955: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up

*Mar  1 00:26:57.955: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up

R4(config-if)#encapsulation frame-relay             /封装

R4(config-if)#clock rate 64000

R4(config-if)#frame-relay intf-type dce 

R4(config-if)#frame-relay route 102 int s1/2 201     

R4(config-if)#frame-relay route 103 int s1/3 301     /指定本地DLCI与对应DLCI

*Mar  1 00:27:58.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down

R4的s1/1口配置完毕,同理,配置s1/2和s1/3口


R4(config-if)#int s1/2

R4(config-if)#no sh

*Mar  1 00:30:29.043: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up

*Mar  1 00:30:30.043: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up

R4(config-if)#encapsulation frame-relay 

R4(config-if)#clo rate 64000

R4(config-if)#frame-relay intf-type dce

R4(config-if)#frame-relay route 201 int s1/1 102

R4(config-if)#

*Mar  1 00:31:24.627: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to down


R4(config-if)#int s1/3

R4(config-if)#no sh                     

R4(config-if)#encapsulation frame-relay 

R4(config-if)#

*Mar  1 00:31:46.835: %LINK-3-UPDOWN: Interface Serial1/3, changed state to up

*Mar  1 00:31:47.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/3, changed state to up

R4(config-if)#clo rate 64000

R4(config-if)#frame-relay intf-type dce

R4(config-if)#frame-relay route 301 int s1/1 103

这样,R4的配置接完成了,下面配置R1,R2,R3


R1

R1#conf t

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

R1(config)#int s1/0

R1(config-if)#no sh

*Mar  1 00:35:26.943: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

*Mar  1 00:35:27.943: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R1(config-if)#encapsulation frame-relay 

R1(config-if)#ex

R1(config)#int s1/0.12 point-to-point                 /进子接口,点对点方式

R1(config-subif)#ip add 10.1.12.1 255.255.255.0

R1(config-subif)#no sh

R1(config-subif)#frame-relay interface-dlci 102         /指定DLCI

R1(config-fr-dlci)#ex                            

R1(config-subif)#ex

R1(config)#int s1/0.13 point-to-point    

R1(config-subif)#ip add 10.1.13.1 255.255.255.0

R1(config-subif)#no sh

R1(config-subif)#frame-relay interface-dlci 103

R1#show frame-relay map

Serial1/0.12 (down): point-to-point dlci, dlci 102(0x66,0x1860), broadcast

          status defined, inactive

Serial1/0.13 (down): point-to-point dlci, dlci 103(0x67,0x1870), broadcast

          status defined, inactive

可以发现,两个子接口已经自动变成广播形式。


R2

R2(config)#int s1/0

R2(config-if)#no sh

*Mar  1 00:39:56.155: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

*Mar  1 00:39:57.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R2(config-if)#encapsulation frame-relay 

R2(config-if)#

*Mar  1 00:40:25.271: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down

R2(config-if)#ex

R2(config)#

*Mar  1 00:40:27.455: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R2(config)#int s1/0.12 point-to-point 

R2(config-subif)#ip add 10.1.12.2 255.255.255.0

R2(config-subif)#no sh

R2(config-subif)#frame-relay interface-dlci 201

R2(config-fr-dlci)#end

*Mar  1 00:40:58.447: %SYS-5-CONFIG_I: Configured from console by console

R2#show frame-relay map

Serial1/0.12 (up): point-to-point dlci, dlci 201(0xC9,0x3090), broadcast

          status defined, active

可以发现,接口已经激活了。


R3

R3#conf t

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

R3(config)#int s1/0

R3(config-if)#no sh

R3(config-if)#encapsulation frame-relay 

*Mar  1 00:43:18.151: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

*Mar  1 00:43:19.151: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R3(config-if)#encapsulation frame-relay 

R3(config-if)#ex

R3(config)#int s1/0.13 point-to-point 

R3(config-subif)#ip add 10.1.13.3 255.255.255.0

R3(config-subif)#no sh

R3(config-subif)#frame-relay interface-dlci 301

R3(config-fr-dlci)#end

*Mar  1 00:43:56.467: %SYS-5-CONFIG_I: Configured from console by console

R3#show frame-relay map

Serial1/0.13 (up): point-to-point dlci, dlci 301(0x12D,0x48D0), broadcast

          status defined, active

R3也激活了


在R1上查看一下map

R1#show frame-relay map

Serial1/0.12 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast

          status defined, active

Serial1/0.13 (up): point-to-point dlci, dlci 103(0x67,0x1870), broadcast

          status defined, active

可以发现,已经学习到了R2和R3的帧中继了。

连通测试:

R1#p 10.1.12.2


Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/44/64 ms

R1#p 10.1.13.3


Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/50/88 ms

R1与R2,R3都可以ping通了。


下面,在R1,R2,R3上做虚拟接口,用EIGRP使全网互通。


R1(config)#int l0

R1(config-if)#

*Mar  1 00:51:26.343: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R1(config-if)#ip add 1.1.1.1 255.255.255.255

R1(config-if)#no sh

R1(config-if)#router ei 1                                 /EIGRP

R1(config-router)#no auto-summary 

R1(config-router)#network 10.0.0.0                        /宣告网段

R1(config-router)#network 1.1.1.1 


R2#conf t

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

R2(config)#int l0

*Mar  1 00:52:43.727: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R2(config-if)#ip add 2.2.2.2 255.255.255.255

R2(config-if)#no sh

R2(config-if)#router ei 1

R2(config-router)#no auto-summary 

R2(config-router)#network 10.0.0.0   

*Mar  1 00:53:06.799: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.12.1 (Serial1/0.12) is up: new adjacency

R2(config-router)#network 2.2.2.2


R3#conf t

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

R3(config)#int l0

*Mar  1 00:53:50.815: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R3(config-if)#ip add 3.3.3.3 255.255.255.255

R3(config-if)#no sh

R3(config-if)#router ei 1

R3(config-router)#no auto-summary 

R3(config-router)#network 10.0.0.0      

*Mar  1 00:54:13.195: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.13.1 (Serial1/0.13) is up: new adjacency

R3(config-router)#network 3.3.3.3


配置完成,在R1,R2 ,R3上查看是否能互相学习到3个网段。

R1#show ip route


Gateway of last resort is not set


     1.0.0.0/32 is subnetted, 1 subnets

C       1.1.1.1 is directly connected, Loopback0

     2.0.0.0/32 is subnetted, 1 subnets

D       2.2.2.2 [90/2297856] via 10.1.12.2, 00:00:25, Serial1/0.12

     3.0.0.0/32 is subnetted, 1 subnets

D       3.3.3.3 [90/2297856] via 10.1.13.3, 00:00:09, Serial1/0.13

     10.0.0.0/24 is subnetted, 2 subnets

C       10.1.13.0 is directly connected, Serial1/0.13

C       10.1.12.0 is directly connected, Serial1/0.12


R2#show ip 

*Mar  1 01:02:06.219: %SYS-5-CONFIG_I: Configured from console by console

R2#show ip route


Gateway of last resort is not set


     1.0.0.0/32 is subnetted, 1 subnets

D       1.1.1.1 [90/2297856] via 10.1.12.1, 00:02:12, Serial1/0.12

     2.0.0.0/32 is subnetted, 1 subnets

C       2.2.2.2 is directly connected, Loopback0

     3.0.0.0/32 is subnetted, 1 subnets

D       3.3.3.3 [90/2809856] via 10.1.12.1, 00:01:23, Serial1/0.12

     10.0.0.0/24 is subnetted, 2 subnets

D       10.1.13.0 [90/2681856] via 10.1.12.1, 00:09:00, Serial1/0.12

C       10.1.12.0 is directly connected, Serial1/0.12


R3#show ip route


Gateway of last resort is not set


     1.0.0.0/32 is subnetted, 1 subnets

D       1.1.1.1 [90/2297856] via 10.1.13.1, 00:02:47, Serial1/0.13

     2.0.0.0/32 is subnetted, 1 subnets

D       2.2.2.2 [90/2809856] via 10.1.13.1, 00:02:14, Serial1/0.13

     3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 2 subnets

C       10.1.13.0 is directly connected, Serial1/0.13

D       10.1.12.0 [90/2681856] via 10.1.13.1, 00:08:28, Serial1/0.13


R1,R2,R3都可以互相学习虚拟网段了,全网互通。

你可能感兴趣的:(EIGRP,子接口,思科帧中继)