PPPoE協議配置案例分析
在PPPoE協議配置中,我們講解過不少內容,對于這方面涉及的路由內容也非常多。曾經,我們也介紹過不少,那么這里我們主要分析一下ADSL PPPoE協議配置當中的一個案例,來幫助大家分析一下。
PPPoE協議配置:
2514#sh run
Building configuration...Current configuration : 982 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname p2r3
!
!
ip subnet-zero
!
vpdn enable(開啟vpdn)
!
vpdn-group tyl
request-dialin
protocol pppoe(啟用pppoe協議)
!
!
!
!
interface Ethernet0
no ip address
pppoe enable
pppoe-client dial-pool-number 1(將物理端口和虛擬撥號端口綁定)
!
interface Ethernet1
ip address 192.168.1.254 255.255.255.0
ip nat inside
!
interface Dialer1
ip address negotiated
ip mtu 1492 (PPPoE協議配置中,將原來的mtu1500變為1492,因pppoe協議的包頭是8個字節)
ip nat outside
encapsulation ppp
dialer pool 1 (通過撥號池,將物理端口和虛擬撥號端口綁定)
ppp pap sent-username ******@163.gd password 0 ******(ppp pap的單向驗證)!
ip nat inside source list 1 interface Dialer1 overload(NAT轉換)
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1(設置靜態路由)
ip http server
ip pim bidir-enable
!
!
access-list 1 permit 192.168.1.0 0.0.0.255!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
end
PPPoE協議配置拓撲圖