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# 


相关内容

    暂无相关文章