简介
本文档介绍新的CLI,它跟踪拨号器接口上点对点协议(PPP)会话的存在。
问题
拨号器接口在数字用户线路(DSL)世界中广泛使用,在不同类型的部署中,如以太网点对点协议(PPPoE)、异步传输模式点对点协议(PPPoA)等。拨号器接口始终处于打开状态,而不管其顶部的PPP会话处于打开或关闭状态。此行为的一个已知问题是,在您有多个传出连接的情况下,它会在路由中造成黑洞,除非您使用一些其他功能(如互联网协议服务级别协议(IP SLA)跟踪)来检查拨号器接口的可达性。
解决方案
最新IOS版本中引入了新的CLI dialer down-with-vInterface,当PPP会话关闭时,该CLI拨号器接口将关闭。
来自DSL路由器的配置片段:
interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
ppp chap hostname cisco@cisco.com
ppp chap password 0 cisco
即使PPPoE会话关闭,拨号器接口也处于打开状态。
Router#show pppoe session
1 client session
Uniq ID PPPoE RemMAC Port VT VA State
SID LocMAC VA-st Type
N/A 58 00c1.64d5.41d1 Gi0/1 Di1 N/A PADISNT
0006.f657.67b1
Router#show interface dialer1
Dialer1 is up, line protocol is up (spoofing)
Hardware is Unknown
Internet address will be negotiated using IPCP
MTU 1500 bytes, BW 56 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Closed, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 1 seconds on reset
Last input never, output never, output hang never
Last clearing of "show interface" counters 00:49:48
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
538 packets output, 7524 bytes
CLIENT(config-if)
您可以在拨号器接口配置下添加新的CLI,如下所示:
Router(config)#int dialer1
Router(config-if)# dialer down-with-vInterface
在输入dialer down-with-vInterface CLI后,当PPP会话处于down状态时,dialer interface将变为down状态,如示例所示:
Router#show interface dialer1
Dialer1 is down, line protocol is down (spoofing)
Hardware is Unknown
Internet address will be negotiated using IPCP
MTU 1500 bytes, BW 56 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Closed, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 1 seconds on reset
Last input never, output never, output hang never
Last clearing of "show interface" counters 00:50:36
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
538 packets output, 7524 bytes
这有助于避免使用拨号器接口时路由故障切换所需的额外配置(如IP SLA、跟踪等)。
相关信息