通过租用ISP的帧中继交换网络,连接四个网络

帧中继交换

 

实验任务和目标:

任务1.按照实验要求连接拓扑

任务2.规划IPDLCI

任务3.配置ISP方的帧中继交换网络:DLCI映射、ISP FR交换机为DCEFR路由

任务4.配置四个帧中继DTE

任务5.测试联通性

 

 

实验操作过程及配置说明【各个设备的配置】:

R1-------R4    DLCI    101            point to point

 

R1-------R3    DLCI    201            point to mulitipoint

R1-------R2    DLCI    202

 

R1     S0/0.1   201  202      mulitipoint         ip 192.168.2.1/24

          S0/0.2   101              point                     ip 192.168.1.1/24

R2    ip  192.168.2.2/24

R3    ip  192.168.2.3/24

R4    ip  192.168.1.2/24

R5配置:

r5(config)#no ip routing

r5(config)#frame-relay switching

r5(config)#int s0/0

r5(config-if)#encapsulation frame-relay

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

r5(config-if)#clock rate 64000

r5(config-if)#no shut

r5(config-if)#frame-relay route 101 int s0/3 101

r5(config-if)#frame-relay route 201 int s0/2 201

r5(config-if)#frame-relay route 202 int s0/1 202

 

r5(config)#int s0/1

r5(config-if)#encapsulation frame-relay

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

r5(config-if)#frame-relay route 202 int s0/0 202

r5(config-if)#no shut

 

r5(config)#int s0/2

r5(config-if)#encapsulation frame-relay

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

r5(config-if)#frame-relay route 201 int s0/0 201

r5(config-if)#no shut

 

r5(config)#int s0/3

r5(config-if)#encapsulation frame-relay

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

r5(config-if)#frame-relay route 101 int s0/0 101

r5(config-if)#no shut

 

r5#show frame-relay route

Input Intf      Input Dlci      Output Intf     Output Dlci     Status

Serial0/0       101             Serial0/3       101             active

Serial0/0       201             Serial0/2       201             active

Serial0/0       202             Serial0/1       202             active

Serial0/1       202             Serial0/0       202             active

Serial0/2       201             Serial0/0       201             active

Serial0/3       101             Serial0/0       101             active

 

 

 

R1配置:

r1(config)#int s0/0

r1(config-if)#encapsulation frame-relay

r1(config-if)#no frame-relay inverse-arp

r1(config-if)#no shut

r1(config)#int s0/0.1 multipoint

r1(config-subif)#ip add 192.168.2.1 255.255.255.0

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

r1(config-fr-dlci)#frame-relay interface-dlci 202

r1(config-fr-dlci)#exit

r1(config-subif)#frame-relay map ip 192.168.2.2 202 b

r1(config-subif)#frame-relay map ip 192.168.2.3 201 b

r1(config-subif)#no shut

r1(config-subif)#end

r1(config)#int s0/0.2 point-to-point

r1(config-subif)#ip add 192.168.1.1 255.255.255.0

r1(config-subif)#frame-relay interface-dlci 101

r1(config-fr-dlci)#exit

r1(config-subif)#frame-relay map ip 192.168.1.2 101 b

r1#show frame-relay map

Serial0/0.1 (up): ip 192.168.2.2 dlci 202(0xCA,0x30A0), static,

              broadcast,

              CISCO, status defined, active

Serial0/0.1 (up): ip 192.168.2.3 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

Serial0/0.2 (up): point-to-point dlci, dlci 101(0x65,0x1850), broadcast

          status defined, active

 

 

 

 

R2配置:

r2(config)#int s0/0

r2(config-if)#encapsulation frame-relay

r2(config-if)#no frame-relay inverse-arp

r2(config-if)#ip add 192.168.2.2 255.255.255.0

r2(config-if)#frame-relay map ip 192.168.2.2 202 b

r2(config-if)#frame-relay map ip 192.168.2.1 202 b

r2(config-if)#no shut

r2#show frame-relay map

Serial0/0 (up): ip 192.168.2.1 dlci 202(0xCA,0x30A0), static,

              broadcast,

              CISCO, status defined, active

Serial0/0 (up): ip 192.168.2.2 dlci 202(0xCA,0x30A0), static,

              broadcast,

              CISCO, status defined, active

R3配置:

r3(config)#int s0/0

r3(config-if)#encapsulation frame-relay

r3(config-if)#no frame-relay inverse-arp

r3(config-if)#ip add 192.168.2.3 255.255.255.0

r3(config-if)#frame-relay map ip 192.168.2.3 201 b

r3(config-if)#frame-relay map ip 192.168.2.1 201 b

r3(config-if)#no shut

r3#show frame-relay map

Serial0/0 (up): ip 192.168.2.1 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

Serial0/0 (up): ip 192.168.2.3 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

 

 

 

R4配置:

r4(config)#int s0/0

r4(config-if)#encapsulation frame-relay

r4(config-if)#no frame-relay inverse-arp

r4(config-if)#ip add 192.168.1.2 255.255.255.0

r4(config-if)#frame-relay map ip 192.168.1.1 101 b

r4(config-if)#frame-relay map ip 192.168.1.2 101 b

r4(config-if)#no shut

r4#show frame-relay map

Serial0/0 (up): ip 192.168.1.1 dlci 101(0x65,0x1850), static,

              broadcast,

              CISCO, status defined, active

Serial0/0 (up): ip 192.168.1.2 dlci 101(0x65,0x1850), static,

              broadcast,

              CISCO, status defined, active

 

 

 

 

实验结果:

r1#ping 192.168.2.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 28/58/80 ms

r1#ping 192.168.2.3

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/48/100 ms

r1#ping 192.168.1.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/84/216 ms

r1#ping 192.168.1.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/51/92 ms

 

 

 

r2#ping 192.168.2.2

 

Type escape sequence to abort.

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

!!!!!

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

r2#ping 192.168.2.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/70/112 ms

 

 

 

 

r3#ping 192.168.2.3

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 52/108/208 ms

r3#ping 192.168.2.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/52/112 ms

 

 

 

 

 

 

 

 

r4#ping 192.168.1.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/63/116 ms

r4#ping 192.168.1.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/71/152 ms

 

 

 

 

 

 

 

 

 

总结和分析、结论:

 

对于不同网段的通信只需在双方配置对方的IP地址和自己的DLCI号广播就可以相互通信。如下配置:

r2(config)#int s0/0

r2(config-if)#frame-relay map ip 192.168.1.2 202 b

r2(config-if)#end

 

r4(config)#int s0/0

r4(config-if)#frame-relay map ip 192.168.2.2 101 b

r4(config-if)#end

 

r4#ping 192.168.2.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 72/129/212 ms

 

 

 

r2#ping 192.168.1.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/84/172 ms

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值