PPPoE Server设置指南
创始人
2024-07-14 03:40:55
0

我们知道跟PPP协议类似的以太网PPPoE设置是我们在对组网协议学习中的重点。那么这里我们主要对PPPoE Server设置(针对路由器)的相关内容进行一下具体的阐述。那么这里就先看看具体的拓扑图。

PPPoE Server设置网络拓扑图

PPPoE Server设置命令如下:

  1. Server configuration  
  2. R2#sh running-config  
  3. Building configuration...  
  4. Current configuration : 920 bytes  
  5. !  
  6. version 12.2  
  7. service timestamps debug datetime msec  
  8. service timestamps log datetime msec  
  9. no service password-encryption  
  10. !  
  11. hostname R2  
  12. !  
  13. !  
  14. username cisco password 0 cisco  
  15. memory-size iomem 15  
  16. ip subnet-zero  
  17. !  
  18. !  
  19. !  
  20. vpdn enable  
  21. !  
  22. vpdn-group 1  
  23. accept-dialin  
  24. protocol pppoe  
  25. virtual-template 1  
  26. !  
  27. !  
  28. !  
  29. !  
  30. voice call carrier capacity active  
  31. !  
  32. !  
  33. !  
  34. !  
  35. !  
  36. !  
  37. !  
  38. !  
  39. !  
  40. mta receive maximum-recipients 0  
  41. !  
  42. !  
  43. !  
  44. !  
  45. interface Loopback0  
  46. ip address 10.0.0.1 255.255.255.0  
  47. !  
  48. interface FastEthernet0/0  
  49. no ip address  
  50. duplex auto  
  51. speed auto  
  52. pppoe enable  
  53. !  
  54. interface FastEthernet0/1  
  55. no ip address  
  56. shutdown  
  57. duplex auto  
  58. speed auto  
  59. !  
  60. interface Virtual-Template1  
  61. ip unnumbered Loopback0  
  62. peer default ip address pool cisco  
  63. ppp authentication chap  
  64. !  
  65. ip local pool cisco 10.0.0.10 10.0.0.20  
  66. ip classless  
  67. ip http server  
  68. !  
  69. !  
  70. !  
  71. call rsvp-sync  
  72. !  
  73. !  
  74. mgcp profile default 
  75. !  
  76. dial-peer cor custom  
  77. !  
  78. !  
  79. !  
  80. !  
  81. !  
  82. line con 0  
  83. line aux 0  
  84. line vty 0 4  
  85. !  
  86. !  
  87. end 

PPPoE Server设置的客户端:

  1. client configuration  
  2. R1#sh run  
  3. R1#sh running-config  
  4. Building configuration...  
  5. Current configuration : 870 bytes  
  6. !  
  7. version 12.2  
  8. service timestamps debug datetime msec  
  9. service timestamps log datetime msec  
  10. no service password-encryption  
  11. !  
  12. hostname R1  
  13. !  
  14. !  
  15. memory-size iomem 15  
  16. ip subnet-zero  
  17. !  
  18. !  
  19. !  
  20. vpdn enable  
  21. !  
  22. vpdn-group cisco  
  23. request-dialin  
  24. protocol pppoe  
  25. !  
  26. !  
  27. !  
  28. !  
  29. voice call carrier capacity active  
  30. !  
  31. !  
  32. !  
  33. !  
  34. !  
  35. !  
  36. !  
  37. !  
  38. !  
  39. mta receive maximum-recipients 0  
  40. !  
  41. !  
  42. !  
  43. !  
  44. interface FastEthernet0/0  
  45. no ip address  
  46. duplex auto  
  47. speed auto  
  48. pppoe enable  
  49. pppoe-client dial-pool-number 1  
  50. !  
  51. interface FastEthernet0/1  
  52. no ip address  
  53. shutdown  
  54. duplex auto  
  55. speed auto  
  56. !  
  57. interface Dialer0  
  58. ip address negotiated  
  59. encapsulation ppp  
  60. dialer pool 1  
  61. dialer-group 1  
  62. ppp chap hostname cisco  
  63. ppp chap password 0 cisco  
  64. !  
  65. ip classless  
  66. ip route 0.0.0.0 0.0.0.0 Dialer0  
  67. ip http server  
  68. !  
  69. !  
  70. !  
  71. call rsvp-sync  
  72. !  
  73. !  
  74. mgcp profile default  
  75. !  
  76. dial-peer cor custom  
  77. !  
  78. !  
  79. !  
  80. !  
  81. !  
  82. line con 0  
  83. line aux 0  
  84. line vty 0 4  
  85. !  
  86. !  
  87. end 
  1. R2#sh vpdn se  
  2. R2#sh vpdn session  
  3. %No active L2TP tunnels  
  4. %No active L2F tunnels  
  5. %No active PPTP tunnels  
  6. PPPoE Session Information Total tunnels 1 sessions 1  
  7. PPPoE Session Information  
  8. SID       RemMAC          LocMAC       Intf     VASt  OIntf         VLAN/  
  9. VP/VC  
  10. 1      c800.0874.0000  c800.0c04.0000  Vi1      UP    Fa0/0 
  1. R1#sh vpdn session  
  2. %No active L2TP tunnels  
  3. %No active L2F tunnels  
  4. %No active PPTP tunnels  
  5. PPPoE Session Information Total tunnels 1 sessions 1  
  6. PPPoE Session Information  
  7. SID       RemMAC          LocMAC       Intf     VASt  OIntf         VLAN/  
  8. VP/VC  
  9. 1      c800.0c04.0000  c800.0874.0000  Vi1      UP    Fa0/0 

好了,到这里,PPPoE Server设置的基本过程就在这里,望对大家有所帮助。

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
着眼MAC地址,解救无法享受D... 在安装了DHCP服务器的局域网环境中,每一台工作站在上网之前,都要先从DHCP服务器那里享受到地址动...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...