RIP动态路由配置

还是恨上次一样,信息都在图中,上面R1-R6全部的接口是4T的,

第一步:设置ip

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int s0/0
R1(config-if)#no sh
R1(config-if)#ip add
*Mar  1 00:00:39.831: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
R1(config-if)#ip add
*Mar  1 00:00:40.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R1(config-if)#ip add 16.24.2.1 255.255.255.0
R1(config-if)#int s0/1
R1(config-if)#no sh
R1(config-if)#ip add 16.24
*Mar  1 00:00:57.539: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up
R1(config-if)#ip add 16.24.1.1
*Mar  1 00:00:58.543: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
R1(config-if)#ip add 16.24.1.1 255.255.255.0
R1(config-if)#end

其他的按照上面设置ip(到了这里是相邻的能ping通)

第二步:

加上rip(R1举例子):

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router rip
R1(config-router)#net 16.24.2.0 //这里只需要相邻的网段,A类地址的话也是后面改为0(改1个就行了)
R1(config-router)#net 16.24.1.0
R1(config-router)#end

在写个R2的:

R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router rip
R2(config-router)#net 16.24.2.0  //只是相邻的网段
R2(config-router)#net 16.24.3.0
R2(config-router)#net 16.24.5.0
R2(config-router)#end

检查的结果:

好了,大功告成,该睡觉了,明天在补后面的.....

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值