本人的ASA是自己摸索的,所以肤浅的很,但是愿意拿出来和大家分享一下...
因为CISCO太绝了,这块的命令和switchrouter的都不一样。。。
ASA5510# write erase  
清除ASA配置
                      
兩點注意事項  1. 不要再下wr或者copy running-config startup-config
                                    2.
先要show version將下面的Information備份下來
          Running ActivationKey: 0x0000000 0x00000000 0x00000000 0x00000000 0x843cd8ae
hostname ASA5510
domain-name default.domain.invalid
enable password XXVfCWsIr6DY92H0 encrypted      
設定enable password
names
dns-guard
!
interface Ethernet0/0
nameif outside          
給接口命名
security-level 0        
設置安全等級
ip address 10.1.1.1 255.255.255.248    
設定IP address and Subnet Mask  別忘了下 no shutdown
!
interface Ethernet0/1
nameif inside          
security-level 100
ip address 10.6.1.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
shutdown                                    
管理接口,
nameifmanagement                            
通常情況我是將他SHUTDOWN
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
!
passwd 2KFQnbNIdI.2KYOUencrypted            
設置telnet密碼
boot system disk0:/asa722-k8.bin              
設置開機引導的IOS文件
                                              
不知道用什麽文件引導的话,可以先show flash查看一下,選擇最新的就可以了。
                                              ASA5510#show flash
                                              -#---length-- -----date/time------ path
                                              66746112    Aug 27 2006 23:06:48 asa711-k8.bin
                                              77552312    Aug 27 2006 23:05:30 asdm511.bin
                                              108312832    Feb 16 2007 01:13:44 asa722-k8.bin
                                              115623108    Feb 16 2007 01:23:36 asdm522.bin
                                              1214524416   Jul 31 2007 23:41:20 asa802-k8.bin

                                              20156416bytes available (42790912 bytes used)
  
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
object-group networkPublic                  
設置一個群組,名稱是public
network-object host219.141.226.180            
network-object host210.66.36.211              
群組的内容network-object IP address and Subnet Mask orhost
network-object host210.66.36.212              
設定群組的目的是便于管理,用來DENY OR PERMIT,以減少ACL的條目數量。
network-object host202.165.142.217            
network-object host 202.108.9.37
network-object host 218.4.74.228
network-object host 202.102.14.38
network-object host 60.191.17.116
network-object host 58.211.94.42
network-object host 202.106.190.9
network-object host 202.106.75.11
network-object host 210.66.55.19
access-list 102 extended permit icmp anyany                          
擴展的ACL in outside
access-list 119 extended permit ip 10.5.79.0 255.255.255.0any        
擴展的ACL in inside
access-list 119 extended permit ip 10.5.80.0 255.255.255.0 any
access-list 119 extended permit ip 10.5.91.0 255.255.255.0 any
access-list 119 extended permit icmp any any
access-list 119 extended permit ip any object-group Public
pager lines 24
logging enable
logging buffered warnings
logging asdm informational
mtu outside 1500                                                        
設置MTU值,值和速度成正比,和穩定性成反比,一般設定1500  OR  1942
mtu inside 1500
mtu management 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit any outside
icmp permit any inside
asdm p_w_picpathdisk0:/asdm522.bin                                          
ASDM工具CONNECTIOS文件版本
no asdm history enable
arp timeout 14400
global (outside) 1interface                                            
配置动态NAT
nat (inside) 1 10.5.0.0255.255.0.0                                    
配置内部IP地址池
static (inside,outside) tcp 10.1.1.1 pop3 10.0.17.211 pop3 netmask 255.255
255.255                                                                
配置静态NAT                                  
static (inside,outside) tcp 10.1.1.1 smtp 10.0.17.211 smtp netmask 255.255
255.255
access-group 102 in interfaceoutside                                  
ACL应用到 outside接口
access-group 119 in interfaceinside                                    
ACL应用到 inside接口
route outside 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx1                          
静态路由表   10.1.1.2ISP分配的gateway
route inside 10.5.78.0 255.255.255.0 10.6.1.2 1
route inside 10.5.77.0 255.255.255.0 10.6.1.2 1
route inside 10.5.92.0 255.255.255.0 10.6.1.2 1
route inside 10.5.91.0 255.255.255.0 10.6.1.2 1
route inside 10.0.17.0 255.255.255.0 10.6.1.2 1
route inside 10.5.80.0 255.255.255.0 10.6.1.2 1
route inside 10.5.79.0 255.255.255.0 10.6.1.2 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
username brianwu password CLhdP7PpHY9i8Amoencrypted                          
添加的用户名和密码
username fortunegao password OLuVCAGFe/2qmg4o encrypted
aaa authentication telnet consoleLOCAL                                      TELNET
启用AAA验证
aaa authentication http consoleLOCAL                                        http
启用AAA验证
http serverenable                                                            
启动HTTP server,便于ASDM连接。
http 0.0.0.0 0.0.0.0outside                                                  
对外启用ASDM连接
http 0.0.0.0 0.0.0.0inside                                                  
对内启用ASDM连接
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 0.0.0.0 0.0.0.0inside                                                
对内启用TELNET连接
telnet timeout 5
ssh timeout 5
console timeout 0
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map global_policy
class inspection_default
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect netbios
  inspect rsh
  inspect rtsp
  inspect skinny
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip
  inspect xdmcp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:b4794ce6faae423c7f095e1d91f0add9
: end
很愿意和大家一起讨论MSN:[email protected]