ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2024/11/10 20:40:38ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£
Router>enable
Router#configure terminal Router(config)#hostname R1
R1(config)#INterface fastEthernet 1/0 R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 192.168.3.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#end
R1#configure terminal
R1(config)#interface serial 2/0 R1(config-if)#no shutdown R1(config-if)#end R1#show ip rou
C 192.168.1.0/24 is directly connected, FastEthernet1/0 C 192.168.3.0/24 is directly connected, Serial2/0
R1>enable
R1#configure terminal
R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2 R1(config)#end R1#show ip rou
C 192.168.1.0/24 is directly connected, FastEthernet1/0 S 192.168.2.0/24 [1/0] via 192.168.3.2
C 192.168.3.0/24 is directly connected, Serial2/0
Router>enable
Router#configure terminal Router(config)#hostname R2
R2(config)#interface fastEthernet 1/0 R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.2.1 255.255.255.0 R2(config-if)#exit
R2(config)#interface serial 2/0
R2(config-if)#ip address 192.168.3.2 255.255.255.0 R2(config-if)#end
R2#configure terminal
R2(config)#interface serial 2/0 R2(config-if)#no shutdown R2(config-if)exit R2(config-if)end R2#show ip rou
C 192.168.2.0/24 is directly connected, FastEthernet1/0 C 192.168.3.0/24 is directly connected, Serial2/0
R2#enable
R2#configure terminal
R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1 R2(config)#end R2#show ip rou
S 192.168.1.0/24 [1/0] via 192.168.3.1
C 192.168.2.0/24 is directly connected, FastEthernet1/0 C 192.168.3.0/24 is directly connected, Serial2/0