无编号地址配置
无编号IP地址做×××的时候用的比较多、
在一个点到点串行线路接口上借用同一路由器上的另一个以太口上的主类地址,做自己的IP地址,可以节省IP地址。
在配置无编号地址的时候要注意两条原则:
1、被借用的接口必须都是串行接口,并且是被一条点到点链路连接。
2、被借出的IP地址必须是个主类的IP地址、尽量不要做子网拆分。
路由器0上的F0/0配置:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterA
RouterA(config)#interface fastethernet 0/0
RouterA(config-if)#ip address 10.1.1.1 255.255.255.0 //给F0/0口配置IP
RouterA(config-if)#no shutdown //**接口
RouterA(config-if)#end
RouterA#show ip interface brief
S2/0接口上的配置:
RouterA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#interface s2/0
RouterA(config-if)#ip unnmbered f0/0 //与F0/0接口共用一个IP地址、
RouterA(config-if)#no shutdown
转载于:https://blog.51cto.com/ydministrator/419065