Cisco ASA 5505 (Version 9.X)的 LAN上网和NAT的配置

目标:掌握Cisco ASA 5505 (Version 9.X)LAN上网和NAT的配置

轻松掌握Cisco ASA Version 9.X 的LAN上网和NAT配置

详细配置:

ASA # show run
:
ASA Version 9.1(7)31
!
hostname ASA
enable password 5HCygneKtLabhS2F encrypted
names
!
interface Ethernet0/0
switchport access vlan 2 ---------- 把外网IP划入 防火墙0/0端口,ISP运营商的提供的网线直接这里
!
interface Ethernet0/1 ------------ 内网的交换机或者PC接这里
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.8.254 255.255.255.0 ------------内网LAN网段的网关
!
interface Vlan2
nameif outside
security-level 0
ip address 116.6.78.136 255.255.255.240 --------------外网WAN的IP地址,由ISP运营商提供
!
ftp mode passive
object network obj_any -----------------引用内网所有网段,此处可以单独写某个需要上网的网段
subnet 0.0.0.0 0.0.0.0
object network WEB-Server --------------需要映射到外网的WEB服务器
host 192.168.8.222
access-list 100 extended permit icmp any any -------------- **允许ping **
access-list 100 extended permit ip any any ---------------允许访问
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值