PPPOE 配置不起作用

网络工程 思科 pppoe
2021-07-10 15:24:46

我有一个带有 Cisco IOS C880 版本 12.4(24)T5 的 Cisco 881-W 路由器。

出于某种原因,我似乎无法在拨号器上获得 IP。我可能正在做一些愚蠢的错误。

Interface                  IP-Address      OK? Method Status                Protocol
Dialer1                    unassigned      YES NVRAM  up                    up
FastEthernet0              unassigned      YES unset  up                    down
FastEthernet1              unassigned      YES unset  up                    down
FastEthernet2              unassigned      YES unset  up                    down
FastEthernet3              unassigned      YES unset  up                    down
FastEthernet4              unassigned      YES NVRAM  up                    up
NVI0                       unassigned      NO  unset  up                    up
Vlan1                      unassigned      YES NVRAM  up                    up
Wlan-GigabitEthernet0      unassigned      YES unset  up                    up
wlan-ap0                   unassigned      YES NVRAM  up                    up


interface fastEthernet0/0
 no ip address
 duplex auto
 speed auto
 pppoe enable group global
 pppoe-client dial-pool-number 1
 no cdp enable

interface fastEthernet0/1
 duplex auto
 speed auto
 no cdp enable

interface Dialer0
 ip address negotiated
 ip mtu 1492
 ip flow ingress
 ip nat outside
 encapsulation ppp
 dialer pool 1
 ppp authentication pap callin
 ppp pap sent-username --- password ---
 ppp ipcp dns request accept
 ppp ipcp route default
 ppp ipcp address accept
 no cdp enable
1个回答

您需要确保拨号界面被“有趣的流量”触发

根据 ...

https://www.cisco.com/en/US/docs/routers/access/800/850/software/configuration/guide/pppoenat.html

...你需要一个拨号列表/拨号组声明。

dialer-list 144 protocol ip permit

[...]

interface dialer 0 
 dialer-group 144

暗示:

如果可能,请远离拨号池和拨号列表的“1”号码,尤其是当访问列表号码开始发挥作用时(“访问列表 1 允许...”)。

它使配置难以阅读,尤其是对于新手而言。

我不知道为什么 Cisco 的示例和文档坚持这种编号方式。无论如何,一定要更喜欢命名项目(例如在 ACL 中)或选择易于被人类读者匹配的“随机”数字,即使它们在配置文件中彼此相距数十或数百行。