自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

明明白白學(xué)習(xí)PPPOE配置

網(wǎng)絡(luò) 網(wǎng)絡(luò)管理
這里我們主要討論一下PPPOE server 和Cisco PPPOE的配置內(nèi)容。那么我們會(huì)將每一個(gè)步驟進(jìn)行一下講解,具體代碼也會(huì)進(jìn)行分析。

在配置方面,PPPoE協(xié)議總是有很多可圈可點(diǎn)之處。下面我們就來(lái)了解一下PPPOE server 和Cisco PPPOE的配置內(nèi)容。首先在自己的電腦上創(chuàng)建一個(gè)寬帶連接,名為libin password libin,然后在ATM1上做配置 。

先在 R1上配,pppoe客戶(hù)端

  1. R1(config)# vpdn enable 開(kāi)啟虛擬撥號(hào)網(wǎng)VPDN   
  2. R1(config)#vpdn-group CISCO 定義組 名為CISCO   
  3. R1(config-vpdn)#request-dialin   請(qǐng)求接入  
  4. R1(config-vpdn-req-in)#PROtocol pppoe  
  5. % PPPoE config from vpdn-group is converted to pppoe-profile based config.  
  6. % Continue PPPoE configuration under 'bba-group pppoe global'  
  7. R1(config-vpdn-req-in)#exit  
  8. R1(config-vpdn)#exit  
  9. R1(config-if)#no ip address  
  10. R1(config-if)#pppoe enable  
  11. R1(config-if)#pppoe-client dia  
  12. R1(config-if)#pppoe-client dial-pool-number 1  
  13. R1(config-if)#^Z  
  14. R1#conf t  
  15. R1(config-if)#ip add ?  
  16. A.B.C.D     IP address  
  17. dhcp        IP Address negotiated via DHCP  
  18. negotiated IP Address negotiated over PPP  
  19. pool        IP Address autoconfigured from a local DHCP pool  
  20. R1(config-if)#ip add negotiated  
  21. R1(config-if)#ip nat outside  
  22. R1(config-if)#encapsulation ppp  
  23. R1(config-if)#dialer pool 1  
  24. R1(config-if)#ppp chap hostname  
  25. R1(config-if)#ppp chap hostname cisco  
  26. R1(config-if)#ppp chap password 0 cisco  
  27. R1(config-if)#ip route 0.0.0.0 0.0.0.0 dialer0  

在R2上配置aggregation路由

  1. R2(config)#vpdn enable  
  2. R2(config)#vpdn-group 1  
  3. R2(config-vpdn)#accept-dialin  
  4. R2(config-vpdn-acc-in)#protocol pppoe   
  5. R2(config-vpdn-acc-in)#exit  
  6. R2(config-vpdn)#exit  
  7. R2(config)#username cisco password 0 cisco  
  8. R2(config)#bba-group pppoe global  
  9. R2(config-bba-group)#vir  
  10. R2(config-bba-group)#virtual-template 1  
  11. R2(config-bba-group)#int loo 0  
  12. R2(config-if)#ip add 1.1.1.1 255.0.0.0  
  13. R2(config-if)#int fastethernet 0/0  
  14. R2(config-if)#no ip address  
  15. R2(config-if)#pppoe enable  
  16. R2(config)#interface virtual-template 1  
  17. R2(config-if)#ip unnumbered loopback 0  
  18. R2(config-if)#peer default ip address pool cisco  
  19. R2(config-if)#ppp authentication chap  
  20. R2(config-if)#exit  
  21. R2(config)#ip local pool cisco 1.1.1.2 1.1.1.10 

配置ATM1

  1. ATM1#conf t  
  2. ATM1(config)#no ip routing  
  3. ATM1(config)#int fast0/0  
  4. ATM1(config-if)#no ip address  
  5. ATM1(config-if)#bridge-group 1  
  6. ATM1(config-if)#int atm1/0  
  7. ATM1(config-if)#no ip add  
  8. ATM1(config-if)#bri  
  9. ATM1(config-if)#bridge-group 1  
  10. ATM1(config-if)#pvc 1/100  
  11. ATM1(config-if-atm-vc)#encapsulation aal5snap  
  12. ATM1(config-if-atm-vc)#bridge 1 protocol ieee 

