开局ASA1
  #/mnt/disk0/lina_monitor ciscoasa
  > enable
  Invalid password
  Password:
  ciscoasa#
  配置IP
R1(config)#int fa0/0
R1(config-if)#ip address 11.0.0.1 255.255.255.0
R1(config-if)#no shut
ciscoasa(config)# int e0/0
ciscoasa(config-if)# nameif inside
INFO: Security level for "inside" set to 100 by default.
ciscoasa(config-if)# ip address 11.0.0.2 255.255.255.0
ciscoasa(config-if)# no shut
ciscoasa(config)# int e0/1
ciscoasa(config-if)# nameif outside
INFO: Security level for "outside" set to 0 by default.
ciscoasa(config-if)# ip address 12.0.0.1 255.255.255.0
ciscoasa(config-if)# no shut
R2(config)#int fa0/0
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#no shut
  指定静态路由:
  R1(config-if)#ip route 12.0.0.0 255.255.255.0 11.0.0.2
  R2(config)#ip route 11.0.0.0 255.255.255.0 12.0.0.1
  验证静态路由:

 

  默认情况下,ASA对TCP和UDP协议提供状态化连接,ICMP协议提供非状态化的连接(防火墙由于不记录路由所以将数据丢掉);
  由于ping命令使用的是ICMP协议,所以R1ping外网ping不通。
  在R2上开远程,验证ASA对TCP协议的状态化连接:
  R2(config)#line vty 0 4
  R2(config-line)#password abc
  R2(config-line)#login
  在R1上远程R2