我有一个实验室,在那里我想配置一个PPPoE客户端和服务器。我有一个ISP
和一个router
设备,它们都与FaseEthernet0/1
接口连接在一起。
客户端配置:
interface FastEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
mtu 1492
ip address negotiated
encapsulation ppp
dialer pool 1
ppp chap password 0 MyPassword
ISP配置:
username CPE password 0 MyPassword
!
bba-group pppoe MyGroup
virtual-template 1
sessions per-mac limit 2
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable group MyGroup
!
interface Virtual-Template1
ip address 10.0.0.1 255.255.255.0
peer default ip address pool MyPool
ppp authentication chap callin
!
ip local pool MyPool 10.0.0.2 10.0.0.254
这似乎没有建立一个联系。当我在客户端路由器上运行show pppoe session
时,我得到以下输出:
router#show pppoe session
1 client session
Uniq ID PPPoE RemMAC Port Source VA State
SID LocMAC VA-st
N/A 0 0000.0000.0000 Fa0/1 Di1 N/A PADISNT
0000.0000.0000
我不能从客户转到ISP。有什么不对,怎么解决?
编辑:物理接口在哪里下降,这就固定了一点。现在,它每隔几秒钟在控制台上打印以下文本:
*Jan 1 01:55:46.519: %DIALER-6-BIND: Interface Vi2 bound to profile Di1
*Jan 1 01:55:46.523: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
*Jan 1 01:55:46.543: %DIALER-6-UNBIND: Interface Vi2 unbound from profile Di1
*Jan 1 01:55:46.547: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to down
禁用身份验证,修复了它,并启动了PPPoE。但这仍然不是一个真正的解决办法。
发布于 2019-01-25 00:55:42
在ISP路由器上,您要求使用用户名CPE
和密码MyPassword
进行CHAP身份验证:
username CPE password 0 MyPassword
和
interface Virtual-Template1
ip address 10.0.0.1 255.255.255.0
peer default ip address pool MyPool
ppp authentication chap callin
然而,在您的客户端路由器上,您没有提供用户名:
interface Dialer1
mtu 1492
ip address negotiated
encapsulation ppp
dialer pool 1
ppp chap password 0 MyPassword
这显然在身份验证阶段失败了!这就是为什么当您禁用身份验证时,它是正确工作的。
只需加上
ppp chap hostname CPE
到您的拨号程序配置:
interface Dialer1
mtu 1492
ip address negotiated
encapsulation ppp
dialer pool 1
ppp chap hostname CPE
ppp chap password 0 MyPassword
https://networkengineering.stackexchange.com/questions/56302
复制相似问题