pppOE
ppp over Ethernet;
两个AR2240路由器和一个交换机;
服务器端AR1:
建立一个IP地址池;
ip pool 地址池名
network ip范围 mask 子网掩码
建立一个虚拟接口0,PPP认证CHAP安全认证。采用IP池;
interface Virtual-Template 0
PPP authentication-mode chap
remote address pool a
0号以太网端口绑定虚拟0号端口
进入0号端口:int g0/0/0
pppoe-server bind virtual-template 0
quit
虚拟0号端口配置IP地址:
int Virtual-Template 0
ip address 12.1.1.2 30
undo info-center enable
关闭系统消息;
进入aaa;添加用户名和密码
aaa
local-user 用户名 password cipher 密码
local-user 12345@gd.163 service-type ppp
客户端:
配置Dialer0号端口,协商模式为ppp,安全认证chap下的用户明和密码;
interface Dialer 0
ip address ppp-negotiate
ppp chap user 12345@gd.163
ppp chap password cipher 1234
dialer用户A创建,绑定号设为1;
dialer user A
dialer bundle 1
quit
o号以太网端口绑定刚才的1号口;
int g0/0/0
pppoe-client dial-bundle-number 1
查看:端口分配到了IP
与客户端连通