PPPoE的几种配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
K4
vpdn enable
bba-group pppoe global
virtual-template 1
interface Fa0/0
no ip address 28.28.34.3 255.255.255.0
pppoe enable
no shutdown
\\以上两步的另外一种需求和配置方法
bba-group pppoe CISCO
\\需求中指定了group name 为CISCO
virtual-templete 1
interface Fa0/0
no ip address
pppoe enable group CISCO
no shutdown
interface virtual-template 1
ip mtu 1492
ip address 28.28.34.3 255.255.255.0 \\1500=1492pppoe+8ether
peer default ip address pool cisco \\直接配置IP
encapsulation ppp
username Rack28R4 password cisco
ip local pool cisco 28.28.34.4
R4(Client)
vpdn enable
interface F10/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
interface dialer 1
ip mtu 1492
ip address negotiated
dialer pool 1
dialer persistent
\\该命令会导致自动产生一条新命令,"dialer idle-timeout 0"为正常现象。
encapsulation ppp
ppp chap password cisco
show pppoe session \\查看是否获得地址。
1.
CLIENT
vpdn enable
interface f0/0
no ip address
ip mtu 1492
pppoe enable group global
pppoe-client dial-pool-number 1
interface Dialer 1
ip address negotiated
encapsulation ppp
dialer pool 1
dialer idle-timeout 0
dialer persistent
SERVER
vpdn enable
bba-group pppoe global
virtual-template 1
ip local pool PPP-Pool YY.YY.12.2
interface f0/0
no ip address
ip mtu 1492
pppoe enable group global
interface virtual-template 1
ip address YY.YY.12.1 255.255.255.0
peer default ip address pool PPP-Pool
2. DHCP
CLIENT
vpdn enable
interface f0/0
no ip address
ip mtu 1492
pppoe enable group global
pppoe-client dial-pool-number 1
interface Dialer 1
ip address dhcp
encapsulation ppp
dialer pool 1
dialer idle-timeout 0
dialer persistent
SERVER
vpdn enable
ip dhcp exclude-address YY.YY.12.1
ip dhcp pool PPP-Pool
network YY.YY.12.0 255.255.255.0
bba-group pppoe global
virtual-template 1
interface f0/0
no ip address
ip mtu 1492
pppoe enable group global
interface virtual-template 1
ip address YY.YY.12.1 255.255.255.0
peer default ip address dhcp-pool PPP-Pool
3.
*** Client ***
interface Ethernet0/0
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address 142.1.35.5 255.255.255.0
encapsulation ppp
dialer-pool 1
dialer persistent
*** Server ***
vpdn enable
!
vpdn-group CISCO
accept-dialin
protocol pppoe
virtual-template 1
!
interface Ethernet0/0
pppoe enable
!
interface Virtual-Template1
ip address 142.1.35.3 255.255.255.0
4.
*** Client ***
interface Ethernet0/1
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address dhcp
encapsulation ppp
dialer pool 1
dialer persistent
*** Server ***
ip dhcp excluded-address 191.1.45.1 190.12.45.3
!
ip dhcp pool MYPOOL
network 191.1.45.0 255.255.255.0
!
vpdn enable
!
vpdn-group CISCO
accept-dialin
protocol pppoe
virtual-template 1
!
interface Ethernet0/0
pppoe enable
!
interface Virtual-Template1
ip address 191.1.45.5 255.255.255.0
peer default ip address dhcp-pool MYPOOL