配置BBA-Group

  1. ATM1(config)#bba-group pppoe global   
  2. ATM1(config-bba-group)#virtual-template 1 虛擬摸版定義為1  
  3. ATM1(config-bba-group)#exit 

配置Virtual-Template

  1. ATM1(config)#interface virtual-template 1 進(jìn)入  
  2. ATM1(config-if)#ip unnumbered loopback 0   借用loopback 0上的ip  
  3. ATM1(config-if)#encapsulation ppp 封狀成ppp  
  4. ATM1(config-if)#ppp authentication chap 認(rèn)證為 chap  
  5. ATM1(config-if)#peer de  
  6. ATM1(config-if)#peer default ip add pool cisco   從名為cisco 里分配ip 地址 

現(xiàn)在開(kāi)始檢查是否成功

  1. 在 PC ping 1.1.1.1 和ping 1.1.1.2  
  2. R1(config-vpdn-req-in)#PROtocol pppoe  
  3. R1(config-vpdn-req-in)#exit  
  4. R1(config-vpdn)#exit 
  1. ATM1 初始配置  
  2. ATM1(config)#username libin password libin   配置用戶(hù)名和密碼,必須和ATM1的相同  
  3. ATM1(config)#interface loopback 0   
  4. ATM1(config-if)#ip add 1.1.1.1 255.0.0.0  
  5. 配置 VPDN  
  6. ATM1(config-if)#EXIT  
  7. ATM1(config)#vpdn enable   開(kāi)啟虛擬撥號(hào)網(wǎng)VPDN  
  8. ATM1(config)#vpdn-group ADSL 定義組 名為ADSL   
  9. ATM1(config-vpdn)#request-dialin 請(qǐng)求接入  
  10. ATM1(config-vpdn-req-in)#proto  
  11. ATM1(config-vpdn-req-in)#protocol pppoe 協(xié)議配成 pppoe  
  12. % PPPoE config from vpdn-group is converted to pppoe-profile based config.  
  13. % Continue PPPoE configuration under 'bba-group pppoe global'  
  14. ATM1(config-vpdn-req-in)#exit  
  15. ATM1(config-vpdn)#exit  
  16. ATM1(config)#  
  17. 配置BBA-Group  
  18. ATM1(config)#bba-group pppoe global   
  19. ATM1(config-bba-group)#virtual-template 1 虛擬摸版定義為1  
  20. ATM1(config-bba-group)#exit  
  21. 配置Virtual-Template  
  22. ATM1(config)#interface virtual-template 1 進(jìn)入  
  23. ATM1(config-if)#ip unnumbered loopback 0   借用loopback 0上的ip  
  24. ATM1(config-if)#encapsulation ppp 封狀成ppp  
  25. ATM1(config-if)#ppp authentication chap 認(rèn)證為 chap  
  26. ATM1(config-if)#peer de  
  27. ATM1(config-if)#peer default ip add pool cisco   從名為cisco 里分配ip 地址 

現(xiàn)在開(kāi)始檢查是否成功#p#

在 PC ping 1.1.1.1 和ping 1.1.1.2

  1. C:\Documents and Settings\norvel>ping 1.1.1.1  
  2.  
  3. Pinging 1.1.1.1 with 32 bytes of data:  
  4.  
  5. Reply from 1.1.1.1: bytes=32 time=2046ms TTL=255 
  6. Reply from 1.1.1.1: bytes=32 time=1220ms TTL=255 
  7. Reply from 1.1.1.1: bytes=32 time=2342ms TTL=255 
  8. Reply from 1.1.1.1: bytes=32 time=2760ms TTL=255 
  9.  
  10. Ping statistics for 1.1.1.1:  
  11.     Packets: Sent = 4Received = 4Lost = 0 (0% loss),  
  12. Approximate round trip times in milli-seconds:  
  13.     Minimum = 1220msMaximum = 2760msAverage = 2092ms 
  14.  
  15. C:\Documents and Settings\norvel>ping 1.1.1.2  
  16.  
  17. Pinging 1.1.1.4 with 32 bytes of data:  
  18.  
  19. Reply from 1.1.1.2: bytes=32 time<1ms TTL=128 
  20. Reply from 1.1.1.2: bytes=32 time<1ms TTL=128 
  21. Reply from 1.1.1.2: bytes=32 time<1ms TTL=128 
  22. Reply from 1.1.1.2: bytes=32 time<1ms TTL=128 
  23.  
  24. Ping statistics for 1.1.1.4:  
  25.     Packets: Sent = 4Received = 4Lost = 0 (0% loss),  
  26. Approximate round trip times in milli-seconds:  
  27.     Minimum = 0msMaximum = 0msAverage = 0ms 

