配置:
access-list 1 permit 192.168.0.0/24
aaa-enable
aaa authentication login default local
aaa authentication ppp default local
username 163 privilege 1 password 163
username admin privilege 1 password harbour
pppoe virtual-template 0
ip local pool ip-pool 192.168.0.2 192.168.0.255
dialer-list 1 protocol ip permit
!
interface eth1/0
pppoe-client dial-pool-number 1
!
interface eth2/0
pppoe enable
!
interface async0/0
!
interface dialer0
ip address negotiated
ip nat outside
ppp pap sent-username 163 password 163
dialer pool 1
dialer-group 1
dialer permit-dial-null-string
!
interface virtual-template0
ip address 192.168.0.1/24
ip nat inside
peer default ip address pool ip-pool
ppp authentication chap default
compress stac —— 此命令需要与客户端配合(如果客户端选择了压缩,则在路由器上要配上压缩,否则就不需要配了),否则网络注册比较慢(大概20秒种)!
ppp ipcp DNS 91.21.80.1
!
!Rip config
router rip
!
ip route 0.0.0.0/0 eth1/0
ip nat on
ip nat inside source list 1 interface eth1/0
line console 0
line aux 0
line vty 0
password harbour
login authentication default
line vty 1 9
!
!end