PPPoE configuration method based on unilaterally designated IP

Decomposition experiment

Insert picture description here
This method is to call an IP address to the client instead of making an address pool.

首先配置Client 客户端
[Client]interface Dialer 0  //进入拨号口进行配置
[Client-Dialer0]link-protocol ppp
[Client-Dialer0]ppp chap user admin 
[Client-Dialer0]ppp chap password cipher admin888
[Client-Dialer0]dialer user admin
[Client-Dialer0]ip address ppp-negotiate    //IP地址自动协商
[Client-Dialer0]dialer bundle 1    // 配置拨号捆绑接口为1
[Client-Dialer0]int g0/0/0
[Client-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1

这里客户端就配置完成了
服务端
[Server]aaa
[Server-aaa]local-user admin password cipher admin888
[Server-aaa]local-user admin service-type ppp
//和其他服务一样常规操作设置服务账号密码
[Server]int Virtual-Template 0
[Server-Virtual-Template0]ppp authentication-mode chap 
[Server-Virtual-Template0]remote address 10.1.1.1  //给客户端分配一个IP地址,如果是地址池就调用POOL
[Server-Virtual-Template0]ip add 10.1.1.2 24     //设置本地IP地址
[Server-GigabitEthernet0/0/0]pppoe-server bind virtual-template 0     //进入端口绑定设置的虚拟模板

Guess you like

Origin blog.csdn.net/Nocker888/article/details/104555283