RIP路由器配置
路由信息协议(RIP) 是内部网关协议IGP中最先得到广泛使用的协议【1058[1] 】。RIP是一种分布式的基于距离矢量的路由选择协议,是因特网的标准协议,其最大优点就是实现简单,开销较小。
操作方法
- 01
实验环境 路由器两台,console电缆1根,pc机2台,网线2根,串口电缆1根。 实验拓扑图:
- 02
1、 根据拓扑结构的要求,正确配置路由器R1的以太网接口和RIP路由; Router> Router>enable Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip address 10.10.10.1 255.255.255.0 Router(config-if)#no shut Router(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s0/0/0 Router(config-if)#ip address 172.16.0.1 255.255.255.0 Router(config-if)#clock rate 64000 This command applies only to DCE interfaces Router(config-if)#no shut Router(config-if)#exit Router(config)#router rip Router(config-router)#network 10.10.10.0 Router(config-router)#network 172.16.0.0 Router(config-router)#end
- 03
2、 配置路由器R2的以太网接口和RIP路由; Router>enable Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip address 10.10.20.1 255.255.255.0 Router(config-if)#no shut Router(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#int s0/0/0 Router(config-if)#end Router# %SYS-5-CONFIG_I: Configured from console by console Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip address 20.20.20.1 255.255.255.0 Router(config-if)#no shut Router(config-if)#int s0/0/0 Router(config-if)#ip address 172.16.0.2 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shut Router(config-if)# %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up Router(config-if)#ro %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up ^ % Invalid input detected at '^' marker. Router(config-if)#router rip Router(config-router)#network 20.20.20.0 Router(config-router)#network 172.16.0.0 Router(config-router)#end Router# %SYS-5-CONFIG_I: Configured from console by console