三个cisco 1841 pppoe设置案例

网络 网络管理
这里我们讲解的是cisco 1841 pppoe设置的三个案例。通过对这三个cisco 1841 pppoe设置案例的了解,相信大家对此也能够有所了解。

PPPoE的设置中,我们通常会结合一些路由等设备进行调试。那么这里我们就讲解三个关于cisco 1841 pppoe的设置案例,帮助大家进行一下分析,希望能够给大家提供一下有价值的参考。那么让我们看看具体的内容吧。Cisco1841路由器连接ADSL modem的PPPoE配置。

cisco 1841 pppoe设置案例一

  1. vpdn enable   
  2. no vpdn logging   
  3. !   
  4. !   
  5. interface Ethernet0/0   
  6. ip address 192.168.0.1 255.255.255.0   
  7. ip nat inside   
  8. no ip mroute-cache   
  9. !   
  10. !   
  11. !   
  12. !   
  13. interface Ethernet0/1   
  14. no ip address   
  15. pppoe enable   
  16. pppoe-client dial-pool-number 1   
  17. !   
  18. interface Dialer1   
  19. ip address negotiated   
  20. ip nat outside   
  21. ip mtu 1492   
  22. encapsulation ppp   
  23. no ip mroute-cache   
  24. dialer pool 1   
  25. dialer-group 1   
  26. ppp authentication pap   
  27. ppp pap sent-username dg48907653@163.gd password xxxxxxxx  
  28. !   
  29. ip classless   
  30. no ip http server   
  31. !   
  32. dialer-list 1 protocol ip permit   
  33. ip nat inside source list 1 interface Dialer1 overload  
  34. ip route 0.0.0.0 0.0.0.0 dialer1   
  35. access-list 1 permit 192.168.0.0 0.0.0.255   
  36. !   
  37. line con 0   
  38. exec-timeout 0 0   
  39. transport input none   
  40. line vty 0 4   
  41. login   
  42. !   
  43. end 

 #p#

cisco 1841 pppoe设置案例二

经典思科1841 ADSL的成功设置+DHCP

路由器下面的客户端全是XP。都是设为自动获取IP 地址。

现像是在客户端上IPCONFIG   地址是0。0。0。0

没有获得指定的IP地址,

系统也没有获得169网段的地址。

  1. cisco1841#sh run  
  2. Building configuration...  
  3.  
  4. Current configuration : 2970 bytes  
  5. !  
  6. version 12.4  
  7. service timestamps debug datetime msec  
  8. service timestamps log datetime msec  
  9. no service password-encryption  
  10. service dhcp  
  11. !  
  12. hostname cisco1841  
  13. !  
  14. boot-start-marker  
  15. boot-end-marker  
  16. !  
  17. logging buffered 51200 warnings  
  18. !  
  19. no aaa new-model  
  20. !  
  21. resource policy  
  22. !  
  23. mmi polling-interval 60  
  24. no mmi auto-configure  
  25. no mmi pvc  
  26. mmi snmp-timeout 180  
  27. ip subnet-zero  
  28. ip cef  
  29. !  
  30. !  
  31. ip dhcp database 123  
  32. no ip dhcp use vrf connected  
  33. ip dhcp excluded-address 192.168.1.1  
  34. ip dhcp ping packets 0  
  35. !  
  36. ip dhcp pool 123  
  37.    network 192.168.1.0 255.255.255.0  
  38.    default-router 192.168.1.1   
  39.    dns-server 202.106.0.20 202.106.46.151   
  40. !  
  41. !  
  42. no ip domain lookup  
  43. ip domain name yourdomain.com  
  44. ip dhcp-server 192.168.1.1  
  45. vpdn enable  
  46. vpdn ip udp ignore checksum  
  47. !  
  48. vpdn-group pppoe  
  49. request-dialin  
  50. protocol pppoe  
  51. !  
  52. !  
  53. username cisco privilege 15 secret 5 $1$ZKUk$YoVcdG31aDaIAn/mdK9qL0  
  54. !  
  55. !  
  56. !  
  57. interface FastEthernet0/0  
  58. description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE 0$  
  59. ip address 192.168.1.1 255.255.255.0  
  60. ip access-group 100 in  
  61. ip nat inside  
  62. duplex auto  
  63. speed auto  
  64. !  
  65. interface FastEthernet0/1  
  66. no ip address  
  67. duplex auto  
  68. speed auto  
  69. pppoe enable  
  70. pppoe-client dial-pool-number 1  
  71. !  
  72. interface Dialer1  
  73. ip address negotiated  
  74. ip access-group 100 in  
  75. ip mtu 1492  
  76. ip nat outside  
  77. encapsulation ppp  
  78. dialer pool 1  
  79. dialer vpdn  
  80. dialer-group 1  
  81. no cdp enable  
  82. ppp pap sent-username 1234567 password 0 1234567   
  83. !  
  84. ip classless  
  85. ip route 0.0.0.0 0.0.0.0 Dialer1  
  86. !  
  87. no ip http server  
  88. ip http authentication local  
  89. ip http timeout-policy idle 5 life 86400 requests 10000  
  90. ip nat inside source list 1 interface Dialer1 overload  
  91. !  
  92. access-list 1 permit any  
  93. access-list 100 deny     
  94. access-list 100 deny     
  95. access-list 100 permit ip any any  
  96. dialer-list 1 protocol ip permit  
  97. !  
  98. control-plane  
  99. !  
  100. banner login ^C  
  101. -----------------------------------------------------------------------  
  102. Cisco Router and Security Device Manager (SDM) is installed on this  
  103.  
  104. device.   
  105. This feature requires the one-time use of the username "cisco"   
  106. with the password "cisco".  
  107.  
  108. Please change these publicly known initial credentials using SDM or the  
  109.  
  110. IOS CLI.   
  111. Here are the Cisco IOS commands.  
  112.  
  113. username <myuser> privilege 15 secret 0 <mypassword> 
  114. no username cisco  
  115.  
  116. Replace <myuser> and <mypassword> with the username and password you  
  117.  
  118. want to use.  
  119.  
  120. For more information about SDM please follow the instructions in the  
  121.  
  122. QUICK START   
  123. GUIDE for your router or go to http://www.cisco.com/go/sdm   
  124. -----------------------------------------------------------------------  
  125. ^C  
  126. !  
  127. line con 0  
  128. timeout login response 200  
  129. login local  
  130. line aux 0  
  131. line vty 0 4  
  132. timeout login response 200  
  133. privilege level 15  
  134. password gbicc_cisco  
  135. login  
  136. transport input telnet  
  137. line vty 5 15  
  138. privilege level 15  
  139. password gbic_cisco  
  140. login  
  141. transport input telnet  
  142. !  
  143. end  
  144.  
  145. cisco1841# 

