路由器用PPP0E上网
生活随笔
收集整理的這篇文章主要介紹了
路由器用PPP0E上网
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
en
config t
service password-encryption
line con 0
logging synchronous
exit
hostname ADSL-dialer-Client
ip name-server 202.103.96.112? ?(配置 DNS)
ip name-server 202.103.96.68
vpdn enable? ?
vpdn-group PPPOE_DIALER? ?(指定一個(gè)組號(hào))
request-dialin? ?
??protocol pppoe? ?(指定協(xié)議為PPPoE)
??exit
exit
interface Ethernet0/1? ?(內(nèi)網(wǎng)接口)
ip address 192.168.0.1 255.255.255.0
ip nat inside
no shutdown
exit
interface Ethernet0/0? ?(連接ADSL的接口也就是說接外網(wǎng)的)
no ip address
pppoe enable? ???(開啟PPPOE功能)
pppoe-client dial-pool-number 1
no shutdown
exit
interface Dialer1? ???(開啟PPPOE以后.虛擬出來的接口)
ip address negotiated
ip mtu 1492??
ip nat outside
encapsulation ppp
ppp pap sent-username zky_username password zky_password
ppp chap hostname zky_username
ppp chap password??zky_password
dialer pool 1
ip tcp adjust-mss 1452
exit
ip nat inside source list 1 interface Dialer1 overload
access-list 1 permit 192.168.0.0 0.0.0.255
ip route 0.0.0.0 0.0.0.0 Dialer1
IOS我用的好像的3620的C3620-IK9.123-25.因?yàn)橐觥痢痢了杂昧藥9的
config t
service password-encryption
line con 0
logging synchronous
exit
hostname ADSL-dialer-Client
ip name-server 202.103.96.112? ?(配置 DNS)
ip name-server 202.103.96.68
vpdn enable? ?
vpdn-group PPPOE_DIALER? ?(指定一個(gè)組號(hào))
request-dialin? ?
??protocol pppoe? ?(指定協(xié)議為PPPoE)
??exit
exit
interface Ethernet0/1? ?(內(nèi)網(wǎng)接口)
ip address 192.168.0.1 255.255.255.0
ip nat inside
no shutdown
exit
interface Ethernet0/0? ?(連接ADSL的接口也就是說接外網(wǎng)的)
no ip address
pppoe enable? ???(開啟PPPOE功能)
pppoe-client dial-pool-number 1
no shutdown
exit
interface Dialer1? ???(開啟PPPOE以后.虛擬出來的接口)
ip address negotiated
ip mtu 1492??
ip nat outside
encapsulation ppp
ppp pap sent-username zky_username password zky_password
ppp chap hostname zky_username
ppp chap password??zky_password
dialer pool 1
ip tcp adjust-mss 1452
exit
ip nat inside source list 1 interface Dialer1 overload
access-list 1 permit 192.168.0.0 0.0.0.255
ip route 0.0.0.0 0.0.0.0 Dialer1
IOS我用的好像的3620的C3620-IK9.123-25.因?yàn)橐觥痢痢了杂昧藥9的
轉(zhuǎn)載于:https://blog.51cto.com/hushanshan27/191742
總結(jié)
以上是生活随笔為你收集整理的路由器用PPP0E上网的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [MySQL FAQ]系列 -- 账号密
- 下一篇: Windows SharePoint S