西西軟件園多重安全檢測下載網(wǎng)站、值得信賴的軟件下載站!
軟件
軟件
文章
搜索

首頁硬件相關(guān)路由交換 → Cisco路由器的ADSL modem配置詳細介紹

Cisco路由器的ADSL modem配置詳細介紹

相關(guān)軟件相關(guān)文章發(fā)表評論 來源:本站整理時間:2010/11/25 16:53:31字體大小:A-A+

作者:佚名點擊:1124次評論:0次標簽: ADSL modem Cisco路由器

ADSL IP 更換工具V1.041 綠色免費版
  • 類型:IP 工具大。125KB語言:中文 評分:.9
  • 標簽:
立即下載
2 頁 Cisco路由器連接ADSL modem的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
!
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
!


!--- 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.

!



!--- 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 <username>
ppp chap password <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 <username>
!--- ppp chap password <password>
!--- with the following two lines:
!--- ppp authentication pap callin
!--- ppp pap sent-username <username> password <password>


!--- 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
-------------------------------------------



用cisco路由器做PPPoE Server端配置


en
conf t
hostname Adsl_walkbird
username walkbird password walkbird
vpdn enable
vpdn-group pppoe
accept-dialin
protocol pppoe
virtual-template 1
exit
exit
interface ethernet 0/0
pppoe enable
no shutdown
interface virtual-template 1
mtu 1492 //PPP頭部最大傳輸單元
ip unnumbered loopback //借用地址
peer default ip address pool pppoe_ip_pool
encapsulation ppp
ppp authentication pap
exit
ip local pool pppoe_ip_pool 11.11.11.10 11.11.11.100
interface lookback0
ip address 1.1.1.1 255.255.255.0
no shutdown
exit
三、實驗測試
sh ip route
sh ip int brief
debug pppoe event
sh ip int dialer 1
本文導(dǎo)航

    相關(guān)評論

    閱讀本文后您有什么感想? 已有人給出評價!

    • 8 喜歡喜歡
    • 3 頂
    • 1 難過難過
    • 5 囧
    • 3 圍觀圍觀
    • 2 無聊無聊

    熱門評論

    最新評論

    發(fā)表評論 查看所有評論(0)

    昵稱:
    表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
    字數(shù): 0/500 (您的評論需要經(jīng)過審核才能顯示)