好了!可以看到,可以通了

然后PC上在ipconfig/all

  1. C:\Documents and Settings\norvel>ipconfig/all  
  2.  
  3. Windows IP Configuration  
  4.  
  5.         Host Name . . . . . . . . . . . . : AC713A0BC024420  
  6.         Primary Dns Suffix . . . . . . . :  
  7.         Node Type . . . . . . . . . . . . : Unknown  
  8.         IP Routing Enabled. . . . . . . . : No  
  9.         WINS Proxy Enabled. . . . . . . . : No  
  10.         DNS Suffix Search List. . . . . . : Testbed  

Ethernet adapter 本地連接:

  1.         Connection-specific DNS Suffix . : Testbed  
  2.         Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Et  
  3. ernet NIC  
  4.         Physical Address. . . . . . . . . : 00-80-45-29-91-0D  
  5.         Dhcp Enabled. . . . . . . . . . . : Yes  
  6.         Autoconfiguration Enabled . . . . : Yes  
  7.         IP Address. . . . . . . . . . . . : 172.16.0.12  
  8.         Subnet Mask . . . . . . . . . . . : 255.255.0.0  
  9.         Default Gateway . . . . . . . . . : 172.16.0.1  
  10.         DHCP Server . . . . . . . . . . . : 172.16.0.1  
  11.         DNS Servers . . . . . . . . . . . : 218.30.19.40  
  12.                                             61.134.1.4  
  13.         NetBIOS over Tcpip. . . . . . . . : Disabled  
  14.         Lease Obtained. . . . . . . . . . : 2008年3月21日 星期五 17:00:29  
  15.         Lease Expires . . . . . . . . . . : 2008年3月22日 星期六 17:00:29 

PPP adapter 寬帶連接 2:

  1. Connection-specific DNS Suffix . :  
  2. Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface  
  3. Physical Address. . . . . . . . . : 00-53-45-00-00-00  
  4. Dhcp Enabled. . . . . . . . . . . : No  
  5. IP Address. . . . . . . . . . . . : 1.1.1.2 可以看到已經(jīng)分配到了  
  6. Subnet Mask . . . . . . . . . . . : 255.255.255.255  
  7. Default Gateway . . . . . . . . . : 1.1.1.2 默認(rèn)網(wǎng)關(guān)也成了次ip  
  8. NetBIOS over Tcpip. . . . . . . . : Disabled 

 

責(zé)任編輯:佟健 來(lái)源: hi.baidu.com
相關(guān)推薦

2020-02-10 19:42:01

CPIP 協(xié)議,

2010-10-08 15:05:00

無(wú)線(xiàn)路由設(shè)置

2012-02-20 21:59:08

無(wú)線(xiàn)路由設(shè)置

2011-11-04 16:49:26

Action BarAndroid

2011-04-27 17:05:39

2021-09-30 09:59:23

OSPF網(wǎng)絡(luò)協(xié)議網(wǎng)絡(luò)技術(shù)

2021-02-23 08:10:18

Nginx反向代理負(fù)載均衡器

2010-01-13 17:07:21

防輻射機(jī)箱選購(gòu)

2021-09-26 07:38:39

組合問(wèn)題數(shù)據(jù)結(jié)構(gòu)算法

2010-06-29 14:38:14

Linux服務(wù)器

2010-08-03 09:17:00

2013-05-23 11:16:28

大數(shù)據(jù)技術(shù)大數(shù)據(jù)AdTime

2010-07-05 15:33:49

2010-09-09 09:52:03

Linux服務(wù)器

2010-07-14 09:55:12

2010-08-25 09:09:58

2010-10-15 10:01:19

無(wú)線(xiàn)網(wǎng)絡(luò)構(gòu)建

2010-08-06 10:00:05

負(fù)載均衡

2020-11-18 09:25:39

Docker

2020-12-22 10:57:36

DockerLinux程序員
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)