本文发表在 rolia.net 枫下论坛1)每次启动的时候,总提示:
Would you like to enter the initial configuration dialog? [yes/no]:
在NVRAM 中有STARTUP-CONFIG 文件.
startup-confg 文件内容如下:
Router#sh start
Using 986 out of 131072 bytes! Cisco Router Web Setup Template
!
no service pad
no service tcp-small-servers
no service udp-small-servers
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
!
ip subnet-zero
ip domain-lookup
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool CLIENT
import all
lease 0 2
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
!
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.0
ip nat inside
no cdp enable
hold-queue 32 in
no shutdown
!
interface Ethernet1
ip address dhcp client-id Ethernet 1
ip nat outside
no cdp enable
no shutdown
!
ip classless
ip http server
!
ip nat inside source list 102 interface Ethernet1 overload
access-list 102 permit ip 10.10.10.0 0.0.0.255 any
access-list 23 permit 10.10.10.0 0.0.0.255
!
!
line con 0
exec-timeout 120 0
stopbits 1
line vty 0 4
access-class 23 in
exec-timeout 120 0
login local
!
end更多精彩文章及讨论,请光临枫下论坛 rolia.net
Would you like to enter the initial configuration dialog? [yes/no]:
在NVRAM 中有STARTUP-CONFIG 文件.
startup-confg 文件内容如下:
Router#sh start
Using 986 out of 131072 bytes! Cisco Router Web Setup Template
!
no service pad
no service tcp-small-servers
no service udp-small-servers
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
!
ip subnet-zero
ip domain-lookup
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool CLIENT
import all
lease 0 2
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
!
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.0
ip nat inside
no cdp enable
hold-queue 32 in
no shutdown
!
interface Ethernet1
ip address dhcp client-id Ethernet 1
ip nat outside
no cdp enable
no shutdown
!
ip classless
ip http server
!
ip nat inside source list 102 interface Ethernet1 overload
access-list 102 permit ip 10.10.10.0 0.0.0.255 any
access-list 23 permit 10.10.10.0 0.0.0.255
!
!
line con 0
exec-timeout 120 0
stopbits 1
line vty 0 4
access-class 23 in
exec-timeout 120 0
login local
!
end更多精彩文章及讨论,请光临枫下论坛 rolia.net