1、Cisco 2514 IOS 为 c2500-is-l.123-5c.bin
2、路由器起用了DHCP
3、配置文件:( XXXXX 须要根据实际的情况替换)
!
! No configuration change since last restart
!
version 12.3
no parser cache
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname XXXXXX
!
boot-start-marker
boot-end-marker
!
enable password XXXXXX
!
username XXXXXX password 0 XXXXXX
clock timezone Peking 8
no aaa new-model
ip subnet-zero
ip cef
ip name-server 202.103.24.68
ip name-server 202.103.0.68
no ip dhcp conflict logging
ip dhcp excluded-address 10.0.0.1 10.0.0.9
!
ip dhcp pool xqd
   network 10.0.0.0 255.0.0.0
   dns-server 202.103.24.68 202.103.0.68
   default-router 10.0.0.9
!
vpdn enable
!
vpdn-group 1
 request-dialin
  protocol pppoe
!
!
!
!
interface Ethernet0
 description My LAN Interface
 ip address 10.0.0.9 255.0.0.0
 ip nat inside
 ip tcp adjust-mss 1452
 no ip mroute-cache
 no cdp enable
!
interface Ethernet1
 description Physical ADSL Interface (Facing the ISP)
 no ip address
 no ip mroute-cache
 pppoe enable
 pppoe-client dial-pool-number 1
 no cdp enable
!
interface Serial0
 no ip address
 no ip mroute-cache
 shutdown
 no fair-queue
 no cdp enable
!
interface Serial1
 no ip address
 no ip mroute-cache
 shutdown
 no cdp enable
!
interface Dialer1
 description Logical ADSL Interface
 ip address negotiated
 ip mtu 1492
 ip nat outside
 encapsulation ppp
 ip tcp adjust-mss 1452
 no ip mroute-cache
 dialer pool 1
 dialer-group 1
 no cdp enable
 ppp authentication pap callin
 ppp pap sent-username XXXXXX password 0 XXXXXX
!
ip nat inside source list 10 interface Dialer1 overload
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
access-list 10 permit 10.0.0.0 0.255.255.255
dialer-list 1 protocol ip permit
no cdp run
!
!
line con 0
 exec-timeout 120 0
 stopbits 1
line aux 0
line vty 0 4
 exec-timeout 0 0
 password 7 XXXXXX
 login local
 length 0
!
scheduler max-task-time 5000
ntp clock-period 17179827
ntp server 133.100.11.8
ntp server 133.100.9.2
ntp server 203.139.30.195
!
end