NA-NP-IE系列实验34:帧中继点到点子接口

简介:
实验34:帧中继点到点子接口
1.  实验目的
点到点子接口的配置
注:此实验可以解决实验32ping 不通的问题、。
2.  实验拓扑
3.  实验步骤
注:在接口下不能使用“frame-relay map ip”命令来配置帧中继的映射,而是改用命令
frame-relay interface-dlci 102” 。
 
配置如下
r0(config)#no ip do loo
r0(config)#lin c 0
r0(config-line)#logg s
r0(config-line)#exec-t 00
r0(config-line)#exit
r0(config)#int loo 1
r0(config-if)#ip add 
*Mar  1 00:05:31.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
r0(config-if)#ip add  1.1.1 .1 255.255.255.0
r0(config-if)#exit
r0(config)#int s0/0
r0(config-if)#ip add 172.16.1.1 255.255.255.0
r0(config-if)#no ip add
r0(config-if)#enc fra
r0(config-if)#no sh
r0(config-if)#exit
r0(config)#
*Mar  1 00:06:09.479: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
r0(config)#
*Mar  1 00:06:20.483: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r0(config)#int s0/0.1 point创建点到点子接口
 
r0(config-subif)#ip add 172.16.1.1 255.255.255.0
r0(config-subif)#fra
r0(config-subif)#frame inter 101
r0(config-fr-dlci)#exit
r0(config-subif)#exit
 
r0(config)#int s0/0.2 point
r0(config-subif)#ip add 172.16.1.4 255.255.255.0
r0(config-subif)#frame int 102
r0(config-fr-dlci)#end
r0#
*Mar  1 00:12:55.679: %SYS-5-CONFIG_I: Configured from console by console
% Unknown command or computer name, or unable to find computer address
r0#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
r0(config)#router rip
r0(config-router)#ve 2
r0(config-router)#net 172.16.1.0
r0(config-router)#net  1.1.1 .0
r0(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O -  OSPF IA  - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
      1.0.0 .0/24 is subnetted, 1 subnets
C        1.1.1 .0 is directly connected, Loopback1
R     2.0.0 .0/8 [120/1] via 172.16.1.2, 00:00:12, Serial0/0.1
R     3.0.0 .0/8 [120/1] via 172.16.1.3, 00:00:13, Serial0/0.2
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0.1
                   is directly connected, Serial0/0.2
r0(config-router)#do ping  3.3.3 .3
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to  3.3.3 .3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =  8/28/60  ms
r0(config-router)#do ping  2.2.2 .2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to  2.2.2 .2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/60 ms
r0(config-router)#
 
 
 
r1(config)#int loo 1
r1(config-if)#ip
*Mar  1 00:06:14.839: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
r1(config-if)#ip add  2.2.2 .2 255.255.255.0
r1(config-if)#exit
r1(config)#int s0/0
r1(config-if)#no ip add
r1(config-if)#enc fra
r1(config-if)#no sh
r1(config-if)#exit
r1(config)#i
*Mar  1 00:06:41.163: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
r1(config)#int s0/0.1 point-t
*Mar  1 00:06:52.167: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r1(config)#int s0/0.1 point-t
r1(config-subif)#no frame inver
r1(config-subif)#ip add 172.16.1.2 255.255.255.0
r1(config-subif)#frame interface-dlci 201
r1(config-fr-dlci)#no sh
r1(config-subif)#exit
r1(config)#int s0/0
r1(config-if)#no frame inve
r1(config-if)#exit
r1(config)#router rip
r1(config-router)#ve 2
r1(config-router)#net 172.16.1.0
r1(config-router)#net  2.2.2 .0
r1(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O -  OSPF IA  - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
R     1.0.0 .0/8 [120/1] via 172.16.1.1, 00:00:19, Serial0/0.1
      2.0.0 .0/24 is subnetted, 1 subnets
C        2.2.2 .0 is directly connected, Loopback1
R     3.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:19, Serial0/0.1
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0.1
r1(config-router)#
 
 
r2(config)#int loo 1
r2(config-if)#ip add
*Mar  1 00:05:08.743: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
r2(config-if)#ip add  3.3.3 .3
*Mar  1 00:05:13.935: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r2(config-if)#ip add  3.3.3 .3 255.255.255.0
r2(config-if)#exit
r2(config)#int s0/0
r2(config-if)#no frame inver
r2(config-if)#exit
r2(config)#int s0/0.2 point
r2(config-subif)#ip add 172.16.1.3 255.255.255.0
r2(config-subif)#frame-relay inter 302
r2(config-fr-dlci)#no sh
r2(config-subif)#end
r2#conf
*Mar  1 00:13:45.723: %SYS-5-CONFIG_I: Configured from console by console
r2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#router rip
r2(config-router)#ve 2
r2(config-router)#net 172.16.1.0
r2(config-router)#net  3.3.3 .0
r2(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O -  OSPF IA  - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
R     1.0.0 .0/8 [120/1] via 172.16.1.4, 00:00:24, Serial0/0.2
R     2.0.0 .0/8 [120/2] via 172.16.1.4, 00:00:24, Serial0/0.2
      3.0.0 .0/24 is subnetted, 1 subnets
C        3.3.3 .0 is directly connected, Loopback1
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0.2
r2(config-router)#


本文转自gauyanm 51CTO博客,原文链接:http://blog.51cto.com/gauyanm/238727,如需转载请自行联系原作者
相关文章
|
数据安全/隐私保护 网络架构