配置PIX 的几个基本命令
interface
nameif
ip address
nat
global
route
interface命令
interface hardware_id hardware_speed [shutdown]
举例:
interface ethernet0 100full
interface ethernet1 100full
interface ethernet2 100full
nameif命令
nameif hardware_id if_name security_level
举例:
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 dmz security20
ip address命令
ip address if_name ip_address [netmask]
举例:
ip address inside 10.10.10.14 255.255.255.0
nat命令
nat (if_name) nat_id local_ip [netmask]
举例:
nat (inside) 1 10.10.10.0 255.255.255.0
nat (inside) 1 172.16.1.0 255.255.255.0
global命令
global (if_name) nat_id global_ip | global_ip-global_ip [netmask]
举例:
nat (inside) 1 10.0.0.0 255.0.0.0
global (outside) 1 192.168.10.15-192.168.1.62 netmask 255.255.255.0
global (outside) 1 192.168.10.65 netmask 255.255.255.0
route命令
route if_name ip_address netmask gateway_ip [metric]
举例:
route outside 0.0.0.0 0.0.0.0 192.168.1.3 1
测试,允许ping到外网口
icmp permit any any outside
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073