Cisco 827 连接ADSL线路配置

1/6/2008来源:Cisco网络人气:2730


  version 12.1
  no service single-slot-reload-enable
  no service pad
  service timestamps debug uptime
  service timestamps log uptime
  no service passWord-encryption
  no service dhcp
  !
  hostname scw-gw
  !
  logging buffered 4096 debugging
  logging rate-limit console 10 except errors
  enable secret YOURPASSWORD
  !
  ip subnet-zero
  no ip finger
  no ip domain-lookup
  !
  no ip dhcp-client network-discovery
  !
  interface Ethernet0
  ip address YOURIP YOURNETMASK
  ip nat inside
  !
  interface ATM0
  no ip address
  no atm ilmi-keepalive
  pvc 0/38
  encapsulation aal5mux ppp dialer
  dialer pool-member 1
  !
  bundle-enable
  dsl Operating-mode auto
  !
  interface Dialer0
  ip address negotiated
  ip nat outside
  encapsulation ppp
  dialer pool 1
  ppp reliable-link
  ppp authentication chap callin
  ppp chap hostname [email protected]
  ppp chap password YOURPASSWORD
  !
  ip classless
  ip route 0.0.0.0 0.0.0.0 Dialer0
  ip http server
  !
  ip nat inside source list 1 interface Dialer0 overload
  access-list 1 permit YOURNETWORK 0.0.0.255
  access-list 10 permit 195.12.1.35
  access-list 10 permit YOURNETWORK 0.0.0.255
  !
  line con 0
  transport input none
  stopbits 1
  line vty 0 4
  access-class 10 in
  password YOURTELNETPASSWORD
  login
  !
  scheduler max-task-time 5000
  end