在帧中继上运行rip协议(3)—点对点子接口

本文介绍如何在帧中继网络中配置RIP路由协议,实现不同子网间的互通。重点展示了路由器R1和R4的具体配置步骤,并验证了配置的有效性。

1、拓扑图跟在帧中继上运行rip协议(1)中的一样,在此略过

2、各路由器的基本配置跟在帧中继上运行rip协议(1)中的一样,在此略过

3、对R1进行配置,其他路由器的配置保持不变

R1(config)#default int s1/0  //还原s1/0的默认配置
Building configuration...

Interface Serial1/0 set to default configuration
R1(config)#
03:19:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R1(config)#
03:19:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R1(config)#int s1/0
R1(config-if)#encapsulation frame-relay ietf   //切记!一定要在物理接口上封装
R1(config-if)#no ip addr
R1(config-if)#frame-relay lmi-type ansi
R1(config-if)#no frame-relay inverse-arp   //取消逆向ARP,通过 frame-relay map 设置

 

R1(config)#int s1/0.3 point-to-point    //是点对点
R1(config-subif)#ip addr 192.168.123.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 103  //不用frame-relay map命令,而是通过此命令与dlci关联
R1(config-fr-dlci)#exit
R1(config-subif)#exit
R1(config)#int s1/0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int s1/0.4 point-to-point
R1(config-subif)#ip addr 192.168.124.1 255.255.255.0  //每个接口在不同网段,真正达到物理接口的利用
R1(config-subif)#frame-relay interface-dlci 104
R1(config-fr-dlci)#exit
R1(config-subif)#exit
R1(config)#router rip
R1(config-router)#network 192.168.124.0   //宣和新添加的路由
R1(config-router)#^Z 
R1#
03:24:55: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip int s1/0.3
Serial1/0.3 is up, line protocol is up
  Internet address is 192.168.123.1/24
  Broadcast address is 255.255.255.255
  Address determined by setup command
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Multicast reserved groups joined: 224.0.0.9
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Security level is default
  Split horizon is enabled  //此模式下水平分割默认开启,因为两个子接口在不同网段,开启或关闭都不会影响路由间的更新
  ICMP redirects are always sent
  ICMP unreachables are always sent
  ICMP mask replies are never sent
  IP fast switching is enabled
  IP fast switching on the same interface is enabled
  IP Flow switching is disabled
  IP CEF switching is disabled
  IP Fast switching turbo vector
  IP multicast fast switching is enabled
  IP multicast distributed fast switching is disabled
         
R1#sh ip int s1/0.4
Serial1/0.4 is up, line protocol is up
  Internet address is 192.168.124.1/24
  Broadcast address is 255.255.255.255
  Address determined by setup command
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Multicast reserved groups joined: 224.0.0.9
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Security level is default
  Split horizon is enabled
  ICMP redirects are always sent
  ICMP unreachables are always sent
  ICMP mask replies are never sent
  IP fast switching is enabled
  IP fast switching on the same interface is enabled
  IP Flow switching is disabled
  IP CEF switching is disabled
  IP Fast switching turbo vector
  IP multicast fast switching is enabled
  IP multicast distributed fast switching is disabled

 

 

R4(config)#default int s1/0  //还原s1/0的默认配置
Building configuration...

Interface Serial1/0 set to default configuration
R4(config)#
03:19:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R4(config)#
03:19:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#int s1/
03:14:31: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R4(config)#int s1/0

R4(config-if)#ip addr 192.168.124.4 255.255.255.0  //与子接口s1/0.4在同一网段
R4(config-if)#encapsulation frame-relay ietf
R4(config-if)#
03:15:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R4(config-if)#no frame-relay inverse-arp
R4(config-if)#frame-relay lmi-type ansi
R4(config-if)#frame-relay map ip 192.168.124.1 401 broadcast
R4(config-if)#^Z
R4#
03:17:00: %SYS-5-CONFIG_I: Configured from console by console
R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#router rip
R4(config-router)#network 192.168.124.0   //宣和新添加的路由
R4(config-router)#end

R4#sh
03:26:52: %SYS-5-CONFIG_I: Configured from console by console
R4#sh fr ma
Serial1/0 (up): ip 192.168.124.1 dlci 401(0x191,0x6410), static,
              broadcast,
              IETF, status defined, active
R4#

 

 

R3#sh 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
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       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

C    192.168.123.0/24 is directly connected, Serial1/0
R    1.0.0.0/8 [120/1] via 192.168.123.1, 00:00:00, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
R    4.0.0.0/8 [120/2] via 192.168.123.1, 00:00:00, Serial1/0
R    192.168.124.0/24 [120/1] via 192.168.123.1, 00:00:00, Serial1/0  //学到了新添加的路由了

 

4、各个子网间相互联通了


R3#ping 192.168.123.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.123.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/48 ms
R3#sh fr ma
Serial1/0 (up): ip 192.168.123.34 dlci 301(0x12D,0x48D0), static,
              IETF, status defined, active
Serial1/0 (up): ip 192.168.123.1 dlci 301(0x12D,0x48D0), static,
              broadcast,
              IETF, status defined, active
R3#ping 192.168.124.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.124.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/17/28 ms
R3#ping 192.168.124.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.124.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/47/64 ms
R3#ping 192.168.124.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.124.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/48 ms
R3#ping 4.4.4.4     

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/51/124 ms

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值