【正文】
ine protocol on Interface Serial2/0, changed state to upR1(configif)encapsulation hdlcR1(configif)ip address R1(configif)no shutdownR1(configif)exitR1(config)end%SYS5CONFIG_I: Configured from console by consoleR1show ip int bInterface IPAddress OK? Method Status Protocol FastEthernet0/0 YES manual up up FastEthernet1/0 YES manual up up Serial2/0 YES manual up up Serial3/0 unassigned YES manual administratively down down FastEthernet4/0 unassigned YES manual administratively down down FastEthernet5/0 unassigned YES manual administratively down down路由器R2的基本配置命令:R2(config)line console 0R2(configline)no loginR2(configline)exitR2(config)line vty 0 4R2(configline)no loginR2(configline)exitR2(config)int f 1/0R2(configif)ip address R2(configif)no shutdown%LINK5CHANGED: Interface FastEthernet1/0, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upR2(configif)exitR2(config)int s 2/0R2(configif)encapsulation hdlcR2(configif)ip address R2(configif)no shutdownR2(configif)end%SYS5CONFIG_I: Configured from console by consoleR2show ip int briefInterface IPAddress OK? Method Status Protocol FastEthernet0/0 unassigned YES manual administratively down down FastEthernet1/0 YES manual up up Serial2/0 YES manual up up Serial3/0 unassigned YES manual administratively down down FastEthernet4/0 unassigned YES manual administratively down down FastEthernet5/0 unassigned YES manual administratively down downR1ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), roundtrip min/avg/max = 31/34/47 msR2ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), roundtrip min/avg/max = 31/31/32 ms(1)靜態(tài)路由配置:(用靜態(tài)路由實(shí)現(xiàn))SW2(config)ip route R1(config)ip route R1(config)ip route R1(config)ip route R1(config)end%SYS5CONFIG_I: Configured from console by consoleR1show ip routeCodes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, ia ISIS inter area * candidate default, U peruser static route, o ODR P periodic downloaded static routeGateway of last resort is not set , 1 subnetsC is directly connected, Ser