#p#cisco 1841 pppoe设置案例三

假设E0接内网,E1接ADSL上外网

第一步:配置vpdn

  1. vpdn enable(启用路由器的虚拟专用拨号网络---vpnd)   
  2. vpdn-group office(建立一个vpdn组,)   
  3. request-dialin(初始化一个vpnd tunnel,建立一个请求拨入的vpdn子组,)   
  4. protocol pppoe(vpdn子组使用pppoe建立会话隧道)  

第二步: 配置路由器连接adsl modem的接口

  1. interface Ethernet1   
  2. no ip address   
  3. pppoe enable允许以太接口运行pppoe   
  4. pppoe-client dial-pool-number 1将以太接口的pppoe拨号客户端加入拨号池1  

第三步:配置逻辑拨号接口:

  1. interface Dialer1   
  2. ip address negotiated从adsl服务商动态协商得到ip地址   
  3. ip nat outside为该接口启用NAT   
  4. encapsulation ppp为该接口封装ppp协议   
  5. dialer pool 1该接口使用1号拨号池进行拨号   
  6. dialer-group 1该命令对于pppoe是意义不大的   
  7. ppp authentication pap callin启用ppp pap验证   
  8. ppp pap sent-username xxxxxxx password 0 yyyyyyy使用已经申请的用户名和口令  

第四步:配置内部网络接口

  1. interface Ethernet0(内部网络接口)   
  2. ip address 10.1.1.1 255.255.255.0   
  3. ip nat inside为该接口启用NAT  

第五步:配置路由器为内部网络主机提供dhcp服务

  1. ip dhcp excluded-address 10.1.1.1   
  2. ip dhcp pool ABC   
  3. import all(导入dns和wins server)   
  4. network 10.1.1.0 255.255.255.0   
  5. default-router 10.1.1.1  

第六步:配置NAT:

  1. access-list 1 permit 10.1.1.0 0.0.0.255   
  2. ip nat inside source list 1 interface Dialer1 overload  

第七步:配置缺省路由

  1. ip route 0.0.0.0 0.0.0.0 Dialer1 

 

责任编辑:佟健 来源: hi.baidu.com
相关推荐

2010-09-16 13:16:20

CISCO PPPoE

2010-09-29 16:04:54

Cisco IOS D

2010-08-04 14:04:03

solaris nfs

2010-08-02 23:40:42

Linux NFS

2011-07-10 14:23:58

2012-05-09 09:49:57

移动支付

2011-03-30 13:03:14

数据库营销

2022-03-07 14:24:05

供应链分析大数据数据分析

2010-04-22 17:10:47

网络负载均衡

2020-06-11 09:00:27

SDN网络架构网络

2009-10-27 09:59:17

VB.NET动态代码

2016-11-28 08:56:15

透析大数据核心

2010-09-07 14:42:28

2010-09-16 13:03:02

PPPoE协议配置

2023-04-26 11:14:11

IT领导者远程工作

2010-09-06 16:07:05

ros pppoe设置

2010-09-06 13:50:01

PPPOEDHCP

2009-10-23 16:53:16

VB.NET语法规则

2010-09-07 14:10:26

PPPoE接口

2010-09-16 15:11:58

FreeBSD PPP
点赞
收藏

51CTO技术栈公众号