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

PPPOE SERVER完全指南

網(wǎng)絡(luò) 網(wǎng)絡(luò)管理
這里我們主要介紹一下PPPOE SERVER的相關(guān)設(shè)置。我們會對整個配置過程做一個具體的介紹,具體的步驟和命令代碼還望對大家有一個參考作用。

下面我們這很對PPPOE SERVER的內(nèi)容做了具體的介紹和講解。那么首先我們會對整個實驗進(jìn)行一個說明,然后再細(xì)化講解一下實驗過程。從中所包含的一些命令以及代碼,還望大家能夠多關(guān)注一下。

1,實驗說明

Cisco 1721來模擬PPPOE  SERVER

PIX501來模擬PPPOE Client

2,實驗過程

配置CISCO 1721為PPPOE SERVER

  1. //首先底層PPPOE SERVER配置,這沒什么說的,大家已經(jīng)非常熟悉了~~  
  2. Router(config)#no ip domain-lookup  
  3. Router(config)#line console 0  
  4. Router(config-line)#exec-timeout 0 0  
  5. Router(config-line)#logg syn  
  6. Router(config-line)#host PPPOE_SERVER  
  7. PPPOE_SERVER(config)#int e0/0  
  8. PPPOE_SERVER(config-if)#ip add 192.168.0.1 255.255.255.0  
  9. PPPOE_SERVER(config-if)#no sh  
  10. PPPOE_SERVER(config-if)#pppoe enable //接口下開啟PPPOE 會話功能  
  11. PPPOE_SERVER(config-if)#exit  
  12. PPPOE_SERVER(config)#vpdn enable //全局開啟VPDN服務(wù)  
  13. PPPOE_SERVER(config)#vpdn-group PPPOE  //創(chuàng)建VPDN撥號組,此處我設(shè)置的名稱為PPPOE,注意這里創(chuàng)建的組名要和PIX上啟用的VPDN組名要一致,不然pppoe session會話失敗  
  14. PPPOE_SERVER(config-vpdn)#accept-dialin //接受撥號請求  
  15. PPPOE_SER(config-vpdn-acc-in)#protocol pppoe //指定會話協(xié)議為pppoe  
  16. PPPOE_SER(config-vpdn-acc-in)#virtual-template 1 //創(chuàng)建虛模板 1,表示第幾個虛模板,創(chuàng)建虛模板之后,會立即看見Virtual-Access1, changed state to up  
  17. PPPOE_SER(config-vpdn-acc-in)#end  
  18. *Mar  1 00:06:27.707: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up  
  19. *Mar  1 00:06:28.707: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up 
  1. PPPOE_SERVER#conf t  
  2. Enter configuration commands, one per line.  End with CNTL/Z.  
  3. PPPOE_SERVER(config)#int virtual-template 1 //進(jìn)入虛模板1  
  4. PPPOE_SERVER(config-if)#ip unnumbered e0/0 //此處不要給虛模板配置IP地址,建議使用ip unnumbered 向物理接口E0/0借用,因為E0/0接口為outside接口,已開啟pppoe enable  
  5. PPPOE_SERVER(config-if)#ppp authentication pap //指定ppp認(rèn)證方式為pap,采用認(rèn)證方式為PAP,認(rèn)證過程會話用戶名和密碼為明文,你可以采用chap  
  6. PPPOE_SERVER(config-if)#peer default ip address pool ADSL //指定地址池的名稱為ADSL,可以隨意指定名稱,但要和下面的地址池名稱一致  
  7. PPPOE_SERVER(config-if)#exit  
  8. PPPOE_SERVER(config)#ip local pool ADSL 200.0.0.1 200.0.0.10 //指定地址池的地址范圍,這個地址范圍必須是連續(xù)的  
  9. PPPOE_SERVER(config)#username wangwanli password wangwanli //指定PPPOE SERVER撥號的用戶名和密碼  
  10. PPPOE_SERVER(config)#end 

