标签:asa dns process cto timeout object conf 模拟器 ortmap
一、实验拓扑:三、命令部署:
实验一:网段转换
1、清除上个实验的Object配置,并查看验证:
ASA(config)# clear configure object
ASA(config)# show run object
ASA(config)# show run nat
2、将原来的10.1.1.0/24改为10.1.1.0/28
R2(config)#int f0/0
R2(config-if)#ip add 10.1.1.2 255.255.255.240
3、配置Network static NAT,转换Inside网络10.1.1.0/28到DMZ区域的网络地址10.1.2.0/28
ASA(config)# object network in-dmz
ASA(config-network-object)# subnet 10.1.2.0 255.255.255.240
ASA(config)# object network in-yuan
ASA(config-network-object)# subnet 10.1.1.0 255.255.255.240
ASA(config-network-object)# nat (inside,dmz) static in-dmz
验证:
R2#telnet 10.1.2.3
Trying 10.1.2.3 ... Open
User Access Verification
Username: cc
Password:
R3>
ASA# show xlate
1 in use, 3 most used
Flags: D - DNS, i - dynamic, r - portmap, s - static, I - identity, T - twice
NAT from inside:10.1.1.0/28 to dmz:10.1.2.0/28
flags s idle 0:01:05 timeout 0:00:00
R3#show users
Line User Host(s) Idle Location
清除掉刚刚的连接:包括xlate和arp
ASA# clear xlate
INFO: 0 xlate deleted
ASA# clear arp inside
4、R2更改IP地址为10.1.1.3/28
R2(config)#int f0/0
R2(config-if)#ip add 10.1.1.3 255.255.255.240
验证:
R2#telnet 10.1.2.3
Trying 10.1.2.3 ...
% Connection timed out; remote host not responding
结论:老师的不行,我的也不行,各种清xlate、arp都不行,怪事。
实验二:范围转换
1、清除上个实验的Object配置,并查看验证:
ASA(config)# clear configure object
ASA(config)# show run object
ASA(config)# show run nat
2、配置Network static NAT,转换DMZ网络10.1.2.200-10.1.2.210到Outside区域的网络地址202.100.1.200-202.100.1.210
ASA(config)# object network out-pool
ASA(config-network-object)# range 202.100.1.200 202.100.1.210
ASA(config)# object network dmz-yuan
ASA(config-network-object)# range 10.1.2.200 10.1.2.210
ASA(config-network-object)# nat (dmz,outside) static out-pool
3、修改R3地址为10.1.2.200
R3(config)#int f0/0
R3(config-if)#ip add 10.1.2.200 255.255.255.0
验证:
有时候地址可以对的上有时候对不上,多更改R3地址看是否能对的上:
第一次:对上了
R3#telnet 202.100.1.1
Trying 202.100.1.1 ... Open
User Access Verification
Username: aa
Password:
R1>
R1#show users
Line User Host(s) Idle Location
66 vty 0 aa idle 00:00:21 202.100.1.200
第二次:也对上了
R3(config)#int f0/0
R3(config-if)#ip add 10.1.2.205 255.255.255.0
R3#telnet 202.100.1.1
Trying 202.100.1.1 ... Open
User Access Verification
Username: aa
Password:
R1>
R1#show users
Line User Host(s) Idle Location
66 vty 0 aa idle 00:00:29 202.100.1.205
第三次:又对上了
R3(config)#int f0/0
R3(config-if)#ip add 10.1.2.209 255.255.255.0
R1#show users
Line User Host(s) Idle Location
66 vty 0 aa idle 00:00:02 202.100.1.209
ASA模拟器有点小问题,效果不能全部出来!!
20-思科防火墙:Network Static NAT:网络静态NAT
标签:asa dns process cto timeout object conf 模拟器 ortmap
原文地址:http://blog.51cto.com/13856092/2138607