cisco 2600 做ADSL接入INTERNET实例
 
 ADSL最常见的应用方式是用一台安装了PPPoE客户端软件的PC来拔号作代理服务器,让多台主机同时访问Internet。有的时候该PC的任务也可
以用路由器来完成,最低档的2514路由器就能胜任,只要路由器有两个以太端网口即可。当然,还需要有适当的IOS软件,同时支持
PPPoEClient和NAT两个特性、需求最低的IOS是“REMOTEACCESSSERVER”特性集。以2621为例,运行该IOS只需32M内存、8MFlash,文件名为:
c2600-c-mz.122-4.T1.bin,这就是下面配置的运行环境。
  
  实际运行的配置:
  
  version12.2
  
  servicetimestampsdebuguptime
  
  servicetimestampsloguptime
  
  noservicepassword-encryption
  
  !
  
  hostname2621
  
  !
  
  enablesecret5$1$LJV3$jqSDKFMSZiQBAjlnN/
  
  !
  
  ipsubnet-zero
  
  ipname-server202.xxx.xxx.xxx
  
  !
  
  vpdnenable
  
  !
  
  vpdn-groupPPPoE
  
  request-dialin
  
  protocolpppoe
  
  !
  
  interfaceFastEthernet0/0
  
  ipaddress10.1.1.1255.255.255.0
  
  ipnatinside
  
  duplexauto
  
  speedauto
  
  !
  
  interfaceFastEthernet0/1
  
  noipaddress
  
  speed10
  
  half-duplex
  
  pppoeenable
  
  pppoe-clientdial-pool-number1
  
  !
  
  interfaceDialer1
  
  mtu1492
  
  ipaddressnegotiated
  
  ipnatoutside
  
  encapsulationppp
  
  noipmroute-cache
  
  dialerpool1
  
  dialer-group1
  
  nocdpenable
  
  pppauthenticationpapcallin
  
   ppppapsent-usernameabc123@163password7**********
  
  !
  
  ipnatinsidesourcelist1interfaceDialer1overload
  
  ipclassless
  
  iproute0.0.0.00.0.0.0Dialer1permanent
  
  noiphttpserver
  
  ippimbidir-enable
  
  !
  
  access-list1permitany
  
  dialer-list1protocolippermit
  
  !
  
  linecon0
  
  lineaux0
  
  linevty04
  
  password*****
  
  login
  
  !
  
  end
  
  在下行速度为2M的ADSL线路上,F0/0上接只一台PC,用蚂蚁下载测试时,峰值速度竟超过300K,不知道是不是蚂蚁有点夸大了。:-)值得注
意的
  是有的地区需要用chap认证方式,这时相应的指令为:
  
  pppauthenticationchapcallin
  
   pppchaphostnameabc123@163
  
  pppchappassword**********