原创文档,转载请注明出处:http://www.tllswa.com/?p=1449

RT_C1841#show run
Load for five secs: 0%/0%; one minute: 0%; five minutes: 0%
Time source is hardware calendar, *08:24:53.695 UTC Fri Jan 2 2015

Building configuration…

Current configuration : 1552 bytes
!
version 12.4
service timestamps debug datetime
service timestamps log datetime
service password-encryption
!
hostname RT_C1841
!
boot-start-marker
boot-end-marker
!
logging buffered 8192 debugging
enable secret 5 $1$lPvN$taZHrRm0CJwcZnmDos1cl1
!
no aaa new-model
memory-size iomem 20
ip cef
!
!
!
!
no ip domain lookup
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.200.254 255.255.255.0 ‘LAN口侧IP地址手动分配
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 221.224.xxx.xxx 255.255.255.252 ‘WAN口固定IP地址
ip nat outside
duplex auto
speed auto
!
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 221.224.xxx.xxx ‘WAN口出口网关
!
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface FastEthernet0/1 overload ‘NAT共享上网复用
!
access-list 1 permit any ‘定义允许访问Internet的地址,这里定义的是全部允许
snmp-server community public RO
!
!
!
control-plane
!
!
banner exec ^
————————————-
hostname “RT_C1841”
Cisco 1841 Router
————————————-^
banner motd ^
————————————-
hostname “RT_C1841”
Cisco 1841 Router
————————————-^
!
line con 0
password 7 00071A150754
login
exec prompt timestamp
line aux 0
password 7 00071A150754
login
exec prompt timestamp
line vty 0 4
password 7 00071A150754
login
exec prompt timestamp
line vty 5 15
password 7 00071A150754
login
exec prompt timestamp
!
scheduler allocate 20000 1000
end

RT_C1841#