到此PPPOE SERVER上配置已全部完成 #p#

PPPOE SERVER下一步配置:PIX上進(jìn)行配置

  1. pixfirewall> enable  
  2. Password:  
  3. pixfirewall#  
  4. pixfirewall# conf t  
  5. pixfirewall(config)# vpdn group PPPOE request dialout pppoe //指定vpdn會話名稱PPPOE,這個名稱與pppoe server上的VPDN組名是一致的  
  6. pixfirewall(config)# vpdn group PPPOE localname wangwanli //指定vpdn本地用戶名  
  7. pixfirewall(config)# vpdn ?  
  8. configure mode commands/options:  
  9. group     Keyword to specify a group name  
  10. username  Keyword to configure username  
  11. pixfirewall(config)# vpdn group PPPOE ppp authentication pap //指定ppp認(rèn)證方式為pap,與pppoe server認(rèn)證方式一致  
  12. pixfirewall(config)# vpdn username wangwanli password wangwanli //指定撥號的用戶名和密碼  
  13. pixfirewall(config)# int e1  
  14. pixfirewall(config-if)# no sh //激活接口  
  15. pixfirewall(config-if)# nameif outside //定義接口為outside,默認(rèn)的安全級別為0  
  16. INFO: Security level for "outside" set to 0 by default.  
  17. pixfirewall(config-if)# ip address pppoe setroute //從pppoe 服務(wù)器獲得IP地址  
  18. pixfirewall(config-if)# end 

到此PIX上的配置已經(jīng)完成,如下是調(diào)試現(xiàn)象 #p#

pppoe server PIX調(diào)試:

  1. pixfirewall# debug ppp auth  //打開ppp 認(rèn)證調(diào)試  
  2. pixfirewall# debug pppoe event //打開pppoe server撥號事件請求  
  3. debug pppoe event enabled at level 1  
  4. pixfirewall# show ip address outside ?  
  5. dhcp   Show DHCP lease information  
  6. pppoe  Show PPPoE interface information  
  7. |      Output modifiers  
  8. <cr> 
  9. pixfirewall# show ip address outside pppoe  
  10. //PIX上完成撥號之后,查看得到的IP地址  
  11. PPPoE Assigned IP addr: 200.0.0.1 255.255.255.255 on Interface: outside  
  12. Remote IP addr: 192.168.0.1  
  13. pixfirewall# show route  
  14.  
  15. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP  
  16. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area  
  17. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2  
  18. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP  
  19. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area  
  20. * - candidate default, U - per-user static route, o - ODR  
  21. P - periodic downloaded static route  
  22.  
  23. Gateway of last resort is 192.168.0.1 to network 0.0.0.0  
  24.  
  25. S*   0.0.0.0 0.0.0.0 [1/0] via 192.168.0.1, outside  
  26. //查看pppoe server路由表自動生成一條缺省路由  
  27. pixfirewall# show interface ip brief  
  28. Interface                  IP-Address      OK? Method Status                Protocol  
  29. Ethernet0                  unassigned      YES unset  administratively down up  
  30. Ethernet1                  200.0.0.1       YES manual up                    up  
  31. Ethernet2                  unassigned      YES unset  up                    up  
  32. Ethernet3                  unassigned      YES unset  administratively down up  
  33. pixfirewall# ping 192.168.0.1  
  34. Type escape sequence to abort.  
  35. Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:  
  36. !!!!!  
  37. Success rate is 100 percent (5/5), round-trip min/avg/max = 10/20/50 ms  
  38. //通過ping測試PIX與PPPOE SERVER是可以正常通信的  
  39. pixfirewall# sh ip  
  40. //PIX上接口IP地址信息  
  41. System IP Addresses:  
  42. Interface                Name                   IP address      Subnet mask     Method  
  43. Ethernet1                outside                200.0.0.1       255.255.255.255 manual  
  44. Current IP Addresses:  
  45. Interface                Name                   IP address      Subnet mask     Method  
  46. Ethernet1                outside                200.0.0.1       255.255.255.255 manua  
  47.  
  48. PPPOE_SERVER#show pppoe session all //查看pppoe session 所有會話詳細(xì)信息  
  49. Total PPPoE sessions 1  

