思科pppoe實驗

R1模擬為客戶端????R2為server端
PPPoE-server(config)#vpdn enable啟用虛擬專用網(wǎng)?
PPPoE-server(config)#int e0/0
PPPoE-server(config-if)#no shutdown
PPPoE-server(config-if)#ex
PPPoE-server(config)#username admin password cisco做一個本地認證的?用戶名??密碼
PPPoE-server(config)#service dhcp ????? ??????????????????????????開啟DHCP
PPPoE-server(config)#ip dhcp pool client ??????????????? ?????????????????給client發(fā)送
PPPoE-server(dhcp-config)#network 100.1.1.1 255.255.255.0發(fā)送的地址?
PPPoE-server(dhcp-config)#default-router 100.1.1.254 ???
PPPoE-server(dhcp-config)#dns-server 8.8.8.8
PPPoE-server(dhcp-config)#domain-name cisoc.com
PPPoE-server(dhcp-config)#ex
PPPoE-server(config)#interface virtual-template 1 ?? ???????????設(shè)置給對方撥號的模板
PPPoE-server(config-if)#encapsulation ppp ?????????? ?????????????封裝PPP
PPPoE-server(config-if)#ppp authentication chap ??????? ??????????是由CHAP做認證
PPPoE-server(config-if)#peer default ip address dhcp-pool client當對方撥號成功后?使用?這個地址池client ?做一個分發(fā)
PPPoE-server(config-if)#ip mtu 1492做以一個優(yōu)化????因為PPPoE會額外的添加8字節(jié)的開銷,防止超過MTU導(dǎo)致丟包
PPPoE-server(config-if)#no shutdown
PPPoE-server(config-if)#ip add 100.1.1.254 255.255.255.0接口配置地址
PPPoE-server(config-if)#no shutdown
PPPoE-server(config-if)#ex
PPPoE-server(config)#bba
PPPoE-server(config)#bba-group pppoe global ?? ??????????????起一個BBA組??使用?global
PPPoE-server(config-bba-group)#
PPPoE-server(config-bba-group)#virtual-template 1 ???? ?????????調(diào)用virtual-template 1
PPPoE-server(config-bba-group)#ex
PPPoE-server(config)#int e0/0
PPPoE-server(config-if)#pppoe enable group global調(diào)用?BBA組
PPPoE-server(config-if)#
?
?
pppoe-client(config)#vpdn enable?
pppoe-client(config)#int dialer 1 ??? ???????????????????????創(chuàng)建dialer口
pppoe-client(config-if)#dialer pool 100起撥號池?100 ?一定要一致
pppoe-client(config-if)#encapsulation ppp ?? ???????????????封裝PPP
pppoe-client(config-if)#ppp chap hostname admin出示用戶名
pppoe-client(config-if)#ppp chap password cisco
pppoe-client(config-if)#ip add negotiated撥號完成后去請求地址
pppoe-client(config-if)#ip mtu 1492
pppoe-client(config-if)#ppp ipcp route default指定缺省路由去往對方?
pppoe-client(config-if)#no shutdown
pppoe-client(config-if)#ex
pppoe-client(config)#int e0/0
pppoe-client(config-if)#no shutdown
pppoe-client(config-if)#pppoe-client dial-pool-number 100???關(guān)聯(lián)和撥號池一致
pppoe-client(config-if)#
*Aug 28 06:23:14.064: %DIALER-6-BIND: Interface Vi1 bound to profile Di1
*Aug 28 06:23:14.070: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
現(xiàn)在提示日志一個撥號口已經(jīng)起來了

已經(jīng)拿到了地址
此次僅為同學(xué)們演示思科PPPoE實驗。