dialer persistent和diale idle time out 0作用都能实现不需要感兴趣流使接口永远UP,但是cisco官方文档有这样一段话我按原文贴: cisco原文: Dialer Persistent
The Dialer Persistent feature allows the connection settings in the dialer profile to be configured as persistent, that is, the connection is not torn down until the shutdown interface command is entered on the dialer interface.
The dialer idle-timeout interface configuration command cannot be configured when the dialer persistent command is configured
注意看颜色加深的那一句话,意思是如果你配了Dialer Persistent ,那么diale idle time out 0是不能配的,但是其实你如果去show run看配置话会发现,只要你接口敲了Dialer Persistent,那么diale idle time out 0会自动的配上去,并且删除不了! 例如:
R2#sh run interface dialer 1 Building configuration...
Current configuration : 185 bytes !
interface Dialer1 mtu 1492
ip address negotiated encapsulation pppm ip tcp adjust-mss 1452 dialer pool 1
dialer idle-timeout 0 dialer persistent
ppp chap password 0 cisco
R2(config)#int dialer 1
R2(config-if)#no dialer idle-timeout 0 %Remove dialer persistent command first
出于研究目的,我再提供一个在纯IOS 12.3上的一个PPPOE配法,大家可以和上面12.4的命令做个对比,由于目前有很多机构的PPPOE解法,“所谓的满分解法”都是混杂了12.3和12.4的解法一起的,但其实很多命令都是垃圾配置(针对12.3 IOS的)根本不起效,只不过不影响结果而已。大家如果有拿到的话也可以和我的解法对比下,自然知道哪个更加可靠一些了。
IOS 12.3的PPPOE配法:此解法仅仅是处于研究的目的,没有任何的考试价值,也遵循最小化原则
拓扑与需求和上面一致,这个实验我是在dynamips CCNP标准版上做的,所以接口都变成F0/0了。 解法: R1
username R2 password cisco vpdn enable
vpdn-group pppoe accept-dialin protocol pppoe virtual-template 1 exit
interface Virtual-Template1 encapsulation ppp mtu 1492
ip tcp adjust-mss 1452
ip unnumbered FastEthernet0/0 peer default ip address pool pppoe ppp authentication chap ip local pool pppoe 10.1.12.2 int f0/0
ip add 10.1.12.1 255.255.255.0 pppoe enable no sh R2
vpdn enable interface dialer 1 encapsulation ppp ip address negotiated dialer pool 1 dialer persistent mtu 1492
ip tcp adjust-mss 1452 ppp chap hostname R2 ppp chap password 0 cisco int f0/0
pppoe-client dial-pool-number 1 no shut
效果:
R2#sh ip int bri
Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset up up Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Serial2/0 unassigned YES unset administratively down down
Serial2/1 unassigned YES unset administratively down down Serial2/2 unassigned YES unset administratively down down Serial2/3 unassigned YES unset administratively down down Virtual-Access1 unassigned YES unset up up Dialer1 10.1.12.2 YES IPCP up up
R1#p 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds: !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/20/44 ms
五. 结束语、下周预告、联系方式:
任何技术有争论才有学习和进步,当然是在文明用语的前提下,所以大家如果有疑问的地方,或者你觉得我说错了,有哪些地方需要改经,可以跟贴留言,或在我的微薄留言,或者直接qq联系我,我如果看到了一定一一给大家回复。
下周预告:
下周会对K4中的802.1q tunnel进行相关的扫盲和技术讲解解法揭秘!

