静态IP
R1 配置
dialer-rule
dialer-rule 10 ip permit
interface Dialer1
link-protocol ppp
ppp pap local-user hcip password cipher 123
ip address ppp-negotiate
dialer user hcip
dialer bundle 2
dialer-group 10
nat outbound 2001
acl number 2001
rule 5 permit source 192.168.1.0 0.0.0.255
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 Dialer1
R2配置
ip pool 1
gateway-list 201.1.1.1
network 201.1.1.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
interface Virtual-Template1
ppp authentication-mode pap
remote address pool 1
ip address 201.1.1.1 255.255.255.0
interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 1
interface GigabitEthernet0/0/1
ip address 9.9.9.1 255.255.255.0
拓扑
DHCP
R1配置
dhcp enable
ip pool aa
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
interface Dialer1
link-protocol ppp
ppp pap local-user hcip password cipher 123
ip address ppp-negotiate
dialer user hcip
dialer bundle 2
dialer-group 10
nat outbound 2001
interface GigabitEthernet0/0/1
pppoe-client dial-bundle-number 2 on-demand
dialer-rule
dialer-rule 10 ip permit
ip route-static 0.0.0.0 0.0.0.0 Dialer1
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
dhcp select global
R2
ip pool 1
gateway-list 201.1.1.1
network 201.1.1.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
interface Virtual-Template1
ppp authentication-mode pap
remote address pool 1
ip address 201.1.1.1 255.255.255.0
interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 1
interface GigabitEthernet0/0/1
ip address 9.9.9.1 255.255.255.0
标签:255.255,ip,dialer,实验,address,interface,255.0,PPPOE
From: https://blog.51cto.com/u_11726705/6149484