拓扑
R1
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#ip address 13.0.1.2 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
*Mar 1 00:01:44.059: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:01:45.059: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#int f1/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
*Mar 1 00:02:43.835: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Mar 1 00:02:44.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
R1(config-if)#end
R1#
*Mar 1 00:02:52.999: %SYS-5-CONFIG_I: Configured from console by console
//测试
R1#telnet 15.0.1.2
Trying 15.0.1.2 ...
% Destination unreachable; gateway or host down
//
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 15.0.1.0 255.255.255.0 13.0.1.1
R1(config)#ip route 14.0.1.0 255.255.255.0 13.0.1.1
R1(config)#ip route 16.0.1.0 255.255.255.0 13.0.1.1
R1(config)#end
R1#telnet 15.0