簡述PPP概念和PPPoE配置
對于PPPoE的認識,我們還是需要從PPP來了解。那么可能有些朋友對于PPPoA以及前面兩種協(xié)議,都有一些混淆了。沒關系,這里我們就來看看具體的內(nèi)容吧。然后對于Pppoe配置的類型也來談一談。
PPP 包括:
LCP(link control protocol)——協(xié)商鏈路參數(shù)、包大小或認證類型。
NCP(network control protrol)——包含了高層協(xié)議相關的信息。
數(shù)據(jù)幀——包含用戶數(shù)據(jù)。
Pppoe 是ppp的一種表現(xiàn)形式。在原有的基礎上增加了倆個階段。發(fā)現(xiàn)階段和會話階段。
發(fā)現(xiàn)階段——識別與其建立對等關系的MAC地址,建立一個pppoe SESSION_ID。
會話階段——進行LCP協(xié)商,并根據(jù)需要時打開LCP。
Pppoe 配置步驟:
1 以太網(wǎng)/ATM接口配置。
2 撥號器接口配置。
3 PAT配置。
4 DHCP配置。
5 靜態(tài)路由配置
Pppoe配置選項
1 以太網(wǎng)接口上的pppoe—— 倆個以太網(wǎng)接口,一個是用戶測接口,一個是提供商接口。
2 ATM接口上的pppoe—— ATM接口(提供商),以太網(wǎng)接口(用戶測接口)。
Pppoe配置類型1:
- Ip dhcp excluded-address #########
- Ip dhcp pool pvlan
- Import all 動態(tài)將所有DNS、WINS及其它服務器的IP導入數(shù)據(jù)庫,并提供給網(wǎng)絡主機。
- Network #########
- Default-router
- Interface eo/1
- Pppoe enable
- Ppoe-client dial-pool-number 1
- Interface dialer 0
- Ip mtp 1942
- Encapusulation ppp
- Dialer pool 1
- Ip nat outside
- Ip route 0.0.0.0 0.0.0.0 interface dialer 0
- Ip nat inside sorce list 100 interface dialer 0 overload
- Access-list 100 permit ip #### --——根據(jù)具體情況定義
Pppoe配置類型2:
- Ip dhcp excluded-address ############
- Ip dhcp pool ##
- Import all
- Network ########
- Default-router
- Interface e0/0
- Ip address ########
- Ip nat inside
- Interface atm0/0
- Dsl operating-mode auto
- Pvc 8/35
- Pppoe client dial-pool-number 1
- Interface dialer 0
- Ip mtp 1942
- Ip address nogotiated
- Encapusalotion ppp
- Dialer pool 1
- Ip nat outside
- Ip route 0.0.0.0 0.0.0.0 interface dialer 0
- Ip nat inside source list 100 interface dialer 0 overload
- Access-list 100 permit ##########