三個cisco 1841 pppoe設(shè)置案例
在PPPoE的設(shè)置中,我們通常會結(jié)合一些路由等設(shè)備進(jìn)行調(diào)試。那么這里我們就講解三個關(guān)于cisco 1841 pppoe的設(shè)置案例,幫助大家進(jìn)行一下分析,希望能夠給大家提供一下有價值的參考。那么讓我們看看具體的內(nèi)容吧。Cisco1841路由器連接ADSL modem的PPPoE配置。
cisco 1841 pppoe設(shè)置案例一
- vpdn enable
 - no vpdn logging
 - !
 - !
 - 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
 
#p#
cisco 1841 pppoe設(shè)置案例二
經(jīng)典思科1841 ADSL的成功設(shè)置+DHCP
路由器下面的客戶端全是XP。都是設(shè)為自動獲取IP 地址。
現(xiàn)像是在客戶端上IPCONFIG 地址是0。0。0。0
沒有獲得指定的IP地址,
系統(tǒng)也沒有獲得169網(wǎng)段的地址。
- cisco1841#sh run
 - Building configuration...
 - Current configuration : 2970 bytes
 - !
 - version 12.4
 - service timestamps debug datetime msec
 - service timestamps log datetime msec
 - no service password-encryption
 - service dhcp
 - !
 - hostname cisco1841
 - !
 - boot-start-marker
 - boot-end-marker
 - !
 - logging buffered 51200 warnings
 - !
 - no aaa new-model
 - !
 - resource policy
 - !
 - mmi polling-interval 60
 - no mmi auto-configure
 - no mmi pvc
 - mmi snmp-timeout 180
 - ip subnet-zero
 - ip cef
 - !
 - !
 - ip dhcp database 123
 - no ip dhcp use vrf connected
 - ip dhcp excluded-address 192.168.1.1
 - ip dhcp ping packets 0
 - !
 - ip dhcp pool 123
 - network 192.168.1.0 255.255.255.0
 - default-router 192.168.1.1
 - dns-server 202.106.0.20 202.106.46.151
 - !
 - !
 - no ip domain lookup
 - ip domain name yourdomain.com
 - ip dhcp-server 192.168.1.1
 - vpdn enable
 - vpdn ip udp ignore checksum
 - !
 - vpdn-group pppoe
 - request-dialin
 - protocol pppoe
 - !
 - !
 - username cisco privilege 15 secret 5 $1$ZKUk$YoVcdG31aDaIAn/mdK9qL0
 - !
 - !
 - !
 - interface FastEthernet0/0
 - description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE 0$
 - ip address 192.168.1.1 255.255.255.0
 - ip access-group 100 in
 - ip nat inside
 - duplex auto
 - speed auto
 - !
 - interface FastEthernet0/1
 - no ip address
 - duplex auto
 - speed auto
 - pppoe enable
 - pppoe-client dial-pool-number 1
 - !
 - interface Dialer1
 - ip address negotiated
 - ip access-group 100 in
 - ip mtu 1492
 - ip nat outside
 - encapsulation ppp
 - dialer pool 1
 - dialer vpdn
 - dialer-group 1
 - no cdp enable
 - ppp pap sent-username 1234567 password 0 1234567
 - !
 - ip classless
 - ip route 0.0.0.0 0.0.0.0 Dialer1
 - !
 - no ip http server
 - ip http authentication local
 - ip http timeout-policy idle 5 life 86400 requests 10000
 - ip nat inside source list 1 interface Dialer1 overload
 - !
 - access-list 1 permit any
 - access-list 100 deny
 - access-list 100 deny
 - access-list 100 permit ip any any
 - dialer-list 1 protocol ip permit
 - !
 - control-plane
 - !
 - banner login ^C
 - -----------------------------------------------------------------------
 - Cisco Router and Security Device Manager (SDM) is installed on this
 - device.
 - This feature requires the one-time use of the username "cisco"
 - with the password "cisco".
 - Please change these publicly known initial credentials using SDM or the
 - IOS CLI.
 - Here are the Cisco IOS commands.
 - username <myuser> privilege 15 secret 0 <mypassword>
 - no username cisco
 - Replace <myuser> and <mypassword> with the username and password you
 - want to use.
 - For more information about SDM please follow the instructions in the
 - QUICK START
 - GUIDE for your router or go to http://www.cisco.com/go/sdm
 - -----------------------------------------------------------------------
 - ^C
 - !
 - line con 0
 - timeout login response 200
 - login local
 - line aux 0
 - line vty 0 4
 - timeout login response 200
 - privilege level 15
 - password gbicc_cisco
 - login
 - transport input telnet
 - line vty 5 15
 - privilege level 15
 - password gbic_cisco
 - login
 - transport input telnet
 - !
 - end
 - cisco1841#
 
#p#cisco 1841 pppoe設(shè)置案例三
假設(shè)E0接內(nèi)網(wǎng),E1接ADSL上外網(wǎng)
第一步:配置vpdn
- vpdn enable(啟用路由器的虛擬專用撥號網(wǎng)絡(luò)---vpnd)
 - vpdn-group office(建立一個vpdn組,)
 - request-dialin(初始化一個vpnd tunnel,建立一個請求撥入的vpdn子組,)
 - protocol pppoe(vpdn子組使用pppoe建立會話隧道)
 
第二步: 配置路由器連接adsl modem的接口
- interface Ethernet1
 - no ip address
 - pppoe enable允許以太接口運行pppoe
 - pppoe-client dial-pool-number 1將以太接口的pppoe撥號客戶端加入撥號池1
 
第三步:配置邏輯撥號接口:
- interface Dialer1
 - ip address negotiated從adsl服務(wù)商動態(tài)協(xié)商得到ip地址
 - ip nat outside為該接口啟用NAT
 - encapsulation ppp為該接口封裝ppp協(xié)議
 - dialer pool 1該接口使用1號撥號池進(jìn)行撥號
 - dialer-group 1該命令對于pppoe是意義不大的
 - ppp authentication pap callin啟用ppp pap驗證
 - ppp pap sent-username xxxxxxx password 0 yyyyyyy使用已經(jī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
 















 
 
 



 
 
 
 