PPP背对背连接

  • 摘要:本文为点对点协议(PPP)背对背连接提供示例配置。 您能使用它验证您的连接和硬件适当地运作。
  • 标签:路由器配置

硬件和软件版本
  • 此配置是 可适用的对所有Cisco IOS软件版本。
  • DCE边用广域网DCE电缆连接。
  • DTE边用广域网DTE电缆连接。
欲知关于广域网DCE/DTE电缆的更多信息参见 串行电缆 说明文件。
网络图
本文根据以下配置:
文本
在此配置, Prasit作为DCE和Spicey是DTE。
配置
Prasit
interface Serial0
ip address 5.0.2.1 255.255.255.0
encapsulation ppp
clockrate 64000
no cdp enable

Spicey
interface Serial1
ip address 5.0.2.2 255.255.255.0
encapsulation ppp
no cdp enable
show命令
使用以下show命令测试您的网络适当地运行:
 
show controllers
ping
show interfaces serial x
如下所示的输出是输入这些命令的结果在我们在此示 例配置使用的设备。
我们能使用 show controllers命令表示, Prasit是DCE和Spicey是DTE。 此命令提供您信息物理层是否 工作并且什么类型的电缆连接。
 
prasit#show controllers serial 0
HD unit 0, idb = 0x1D3A2C, driver structure at 0x1DAFE8
buffer size 1524 HD unit 0, V.35 DCE cable, clockrate 64000
spicey#show controllers serial 1
HD unit 1, idb = 0x153E94, driver structure at 0x15A1F8
buffer size 1524 HD unit 1, V.35 DTE cable
Prasit
prasit#ping 5.0.2.2           
Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 5.0.2.2, timeout is 2 seconds:
!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
prasit#show interfaces serial 0Serial0 is up, line protocol is up  
Hardware is HD64570  Internet address is 5.0.2.1/24  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,     
reliability 255/255, txload 1/255, rxload 1/255  Encapsulation PPP,
loopback not set  Keepalive set (10 sec)  LCP Open 
Open: IPCP  Last input 00:00:05, output 00:00:05, output hang never 
Last clearing of "show interface" counters 00:09:58 
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 
Queueing strategy: weighted fair 
Output queue: 0/1000/64/0 (size/max total/threshold/drops)     
Conversations  0/1/256 (active/max active/max total)    
Reserved Conversations 0/0 (allocated/max allocated)    
Available Bandwidth 1158 kilobits/sec 
5 minute input rate 0 bits/sec, 1 packets/sec  5 minute output rate 0 bits/sec, 0 packets/sec    
122 packets input, 2824 bytes, 0 no buffer    
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles    
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort    
132 packets output, 2964 bytes, 0 underruns     0 output errors, 0 collisions, 2 interface resets    
0 output buffer failures, 0 output buffers swapped out    
6 carrier transitions     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
prasit#
Spicey
spicey#ping 5.0.2.1       
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
spicey#show interfaces serial 1
Serial1 is up, line protocol is up
Hardware is HD64570
Internet address is 5.0.2.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
Keepalive set (10 sec)
LCP Open
Open: IPCP
Last input 00:00:01, output 00:00:01, output hang never
Last clearing of "show interface" counters 00:09:27
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations  0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
130 packets input, 3392 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
129 packets output, 3378 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=up  RTS=up  CTS=up
spicey#

(责任编辑:城尘 68476636-8003)


华为路由器配置
最优性价比组建无线网络
网络应用性能控管最佳实践
思科全球CEO钱伯斯第七次访华
运营商封堵ADSL共享 中小企业如何应对
 
 验证码: (点击刷新验证码)   匿名发表
  • 野蛮生长

  • 作者:冯仑著
  • “地产界的思想家”冯仑纵横生意江湖20年来,第一次系统梳理出书。  三十年来中国民营企业从前公司时代发展到公司时代,21..
Copyright©2005-2008 51CTO.COM 版权所有