找资料,自己用模拟器做的PPPOE的客户端和服务器端配置,不足之处还请大家指点啊~~~~
设备连接方式: server route(f0/0)--------------->(f0/0)client route
服务器端配置命令:
1、
username eagle password eagle
vpdn enable
vpdn-group pppoe
accept-dialin
protocol pppoe
virtual-template 1
2、
int f0/0
pppoe enable
no shut
3、
int lookback 0
ip address 1.1.1.1 255.255.255.0
no shut
4、
int virtual-template 1
ip mtu 1492
encapsulation ppp
ppp authentication pap
ip unnumbered loopback 0
peer default ip address pool pppoe_ip_pool
5、
ip loacl pool pppoe_ip_pool 11.11.11.10 11.11.11.100
客户端配置:
1、
vpdn enable
vpdn-group pppoe
request-dialin
protocol pppoe
2、
int f0/0
pppoe enable
pppoe-client dial-pool-number 1
no shut
3、
int dialer 1
ip address negotiated
ip mtu 1492
encapsulation ppp
ppp pap sent-username eagle password eagle
dialer pool 1
4、
ip route 0.0.0.0 0.0.0.0 dialer 1
5、验证
show ip route
show ip int brief
show ip int dialer 1