IT貓撲網(wǎng):您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機(jī)版|論壇轉(zhuǎn)貼|軟件發(fā)布

您當(dāng)前所在位置: 首頁(yè)系統(tǒng)集成網(wǎng)絡(luò)管理 → 路由器接入ADSL配置詳解

路由器接入ADSL配置詳解

時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(0)

  1、Cisco路由器連接ADSL modem的PPPoE配置:

  說(shuō)明:此案例為北京電信adsl PPPoE接入,需要使用一個(gè)普通adsl modem和一臺(tái)cisco 2500路由器(雙以太口),IOS 12.2(15)T,能夠?qū)崿F(xiàn)局域網(wǎng)共享上網(wǎng).

  此案例配置共分7步:

  第一步:配置vpdn

  vpdn enable(啟用路由器的虛擬專用撥號(hào)網(wǎng)絡(luò)---vpnd)

  vpdn-group office(建立一個(gè)vpdn組,)

  request-dialin(初始化一個(gè)vpnd tunnel,建立一個(gè)請(qǐng)求撥入的vpdn子組,)

  protocol pppoe(vpdn子組使用pppoe建立會(huì)話隧道)

  第二步: 配置路由器連接adsl modem的接口

  interface Ethernet1

  no ip address

  pppoe enable允許以太接口運(yùn)行pppoe

  pppoe-client dial-pool-number 1將以太接口的pppoe撥號(hào)客戶端加入撥號(hào)池1

  第三步:配置邏輯撥號(hào)接口:

  interface Dialer1

  ip address negotiated從adsl服務(wù)商動(dòng)態(tài)協(xié)商得到ip地址

  ip nat outside為該接口啟用NAT

  encapsulation ppp為該接口封裝ppp協(xié)議

  dialer pool 1該接口使用1號(hào)撥號(hào)池進(jìn)行撥號(hào)

  dialer-group 1該命令對(duì)于pppoe是意義不大的

  ppp authentication pap callin啟用ppp pap驗(yàn)證

  ppp pap sent-username xxxxxxx password 0 yyyyyyy使用已經(jīng)申請(qǐng)的用戶名和口令

  第四步:配置內(nèi)部網(wǎng)絡(luò)接口

  interface Ethernet0(內(nèi)部網(wǎng)絡(luò)接口)

  ip address 10.1.1.1 255.255.255.0

  ip nat inside為該接口啟用NAT

  第五步:配置路由器為內(nèi)部網(wǎng)絡(luò)主機(jī)提供dhcp服務(wù)

  ip dhcp excluded-address 10.1.1.1

  ip dhcp pool ABC

  import all(導(dǎo)入dns和wins server)

  network 10.1.1.0 255.255.255.0

  default-router 10.1.1.1

  第六步:配置NAT:

  access-list 1 permit 10.1.1.0 0.0.0.255

  ip nat inside source list 1 interface Dialer1 overload

  第七步:配置缺省路由

  ip route 0.0.0.0 0.0.0.0 Dialer1

  2、Cisco路由器連接ADSL WIC卡之PPPoE配置解:

  !

  vpdn enable

  no vpdn logging? <=由于ADSL的PPPoE應(yīng)用是通過(guò)虛擬撥號(hào)來(lái)實(shí)現(xiàn)的所以在路由器中需要使用VPDN的功能

  !

  vpdn-group pppoe? <=為PPPoE啟動(dòng)了VPDN的進(jìn)程

  request-dialin

  protocol pppoe? <=設(shè)置撥號(hào)協(xié)議為PPPoE

  !

  interface FastEthernet0? <=設(shè)置公司內(nèi)部網(wǎng)絡(luò)地址

  ip address 192.168.0.1 255.255.255.0

  ip nat inside? <=為啟用NAT轉(zhuǎn)換,設(shè)置Fast ethernet端口為內(nèi)部網(wǎng)絡(luò),從內(nèi)部網(wǎng)絡(luò)收到的數(shù)據(jù)的原地址轉(zhuǎn)換為公網(wǎng)地址

  !

  interface ATM0/0 <=設(shè)置ADSL端口

  no ip address <=請(qǐng)不要設(shè)置地址

  no atm ilmi-keepalive

  bundle-enable

  dsl operating-mode auto

  hold-queue 224 in

  interface ATM0/0.1 point-to-point <=ADSL的通訊 依靠VC,所以必須設(shè)定點(diǎn)到點(diǎn)VC

  pvc 8/81 <=設(shè)置PVC的相關(guān)參數(shù), 即VCI和VPI的值,如果不清楚請(qǐng)向局端查詢

  pppoe-client dial-pool-number 1 <=PPPoE撥號(hào)進(jìn)程使用了常規(guī)的撥號(hào)進(jìn)程,這里引用了dialer-pool 1

  !

  interface Dialer1 <=建立一個(gè)虛擬撥號(hào)端口 ip address negotiated <=由于局端提供動(dòng)態(tài)地址,所以必須設(shè)定地址為協(xié)商獲得

  ip mtu 1492 <=修改mtu值以適用于ADSL網(wǎng)絡(luò)

  ip nat outside <=為啟用NAT轉(zhuǎn)換,設(shè)置該端口為外部網(wǎng)絡(luò)

  encapsulation ppp <=使用PPP的幀格式

  dialer pool 1

  ppp authentication pap callin <=設(shè)置撥號(hào)的驗(yàn)證方式為pap

  ppp pap sent vip pass vip <=發(fā)送用戶名和密碼

  ip nat inside source list 1 interface Dialer1 overload <=設(shè)置了NAT的轉(zhuǎn)換方式,使用了dialer 1端口的動(dòng)態(tài)地址

 ??!

  ip classless

  ip route 0.0.0.0 0.0.0.0 dialer1 <=將所有不可路由的數(shù)據(jù)報(bào)轉(zhuǎn)發(fā)給ADSL線路,設(shè)定缺省路由

  no ip http server

  !

  access-list 1 permit 192.168.0.0 0.0.0.255

#p#副標(biāo)題#e#

 ?。?/p>

  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 [email protected] 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.

  !

#p#副標(biāo)題#e#

  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

  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

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

關(guān)鍵詞標(biāo)簽:路由器,ADSL配置

相關(guān)閱讀

文章評(píng)論
發(fā)表評(píng)論

熱門文章 路由器地址大全-各品牌路由設(shè)置地址 路由器地址大全-各品牌路由設(shè)置地址 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 Nslookup命令詳解-域名DNS診斷 Nslookup命令詳解-域名DNS診斷 站長(zhǎng)裝備:十大網(wǎng)站管理員服務(wù)器工具軟件 站長(zhǎng)裝備:十大網(wǎng)站管理員服務(wù)器工具軟件

相關(guān)下載

    人氣排行 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 路由器地址大全-各品牌路由設(shè)置地址 騰達(dá)路由器怎么設(shè)置?騰達(dá)路由器設(shè)置教程 ADSL雙線負(fù)載均衡設(shè)置詳細(xì)圖文教程 路由表說(shuō)明(詳解route print) Nslookup命令詳解-域名DNS診斷 網(wǎng)管員實(shí)際工作的一天 網(wǎng)管必會(huì)!了解交換機(jī)控制端口流量