配置以前从来没出过问题,不知道原因出在哪里
vpdn enable
!
vpdn-group PPPOE
request-dialin
protocol l2tp
!
interface FastEthernet0/0
ip nat outside
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface FastEthernet0/1
ip nat inside
ip address 172.16.1.1 255.255.255.0
!
interface Dialer1
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
ip tcp adjust-mss 1452
dialer pool 1
ppp authentication chap pap callin
ppp chap hostname 0512
ppp chap password 4346
ppp pap sent-username 0512 password 4346
!
ip nat inside source list 10 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
access-list 10 permit 192.168.20.0 0.255.255.255
access-list 10 permit 192.168.10.0 0.255.255.255
access-list 10 permit 192.168.30.0 0.255.255.255