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 overloadNAT转换)
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协议配置拓扑图

PPPoE协议配置拓扑图

相关内容