pppoe拨号案例

pppoe拨号案例_第1张图片

R3服务端

interface LoopBack0
ip address 1.1.1.1 255.255.255.255

aaa
local-user test password cipher admin
local-user test service-type ppp

ip pool test
network 100.0.0.0 mask 255.255.255.0

interface Virtual-Template0
ppp authentication-mode chap
remote address pool test
ip address 100.0.0.1 255.255.255.0

interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 0

interface GigabitEthernet0/0/1
pppoe-server bind Virtual-Template 0 //同一个虚拟接口可以绑定到不同的物理接口

dis pppoe-server session all
查看

R4配置

acl number 2000
rule 5 permit

interface Dialer0
link-protocol ppp
ppp chap user test
ppp chap password cipher admin
ip address ppp-negotiate
dialer user admin
dialer bundle 1
nat outbound 2000

interface GigabitEthernet0/0/0
pppoe-client dial-bundle-number 1

interface GigabitEthernet0/0/1
ip address 192.168.0.1 255.255.255.0

ip route-static 0.0.0.0 0.0.0.0 Dialer0

查看
display pppoe-client session summary

最后pc能通1.1.1.1

你可能感兴趣的:(网络工程,网络,数据库)