PPPoE Session Information

  1. session id: 1  
  2. local MAC address: cc9f.0788.0000, remote MAC address: 00aa.0001.0102  
  3. virtual access interface: Vi1.1, outgoing interface: Et0/0  
  4. 117 packets sent, 117 received  
  5. 1915 bytes sent, 1934 received 

現(xiàn)在我把PIX上的E1接口重新關(guān)閉之后,再打開,再來觀察一下PIX上的pppoe 的會話過程與PPPOE SERVER上的看到的pppoe 會話的四個過程,PADI---PADO-PADR-PADS 四個過程#p#

pppoe server會話過程:

  1. pixfirewall# conf t  
  2. pixfirewall(config)# int e1  
  3. pixfirewall(config-if)# sh  
  4. PPPoE: Shutting down client session  
  5. PPPoE: padi timer expired  
  6. PPPoE: padi timer expired 
  1. pixfirewall(config-if)# no sh  
  2. pixfirewall# PPPoE: send_padi:(Snd) Dest:ffff.ffff.ffff Src:00aa.0001.0102 Type:0x8863=PPPoE-Discovery  
  3. //開始發(fā)送廣播,尋找PPPOE SERVER  
  4. PPPoE: Ver:1 Type:1 Code:09=PADI Sess:0 Len:12  
  5. PPPoE: Type:0101:SVCNAME-Service Name Len:0  
  6. PPPoE: Type:0103:HOSTUNIQ-Host Unique Tag Len:4  
  7. PPPoE: 00000001  
  8. PPPoE: PPPoE:(Rcv) Dest:00aa.0001.0102 Src:cc9f.09e4.0000 Type:0x8863=PPPoE-Discovery  
  9. PPPoE: Ver:1 Type:1 Code:07=PADO Sess:0 Len:48  
  10. PPPoE: Type:0101:SVCNAME-Service Name Len:0  
  11. PPPoE: Type:0103:HOSTUNIQ-Host Unique Tag Len:4  
  12. PPPoE: 00000001  
  13. PPPoE: Type:0102:ACNAME-AC Name Len:12  
  14. PPPoE: PPPOE_Server 
  1. PPPoE: Type:0104:ACCOOKIE-AC Cookie Len:16  
  2. PPPoE: 9682A160  
  3. PPPoE: 3EDB1E03  
  4. PPPoE: DDDF8016  
  5. PPPoE: 2E032E1C  
  6. PPPoE: 

PPPoE: PADO

  1. PPPoE: send_padr:(Snd) Dest:cc9f.09e4.0000 Src:00aa.0001.0102 Type:0x8863=PPPoE-Discovery  
  2. PPPoE: Ver:1 Type:1 Code:19=PADR Sess:0 Len:48  
  3. PPPoE: Type:0101:SVCNAME-Service Name Len:0  
  4. PPPoE: Type:0103:HOSTUNIQ-Host Unique Tag Len:4  
  5. PPPoE: 00000001  
  6. PPPoE: Type:0102:ACNAME-AC Name Len:12  
  7. PPPoE: PPPOE_Server  
  8.  
  9. PPPoE: Type:0104:ACCOOKIE-AC Cookie Len:16  
  10. PPPoE: 9682A160  
  11. PPPoE: 3EDB1E03  
  12. PPPoE: DDDF8016  
  13. PPPoE: 2E032E1C  

