PPPoE Server设置指南

网络 网络管理
文章中,我们针对PPPoE Server设置(路由)进行了具体的介绍,通过文章所示的代码命令,大家可以尝试一下。

我们知道跟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设置的基本过程就在这里,望对大家有所帮助。

责任编辑:佟健 来源: IT实验室
相关推荐

2010-09-16 12:40:04

PPPOE SERVE

2010-09-07 16:08:21

PPPoE Serve

2010-09-16 10:21:47

PPPoE Serve

2010-09-07 13:51:07

PPPoE Serve

2010-09-06 15:56:12

PPPOE Serve

2010-09-07 15:20:46

pppoe serve

2010-09-06 16:07:05

ros pppoe设置

2010-09-06 13:50:01

PPPOEDHCP

2010-09-07 14:10:26

PPPoE接口

2010-09-16 15:11:58

FreeBSD PPP

2010-09-16 09:52:46

2010-09-09 17:34:19

PPPoE Serve

2010-07-06 17:47:44

PPPoE协议

2010-09-06 16:53:38

Windows PPP

2010-09-07 13:57:09

PPPoE Serve

2010-09-07 13:44:14

PPPOE服务器

2010-09-06 17:20:59

Linux PPPoE

2010-09-07 11:51:02

ACS SERVER认PPPOE配置

2010-09-07 14:42:28

2010-09-07 13:26:09

cisco 1841
点赞
收藏

51CTO技术栈公众号