成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

明明白白學習PPPOE配置

網絡 網絡管理
這里我們主要討論一下PPPOE server 和Cisco PPPOE的配置內容。那么我們會將每一個步驟進行一下講解,具體代碼也會進行分析。

在配置方面,PPPoE協議總是有很多可圈可點之處。下面我們就來了解一下PPPOE server 和Cisco PPPOE的配置內容。首先在自己的電腦上創建一個寬帶連接,名為libin password libin,然后在ATM1上做配置 。

先在 R1上配,pppoe客戶端

  1. R1(config)# vpdn enable 開啟虛擬撥號網VPDN   
  2. R1(config)#vpdn-group CISCO 定義組 名為CISCO   
  3. R1(config-vpdn)#request-dialin   請求接入  
  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 進入  
  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 認證為 chap  
  5. ATM1(config-if)#peer de  
  6. ATM1(config-if)#peer default ip add pool cisco   從名為cisco 里分配ip 地址 

現在開始檢查是否成功

  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   配置用戶名和密碼,必須和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   開啟虛擬撥號網VPDN  
  8. ATM1(config)#vpdn-group ADSL 定義組 名為ADSL   
  9. ATM1(config-vpdn)#request-dialin 請求接入  
  10. ATM1(config-vpdn-req-in)#proto  
  11. ATM1(config-vpdn-req-in)#protocol pppoe 協議配成 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 進入  
  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 認證為 chap  
  26. ATM1(config-if)#peer de  
  27. ATM1(config-if)#peer default ip add pool cisco   從名為cisco 里分配ip 地址 

現在開始檢查是否成功#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 可以看到已經分配到了  
  6. Subnet Mask . . . . . . . . . . . : 255.255.255.255  
  7. Default Gateway . . . . . . . . . : 1.1.1.2 默認網關也成了次ip  
  8. NetBIOS over Tcpip. . . . . . . . : Disabled 

 

責任編輯:佟健 來源: hi.baidu.com
相關推薦

2020-02-10 19:42:01

CPIP 協議,

2012-02-20 21:59:08

無線路由設置

2011-11-04 16:49:26

Action BarAndroid

2010-10-08 15:05:00

無線路由設置

2011-04-27 17:05:39

2021-02-23 08:10:18

Nginx反向代理負載均衡器

2021-09-30 09:59:23

OSPF網絡協議網絡技術

2010-08-03 09:17:00

2010-01-13 17:07:21

防輻射機箱選購

2013-05-23 11:16:28

大數據技術大數據AdTime

2021-09-26 07:38:39

組合問題數據結構算法

2010-06-29 14:38:14

Linux服務器

2010-07-05 15:33:49

2010-08-25 09:09:58

2010-10-15 10:01:19

無線網絡構建

2010-09-09 09:52:03

Linux服務器

2010-07-14 09:55:12

2010-08-06 10:00:05

負載均衡

2020-12-22 10:57:36

DockerLinux程序員

2020-11-18 09:25:39

Docker
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 日韩精品一区二区三区久久 | 久久精品国产一区二区三区不卡 | 国产精品一区二区三区久久久 | 欧美成视频 | 伊人天堂网 | www.com久久久 | 午夜精品一区二区三区在线观看 | 成年人视频在线免费观看 | 国产探花在线精品一区二区 | 亚洲成人精品一区二区 | 亚洲视频一区二区三区 | 高清一区二区三区 | 国产精品高潮呻吟 | 成人精品一区二区三区中文字幕 | 日韩一区二区在线播放 | 久久久久久久久精 | 九九九久久国产免费 | 精品久久久久久久久久久久 | 国产精彩视频在线观看 | 中文字幕视频在线看5 | 丝袜毛片 | 97视频在线免费 | 亚洲成人免费观看 | 国产综合欧美 | 产真a观专区 | 欧美综合一区 | 久久精品无码一区二区三区 | 久草在线 | 奇米影视77| 国产精品日韩一区二区 | 午夜电影网站 | 二区av| 中文字幕亚洲区一区二 | 日韩中文字幕在线观看视频 | 日韩一区二区久久 | yiren22 亚洲综合 | 欧美成人aaa级毛片在线视频 | 精品欧美一区二区精品久久久 | 精品国产乱码久久久久久图片 | 日本电影韩国电影免费观看 | 一区中文字幕 |