首先对router0进行配置: Router>en Router#config Configuring from terminal, memory, or network [terminal]? t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#config ter %Invalid hex value Router(config)#inter s1/0 Router(config-if)#ip add 192.168.7.254 255.255.255.0 Router(config-if)#no shutd
%LINK-5-CHANGED: Interface Serial1/0, changed state to down Router(config-if)# Router(config-if)#exit Router(config)#interface Serial1/0 Router(config-if)#clock rate 64000 Router(config-if)#inter s1/1 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shutd
%LINK-5-CHANGED: Interface Serial1/1, changed state to down Router(config-if)#inter f0/0 Router(config-if)#ip add 192.168.5.254 255.255.255.0 Router(config-if)#no shutd
%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)#exit Router(config)#router rip Router(config-router)#network 192.168.5.0 Router(config-router)#network 192.168.7.0 Router(config-router)#network 192.168.1.0
对router1进行配置:
Router>en Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#inter s1/0 Router(config-if)#ip add 192.168.1.2 255.255.255.0 Router(config-if)#no shutd
%LINK-5-CHANGED: Interface Serial1/0, changed state to up Router(config-if)#exit Router(config)#inter s1/0 Router(config-if)#clock rate 64000 Router(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up Router(config-if)#exit Router(config)#inter f0/0 Router(config-if)#ip add 172.168.1.1 255.255.255.0 Router(config-if)#no shutd
%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)#exit Router(config)#router rip Router(config-router)#network 192.168.1.0 Router(config-router)#network 172.168.1.0 Router(config-router)# router2进行配置: Router>en Router#config ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#inter s1/0 Router(config-if)#ip add 192.168.7.21 255.255.255.0 Router(config-if)#no shutd
%LINK-5-CHANGED: Interface Serial1/0, changed state to up Router(config-if)#in %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upt ^ % Invalid input detected at '^' marker.
%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)#exit Router(config)#router rip Router(config-router)#network 192.168.7.0 Router(config-router)#network 192.168.25.0 Router(config-router)# 主机pc0ping主机pc1和pc2.