PPPoE

PPPoE 配置


汇聚端设备命令行

hostname AGG
no ip domain lookup
ip dhcp excluded-address 202.1.1.1

ip local pool cpe 202.1.1.10 202.1.1.20

interface FastEthernet1/0
no ip address
duplex auto
speed auto
pppoe enable group global

interface Virtual-Template1
ip address 202.1.1.1 255.255.255.0
peer default ip address pool cpe
encapsulation ppp

line con 0
exec-timeout 0 0
logging synchronous

bba-group pppoe global
virtual-template 1

客户端设备(路由器)命令行

hostname CPE
ip dhcp excluded-address 198.168.1.1

ip dhcp pool PC
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1

interface FastEthernet 1/1
ip address 192.168.1.1 255.255.255.0
ip nat inside

interface FastEthernet 1/0
pppoe enable group global
pppoe-client dial-pool-number 1

interface Dialer0
ip address dhcp
ip mtu 1492
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer-group 1

ip route 0.0.0.0 0.0.0.0 Dialer 0

ip nat inside source list 1 interface Dialer 0 overload

access-list 1 permit 192.168.1.0 0.0.0.255

line con 0
exec-timeout 0 0
logging synchronous
no ip domain-lookup

ntp peer 192.168.1.2

你可能感兴趣的:(CCNP)