Cisco PPPoE配置实例(3640路由器接ADSL Modem)

实验配置:
1、ADSL PPPoE Client 配置
     第一种方法:用PC上创建PPPOE客户端。
     第二种方法:用CISCO路由器的以太口进行PPPOE拨号:非固定IP
      配置模板:
en
confit t
vpdn enable
vpdn-group pppoe
request-dialin
protocol pppoe
exit
exit
interface ethernet 0/0
no ip address
pppoe enable
pppoe-client dial-pool-number 1
no shutdown            //把接口打开
exit
interface Dialer1
ip address negotiated
ip mtu 1492
encapsulation ppp
ppp pap sent-username walkbird password walkbird
dialer pool 1
ip router 0.0.0.0   0.0.0.0 dialer1
2、用cisco路由器做PPPoE Server端配置
en
conf t
hostname Adsl_walkbird
username walkbird password walkbird
vpdn enable
vpdn-group pppoe
accept-dialin
protocol pppoe
virtual-template 1
exit
exit
interface ethernet 0/0
pppoe enable
no shutdown
interface virtual-template 1
mtu 1492                                           //PPP头部最大传输单元
ip unnumbered loopback                 //借用地址
peer default ip address pool pppoe_ip_pool
encapsulation ppp
ppp authentication pap
exit
ip local pool pppoe_ip_pool 11.11.11.10 11.11.11.100
interface lookback0
ip address 1.1.1.1 255.255.255.0
no shutdown
exit
三、实验测试
sh ip route
sh ip int brief
debug pppoe event
sh ip int dialer 1

你可能感兴趣的:(职场,Cisco,休闲)