还是恨上次一样,信息都在图中,上面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
检查的结果:
好了,大功告成,该睡觉了,明天在补后面的.....