PPPoE:

  1. PPPoE: PPPoE:(Rcv) Dest:00aa.0001.0102 Src:cc9f.09e4.0000 Type:0x8863=PPPoE-Discovery  
  2. PPPoE: Ver:1 Type:1 Code:65=PADS Sess:3 Len:48  
  3. PPPoE: Type:0101:SVCNAME-Service Name Len:0  
  4. PPPoE: Type:0103:HOSTUNIQ-Host Unique Tag Len:4  
  5. PPPoE: 00000001  
  6. PPPoE: Type:0102:ACNAME-AC Name Len:12  
  7. PPPoE: PPPOE_Server 
  1. PPPoE: Type:0104:ACCOOKIE-AC Cookie Len:16  
  2. PPPoE: 9682A160  
  3. PPPoE: 3EDB1E03  
  4. PPPoE: DDDF8016  
  5. PPPoE: 2E032E1C  
  6. PPPoE:  
  7. PPPoE: PADS  
  8. PPPoE: IN PADS from PPPoE tunnel  
  9. PPPoE: Opening PPP link and starting negotiations. 

到這里PIX上的PPPOE SERVER會話已經(jīng)結(jié)束。#p#

已經(jīng)得到從PPPOE SERVER上分配的地址PPPOE SERVER上開啟debug之后,收到PIX上的PPPOE 會話請求

  1. PPPOE_SERVER#  
  2. *Mar  1 00:34:17.583: PPPoE 0: I PADI  R:00aa.0001.0102 L:ffff.ffff.ffff Et0/0  
  3. *Mar  1 00:34:17.583: PPPoE 0: O PADO, R:00aa.0001.0102 L:cc9f.0788.0000 Et0/0  
  4. *Mar  1 00:34:17.639: PPPoE 0: I PADR  R:00aa.0001.0102 L:cc9f.0788.0000 Et0/0  
  5. *Mar  1 00:34:17.639: PPPoE : encap string prepared  
  6. *Mar  1 00:34:17.639: [2]PPPoE 2: Access IE handle allocated  
  7. *Mar  1 00:34:17.639: [2]PPPoE 2: pppoe SSS switch updated  
  8. *Mar  1 00:34:17.639: [2]PPPoE 2: AAA unique ID allocated  
  9. *Mar  1 00:34:17.643: [2]PPPoE 2: No AAA accounting method list  
  10. *Mar  1 00:34:17.643: [2]PPPoE 2: Service request sent to SSS  
  11. *Mar  1 00:34:17.643: [2]PPPoE 2: Created  R:cc9f.0788.0000 L:00aa.0001.0102 Et0/0  
  12. *Mar  1 00:34:17.647: [2]PPPoE 2: State REQ_NASPORT    Event MORE_KEYS  
  13. *Mar  1 00:34:17.647: [2]PPPoE 2: O PADS  R:00aa.0001.0102 L:cc9f.0788.0000 Et0/0  
  14. *Mar  1 00:34:17.651: ppp2 PPP: Using default call direction  
  15. *Mar  1 00:34:17.651: ppp2 PPP: Treating connection as a dedicated line  
  16. *Mar  1 00:34:17.651: ppp2 PPP: Session handle[73000003] Session id[2]  
  17. *Mar  1 00:34:17.651: ppp2 PPP: Authorization required  
  18. *Mar  1 00:34:17.655: [2]PPPoE 2: State START_PPP    Event DYN_BIND  
  19. *Mar  1 00:34:17.655: [2]PPPoE 2: data path set to PPP 
  1. PPPOE_SERVER#  
  2. *Mar  1 00:34:20.679: ppp2 PAP: I AUTH-REQ id 1 len 24 from "wangwanli" 
  3. *Mar  1 00:34:20.679: ppp2 PAP: Authenticating peer wangwanli  
  4. *Mar  1 00:34:20.687: ppp2 PPP: Sent PAP LOGIN Request  
  5. *Mar  1 00:34:20.687: ppp2 PPP: Received LOGIN Response PASS  
  6. *Mar  1 00:34:20.691: [2]PPPoE 2: State LCP_NEGO    Event PPP_LOCAL  
  7. *Mar  1 00:34:20.691: PPPoE 2/SB: Sent vtemplate request on base Vi1  
  8. *Mar  1 00:34:20.699: [2]PPPoE 2: State CREATE_VA    Event VA_RESP  
  9. *Mar  1 00:34:20.699: [2]PPPoE 2: Vi1.1 interface obtained  
  10. *Mar  1 00:34:20.699: [2]PPPoE 2: State PTA_BIND    Event STAT_BIND  
  11. *Mar  1 00:34:20.699: [2]PPPoE 2: data path set to Virtual Acess 
  1. PPPOE_SERVER#  
  2. *Mar  1 00:34:20.703: [2]PPPoE 2: Connected PTA  
  3. *Mar  1 00:34:20.707: Vi1.1 PPP: Sent LCP AUTHOR Request  
  4. *Mar  1 00:34:20.707: Vi1.1 PPP: Sent IPCP AUTHOR Request  
  5. *Mar  1 00:34:20.711: Vi1.1 LCP: Received AAA AUTHOR Response PASS  
  6. *Mar  1 00:34:20.711: Vi1.1 IPCP: Received AAA AUTHOR Response PASS  
  7. *Mar  1 00:34:20.711: Vi1.1 PAP: O AUTH-ACK id 1 len 5  
  8. //PAP認(rèn)證通過 
  1. pixfirewall# show vpdn session pppoe state  
  2. PPPoE Session Information (Total tunnels=1 sessions=1)  
  3. SessID TunID Intf     State       Last Chg  
  4. 3      1 outside  SESSION_UP  2928 secs  
  5. pixfirewall# show vpdn pppinterface //查看ppp會話,以及ppp認(rèn)證方式  
  6. PPP virtual interface id = 1  
  7. PPP authentication protocol is PAP  
  8. Server ip address is 192.168.0.1  
  9. Our ip address is 200.0.0.1  
  10. Transmitted Pkts: 122, Received Pkts: 121, Error Pkts: 0  
  11. MPPE key strength is None  
  12. MPPE_Encrypt_Pkts: 0,  MPPE_Encrypt_Bytes: 0  
  13. MPPE_Decrypt_Pkts: 0,  MPPE_Decrypt_Bytes: 0  
  14. Rcvd_Out_Of_Seq_MPPE_Pkts: 0  
  15.  
  16. pixfirewall# 

