1 RIP协议的基本配置( 二 )


 reliability 255/255, txioad 1/255, rxioad 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:01:44, output 00:01:46, output hang never
Last clearing of "show interface" counters 00:00:02
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
 0 packets input, 0 bytes, 0 no buffer
 Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
 0 input errors, 0 CRC,0 frame, 0 overrun, 0 ignored, Ollort
 0 packets output, 0 bytes, 0 underruns
 0 output errors, 0 collisions, 0 interface resets
 0 output buffer failures, 0 output buffers swapped out
 0 carrier transitions
 DCD=up DSR=up DTR=down RTS=down CTSsup
第2段:配置R2网络接口
Term_Server>2
[Resuming connection 2 to R2 ...]
R2#sh contr ser 0
HD unit 0, idb = Oxl4DF9C, driver structure at 0x154310
buffer size 1524 HD unit 0, V.35 DTE cable
cpb = 0x1, eda = 0x4878, cda == Ox488C
RX ring with 16 entries at 0x4014800
00 bd@ptr=0x4800 pak=Oxl557E8 ds=Ox40187C4 status=80 pak_size=22
...(类似内容,省略多行)
0 missed datagrams, 0 overruns
0 bad datagram encapsulations, 0 memory errors
0 transmitter underruns
0 residual bit errors
R2#sh ser 1
HD unit 1, idb == 0x159014, driver structure at 0x15F388
buffer size 1524 HD unit 1,
cpb = 0x2, eda = 0x3140, cda = 0x3000
RX ring with 16 entries at 0x4023000
00 bd_ptr==0x3000 pak=Oxl62B4C ds=Ox402CEOC status=80 pak_size=0
...(类似内容,省略多行)
0 missed datagrams, 0 overruns
0 bad datagram encapsulations, 0 memory errors
0 transmitter underruns
0 residual bit errors
R2#conft
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#iso logg con
R2(config)#int e0
R2(config-if)#ip addr 172.16.2.2
R2(config-if)#eo keepalive
R2(config-if)#no sh
R2(config-if)#lnt sO
R2(config-if)#ip addr 172.16.12.2
R2(config-if)#no sh
R1(config-if)#bandwidth 500
R2(config-if)#int s1
R2(config-if)#ip addr 172.16.23@2
R2(config-if)#clockr 64000
R2(config-if)#no sh
R1(config-if)#baiidwldth 64
R2(config-if)#end
R2#pmg 172.16.12.1
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 172.16.12.1,timeout is 2 seconds:
!!!!!
R2#
第3段:配置R3网络接口
Term_Server>3
[Resuming connection 3 to R3 ... ]
R3#conft
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#no logg con
R3(config)#int e0
R3(config-if)#ip addr 172.16.3.3 255.255.255.0
R3(config-if)#no keepalive
R3(config-if)#no sh
R3(config-if)#int s0
R3(config-if)#ip addr 172.16.13.3 255.255.255.0
R3(config-if)#no sh
R1(config-if)#bandwidth 500
R3(config-if)#int si
R3(config-if)#ip addr 172.16.23.3 255.255.255.0
R1(config-if)#bandwidth 64
R3(config-if)#end
R3#ping 172.16.13.1
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 172.16.13.1,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),
R3#ping 172.16.23.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.23,2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max=32/121/480 ms
R3#
(1)为了查明串行接口所连接电缆的类型,从而正确配置串行接口,使用show controllersserial命令查看相应的控制器(Controller) 。
从命令结果的第2行我们看到,接口S0和S1所连接的电缆为DCE类型 。
(2)在全局配置模式下,使用no logging console配置命令,可以防止大量的端口状态变化信息和报警信息对配置过程的影响 。

推荐阅读