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

简介:
实验33:帧中继点到多点子接口
1.  实验目的
点到多点子接口的配置
2.  实验拓扑
3.  实验步骤
注:no interface s0/0/0.1”命令来删除子接口,然而需要重新启动路由器,该子接口才真正被删除。
 
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
*Mar  1 00:15:12.631: %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)#int s0/0
r0(config-if)#no ip add主接口下不需要IP 地址
 
r0(config-if)#enc fra
r0(config-if)#no frame inverse
r0(config-if)#no sh
*Mar  1 00:04:55.051: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar  1 00:05:06.055: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r0(config)#int s0/0.1 multipoint创建点到多点子接口
 
r0(config-subif)#ip add 172.16.1.1 255.255.255.0
r0(config-subif)#frame map  ip 172.16.1.2 101 broadcast
r0(config-subif)#frame map  ip 172.16.1.3 102 broadcast
r0(config-subif)#exit
r0(config-if)#exit
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)#exit
r0(config)#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/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1 .0/24 is directly connected, Loopback1
R        1.0.0 .0/8 [120/2] via 172.16.1.3, 00:00:14, Serial0/0.1
                  [120/2] via 172.16.1.2, 00:00:05, Serial0/0.1
R     2.0.0 .0/8 [120/1] via 172.16.1.2, 00:00:05, Serial0/0.1
R     3.0.0 .0/8 [120/1] via 172.16.1.3, 00:00:14, Serial0/0.1
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0.1
r0(config)#int s0/0.1 mul
r0(config-subif)#no ip split 关掉水平分割
r0(config-subif)#no sh
r0(config-subif)#exit
r0(config)#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/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1 .0/24 is directly connected, Loopback1
R        1.0.0 .0/8 [120/2] via 172.16.1.3, 00:00:27, Serial0/0.1
                  [120/2] via 172.16.1.2, 00:00:09, Serial0/0.1
R     2.0.0 .0/8 [120/1] via 172.16.1.2, 00:00:09, Serial0/0.1
R     3.0.0 .0/8 [120/1] via 172.16.1.3, 00:00:27, Serial0/0.1
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0.1
//R0 可以获得R1 R2 的环回口路由
 
r0(config)#int s0/0
r0(config-if)#no ip split
r0(config-if)#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/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1 .0/24 is directly connected, Loopback1
R        1.0.0 .0/8 [120/2] via 172.16.1.3, 00:00:19, Serial0/0.1
                  [120/2] via 172.16.1.2, 00:00:05, Serial0/0.1
R     2.0.0 .0/8 [120/1] via 172.16.1.2, 00:00:05, Serial0/0.1
R     3.0.0 .0/8 [120/1] via 172.16.1.3, 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)#int loo 1
*Mar  1 00:14:15.795: %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 frame-relay inver
r1(config-if)#no frame-relay inverse-arp 关闭自动映射
r1(config-if)#no sh
*Mar  1 00:04:08.047: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar  1 00:04:19.051: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r1(config-if)#ip add 172.16.1.2 255.255.255.0
r1(config-if)#frame map ip 172.16.1.1 302 broadcast
r1(config-if)#no frame map ip 172.16.1.1 302 broadcast
r1(config-if)#frame map ip 172.16.1.1 201  broadcast 
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:18, Serial0/0
      2.0.0 .0/24 is subnetted, 1 subnets
C        2.2.2 .0 is directly connected, Loopback1
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0
//R1 不可以获得R2的环回口路由,可以用r0(config-if)#no ip split来解决。
 
 
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:21, Serial0/0
      2.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
C        2.2.2 .0/24 is directly connected, Loopback1
R        2.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:21, Serial0/0
R     3.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:21, Serial0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0
//R1 可以获得R0 R2的环回口路由
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:14, Serial0/0
      2.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
C        2.2.2 .0/24 is directly connected, Loopback1
R        2.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:14, Serial0/0
R     3.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:14, Serial0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0
r1(config-router)#
 
 
r2(config)#int loo 1
r2(config-if)#ip add  3.3.3
*Mar  1 00:14:47.843: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, 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)#enc fra
r2(config-if)#no frame-relay inverse-arp
r2(config-if)#no sh
r2(config-if)#
*Mar  1 00:03:12.507: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
r2(config-if)#
*Mar  1 00:03:23.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r2(config-if)#ip add 172.16.1.3 255.255.255.0
r2(config-if)#no sh
r2(config-if)#frame map ip 172.16.1.1 302 broadcast
r2(config-if)#exit
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)#exit
r2(config)#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:03, Serial0/0
      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
r2(config)#
r2(config)#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:13, Serial0/0
R     2.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:13, Serial0/0
      3.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
C        3.3.3 .0/24 is directly connected, Loopback1
R        3.0.0 .0/8 [120/2] via 172.16.1.1, 00:00:13, Serial0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Serial0/0
r2(config)#
       


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