Cisco ISR 系列支援三種 ADSL 接入方式:內建 ADSL WIC 卡 (WIC-1ADSL/HWIC-1ADSL)、外掛乙太網 Modem (橋接模式 + PPPoE Client)、PPPoE Server 端模擬。本文提供三大場景完整配置範例,含 VPDN、Dialer、NAT、DHCP、預設路由,並附除錯指令。
! 1. VPDN 啟用
vpdn enable
vpdn-group 1
request-dialin
protocol pppoe
! 2. 連接 Modem 的乙太介面 (無 IP,啟用 PPPoE Client)
interface Ethernet0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
! 3. 邏輯 Dialer 介面 (撥號、協商 IP、NAT Outside)
interface Dialer1
ip address negotiated
ip nat outside
ip mtu 1492
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username ISP帳號 password ISP密碼
! 4. 內網介面
interface Ethernet0/0
ip address 192.168.0.1 255.255.255.0
ip nat inside
! 5. DHCP Server
ip dhcp excluded-address 192.168.0.1
ip dhcp pool LAN_POOL
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 8.8.8.8 168.95.1.1
! 6. NAT Overload & 預設路由
access-list 1 permit 192.168.0.0 0.0.0.255
ip nat inside source list 1 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
vpdn-group pppoe
request-dialin
protocol pppoe
interface FastEthernet0
ip address 192.168.0.1 255.255.255.0
ip nat inside
interface ATM0/0
no ip address
no atm ilmi-keepalive
dsl operating-mode auto
interface ATM0/0.1 point-to-point
pvc 8/81 ! VPI/VCI 請向 ISP 確認
pppoe-client dial-pool-number 1
interface Dialer1
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
dialer pool 1
ppp authentication pap callin
ppp pap sent-username ISP帳號 password ISP密碼
ip nat inside source list 1 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
access-list 1 permit 192.168.0.0 0.0.0.255
username client1 password client1
vpdn enable
vpdn-group pppoe-server
accept-dialin
protocol pppoe
virtual-template 1
interface Virtual-Template1
mtu 1492
ip unnumbered Loopback0
peer default ip address pool PPPOE_POOL
encapsulation ppp
ppp authentication pap
ip local pool PPPOE_POOL 11.11.11.10 11.11.11.100
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip mtu 1492:PPPoE 頭部 8 bytes,避免分片。dsl operating-mode auto:自動協商 G.dmt/G.lite/ADSL2+。pvc VPI/VCI:必須與 ISP 端一致,常見 8/35、0/35、8/81。ppp authentication pap/chap:依 ISP 要求二擇一,CHAP 較安全。show ip route
show ip interface brief
debug pppoe events
debug ppp negotiation
debug ppp authentication
show ip nat translations
show pppoe session