51CTO技术论坛_中国领先的IT技术社区's Archiver

天天有戏 发表于 2007-10-15 17:25

ADSL+DHCP配置举例

Router#show run
  Building configuration...
  
  Current configuration : 1638 bytes
  !
  version 12.2
  service timestamps debug uptime
  service timestamps log uptime

  service password-encryption
  !
  hostname Router
  !
  !
  username [url=http://www.qqread.com/z/adsl/network/index.html]adsl[/url] privilege 15 password 7 xxxxxxxxxxxxxxxxxx
  ip subnet-zero
  no ip [url=http://www.qqread.com/tag/692/index.html]dhcp[/url] conflict logging
  ip dhcp excluded-address 192.168.0.1 192.168.0.2
  ip dhcp ping packets 3
  !
  ip dhcp pool xxxxxxxx
  network 192.168.0.0 255.255.255.0
  default-router 192.168.0.1
  dns-server 202.96.104.18
  domain-name xxxxxxxxxxxxxxxxx
  lease 8
  !
  ip dhcp pool [url=http://www.qqread.com/z/server/ftp/index.html]ftp[/url]
  host 192.168.0.252 255.255.255.0
  hardware-address 0010.7500.8021
  client-name ftp-server
  !
  [url=http://www.qqread.com/tag/1073/index.html]vpdn[/url] enable
  !
  vpdn-group Adsl
  request-dialin
  protocol [url=http://www.qqread.com/keys/pppoe/index.html]pppoe[/url]
  !
  !
  !
  !
  interface Ethernet0/0
  no ip address
  no ip mroute-cache
  half-duplex
  pppoe enable
  pppoe-client dial-pool-number 100
  !
  interface Ethernet0/1
  ip address 192.168.0.1 255.255.255.0
  ip [url=http://www.qqread.com/keys/nat/index.html]nat[/url] inside
  ip tcp adjust-mss 1450 这条很重要限制内网用户mtu为1450。这样163.net等网站才进的去
  half-duplex
  !
  interface Dialer10
  ip address negotiated
  ip nat outside
  encapsulation ppp
  no ip mroute-cache
  load-interval 30
  dialer pool 100
  dialer-group 99
  pulse-time 0
  ppp authentication pap callin
  ppp pap sent-username xxxxxxxx password 7 xxxxxxxxxxxxxxxxxxxxx
  !
  ip nat inside source list 188 interface Dialer10 overload
  ip nat inside source static tcp 192.168.0.252 21 interface Dialer10 21
  ip nat inside source static tcp 192.168.0.188 20000 interface Dialer10 20000
  ip classless
  ip route 0.0.0.0 0.0.0.0 Dialer10
  ip [url=http://www.qqread.com/tag/775/index.html]http[/url] server
  ip pim bidir-enable
  !
  logging 192.168.0.188
  access-list 188 permit ip any any
  dialer-list 99 protocol ip permit
  !
  line con 0
  login local
  line aux 0
  line vty 0 4
  login local
  line vty 5 181
  login local
  !
  !
  end
  
  Router#

youdao 发表于 2007-10-15 18:33

谢谢

ybhaha 发表于 2007-10-20 07:30

看不懂啊

jqunjian 发表于 2007-10-27 23:53

学习了

kill6464 发表于 2008-1-11 22:22

[quote]原帖由 [i]天天有戏[/i] 于 2007-10-15 17:25 发表
Router#show run
  Building configuration...
  
  Current configuration : 1638 bytes
  !
  version 12.2
  service timestamps debug uptime
  service timestamps log uptime
... [/quote]

学习下...................

kill6464 发表于 2008-3-5 22:41

[quote]原帖由 [i]天天有戏[/i] 于 2007-10-15 17:25 发表
Router#show run
  Building configuration...
  
  Current configuration : 1638 bytes
  !
  version 12.2
  service timestamps debug uptime
  service timestamps log uptime
... [/quote]



保留 收藏

求知 发表于 2008-3-6 16:47

学习拉 

flash1997 发表于 2008-3-26 14:23

up

wolfboy321 发表于 2008-4-7 21:34

是啊 有难度啊 呵呵 倒 啊

hongwish8es 发表于 2008-6-3 15:18

学习了

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.