cisco 路由器 连接 adsl之pppoe 配置 cisco 路由器 连接 adsl modem的pppoe 配置 : hostname bjsite ! ip subnet-zero no ip domain-lookup ! vpdn enable no vpdn logging ! vpdn-group 1 request-dialin protocol pppoe ! interface ethernet0/0 ip addre
cisco路由器连接adsl之pppoe配置
cisco路由器连接adsl modem的pppoe配置:
hostname bjsite
!
ip subnet-zero
no ip domain-lookup
!
vpdn enable
no vpdn logging
!
vpdn-group 1
request-dialin
protocol pppoe
!
interface ethernet0/0
ip address 192.168.0.1 255.255.255.0
ip nat inside
no ip mroute-cache
!
!
!
!
interface ethernet0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
! www.2cto.com
interface dialer1
ip address negotiated
ip nat outside
ip mtu 1492
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
ppp authentication pap
ppp pap sent-username dg48907653@163.gd password xxxxxxxx
!
ip classless
no ip http server
!
dialer-list 1 protocol ip permit
ip nat inside source list 1 interface dialer1 overload
ip route 0.0.0.0 0.0.0.0 dialer1
access-list 1 permit 192.168.0.0 0.0.0.255
!
line con 0
exec-timeout 0 0
transport input none
line vty 0 4
login
!
end
cisco路由器连接adsl wic卡之pppoe配置:
vpdn-group pppoe
request-dialin
!--- we are the pppoe client requesting to establish
!--- a session with the aggregation unit (6400 nrp).
protocol pppoe
!
www.2cto.com
!--- internal ethernet network.
!
interface fastethernet0
ip address 10.92.1.182 255.255.255.0
ip nat inside
!--- dsl interface.
!
interface atm0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
hold-queue 224 in
!--- all defaults.
!--- pppoe runs on top of aal5snap, but the
!--- encap aal5snap command is not used.
!
interface atm0.1 point-to-point
pvc 1/1
pppoe-client dial-pool-number 1
!--- pvc 1/1 is an example value that must be changed
!--- to match the value used by the isp.
www.2cto.com
!
!--- the pppoe client code ties into a dialer interface upon
!--- which a virtual-access interface is cloned.
!
interface dialer1
ip address negotiated
ip mtu 1492
!--- ethernet mtu default = 1500 (1492 + pppoe headers = 1500)
ip nat outside
encapsulation ppp
dialer pool 1
!--- ties to atm interface.
ppp authentication chap callin
ppp chap hostname
ppp chap password
!
!--- the isp will instruct you regarding
!--- the type of authentication to use.
!--- to change from ppp chap to ppp pap,
!--- replace the following three lines:
!--- ppp authentication chap callin
!--- ppp chap hostname
!--- ppp chap password
!--- with the following two lines:
!--- ppp authentication pap callin
!--- ppp pap sent-username password
www.2cto.com
!--- for nat we are going to overload on the dialer1
!--- interface and add a default route out
!--- since dialer ip address can change.
ip nat inside source list 1 interface dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 dialer1
no ip http server
!
access-list 1 permit 10.92.1.0 0.0.0.255