配置route0
Router#sh controllers s0/0/0
Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DCE V.35, clock rate 64000
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
General [GSMR]=0x2:0x00000000, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x00
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
Interrupt Registers:
Config [CICR]=0x00367F80, Pending [CIPR]=0x0000C000
Mask [CIMR]=0x00200000, In-srv [CISR]=0x00000000
Command register [CR]=0x580
Port A [PADIR]=0x1030, [PAPAR]=0xFFFF
[PAODR]=0x0010, [PADAT]=0xCBFF
Port B [PBDIR]=0x09C0F, [PBPAR]=0x0800E
[PBODR]=0x00000, [PBDAT]=0x3FFFD
Port C [PCDIR]=0x00C, [PCPAR]=0x200
[PCSO]=0xC20, [PCDAT]=0xDF2, [PCINT]=0x00F
Receive Ring
rmd(68012830): status 9000 length 60C address 3B6DAC4
rmd(68012838): status B000 length 60C address 3B6D444
Transmit Ring
Router(config)#line con 0
Router(config-line)#exec- 0 0
Router(config-line)#exit
Router(config)#line conso 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#no ip domain-
Router(config)#no ip domain-l
Router(config)#no ip domain-lookup
Router(config)#clockra
Router(config)#int s0/0/0
Router(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#clock
Router(config-if)#clock ra
Router(config-if)#clock rate 64000
Router(config-if)#ip add 192.168.21.1 255.255.255.0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
Router(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Router#ping 192.168.32.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.32.0 192.168.21.2
% Incomplete command.
Router(config)#ip route 192.168.32.0 255.255.255.0 192.168.21.2
配置route1
Router#sh controllers s0/1
Interface Serial0/1
Hardware is PowerQUICC MPC860
DCE V.35, clock rate 64000
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
General [GSMR]=0x2:0x00000000, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x00
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
Interrupt Registers:
Config [CICR]=0x00367F80, Pending [CIPR]=0x0000C000
Mask [CIMR]=0x00200000, In-srv [CISR]=0x00000000
Command register [CR]=0x580
Port A [PADIR]=0x1030, [PAPAR]=0xFFFF
[PAODR]=0x0010, [PADAT]=0xCBFF
Port B [PBDIR]=0x09C0F, [PBPAR]=0x0800E
[PBODR]=0x00000, [PBDAT]=0x3FFFD
Port C [PCDIR]=0x00C, [PCPAR]=0x200
[PCSO]=0xC20, [PCDAT]=0xDF2, [PCINT]=0x00F
Receive Ring
rmd(68012830): status 9000 length 60C address 3B6DAC4
rmd(68012838): status B000 length 60C address 3B6D444
Transmit Ring
Router(config)#no ip domain-l
Router(config)#line con 0
Router(config-line)#exec-t 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#int s0/0
Router(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router(config-if)#
Router(config-if)#
Router(config-if)#ip acc
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router(config-if)#ip acc 192.168.21.2 255.255.255.0
^
% Invalid input detected at '^' marker.
Router(config-if)#ip add 192.168.21.2 255.255.255.0
Router(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Router#sh ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual administratively down down
Serial0/0 192.168.21.2 YES manual up up
Serial0/1 unassigned YES manual administratively down down
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/1
%Invalid interface type and number
Router(config)#no sh
^
% Invalid input detected at '^' marker.
Router(config)#int s0/1
Router(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
Router(config-if)#cloc
Router(config-if)#clock ra
Router(config-if)#clock rate 64000
Router(config-if)#ip add 192.168.32.2 255.255.255.0
Router(config-if)#exit
Router(config)#exit
配置route2
Router(config)#no ip domain-l
Router(config)#line cons 0
Router(config-line)#exec-t 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#int s0/1/0
Router(config-if)#ip add 192.168.32.3 255.255.255.0
Router(config)#ip route 192.168.21.0 255.255.255.0 192.168.32.2
测试通信
Router1#ping 192.168.32.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/31 ms