到這里,PPPOE SERVER配置就全部結(jié)束了

本文出自 “ ╬═ 劍心's Blog ═╬ ” 博客,請務(wù)必保留此出處http://hackerjx.blog.51cto.com/383839/145289

責(zé)任編輯:佟健 來源: IT實驗室
相關(guān)推薦

2010-09-16 10:14:17

PPPoE Serve

2024-06-19 08:29:28

2010-09-07 15:20:46

pppoe serve

2010-09-09 17:34:19

PPPoE Serve

2010-09-16 09:52:46

2010-09-16 10:21:47

PPPoE Serve

2010-09-07 16:08:21

PPPoE Serve

2024-11-13 09:16:13

2018-11-26 06:22:32

WiFi無線網(wǎng)絡(luò)路由器

2023-10-08 18:07:42

Kubernetes開源容器

2010-09-07 13:57:09

PPPoE Serve

2023-07-09 09:45:25

2015-07-31 10:20:13

Linux命令完全指南

2010-09-07 11:51:02

ACS SERVER認(rèn)PPPOE配置

2010-09-07 13:51:07

PPPoE Serve

2011-10-24 17:12:01

Cloud SQL

2009-12-04 19:18:04

freebsd手工配置網(wǎng)絡(luò)

2022-07-27 08:00:00

物聯(lián)網(wǎng)架構(gòu)連接設(shè)備

2022-01-17 07:22:11

Web應(yīng)用滲透

2010-09-29 17:55:57

Cacti網(wǎng)絡(luò)監(jiān)控
點贊
收藏

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