第一個(gè)路由:
Router>en
Router#conf t
Enter configuration commands, one per line.? End with CNTL/Z.
Router(config)#int f 0/0
Router(config-if)#no shut
%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)#ip add 172.16.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#int f 0/1
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ip add 172.16.2.1 255.255.255.0
Router(config-if)#exit
Router(config)#int e 1/0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#v 2
Router(config-router)#ne 172.16.0.0
Router(config-router)ne192.168.1.0
Router(config-router)#no au
第二個(gè)路由:
Router>en
Router#conf t
Enter configuration commands, one per line.? End with CNTL/Z.
Router(config)#int f 0/0
Router(config-if)#no shut
%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)#ip add 10.1.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#int f 0/1
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ip add 10.2.2.1 255.255.255.0
Router(config-if)#exit
Router(config)#int e 1/0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up
Router(config-if)#ip add 192.168.1.2 255.255.255.0
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#v 2
Router(config-router)#ne 10.0.0.0
Router(config-router)#ne 192.168.1.0
Router(config-router)#no au