Hi,
I want to configure static NAT and ACL on the cisco ASA 5505. I work with different public IP's (range *.*.*.160 - *.*.*.166 / 255.255.255.248
I have given the following commands
static (inside,outside) *.*.*..163 192.168.0.4 netmask 255.255.255.255
static (inside,outside) *.*.*..164 192.168.0.4 netmask 255.255.255.255
static (inside,outside) *.*.*..164 192.168.0.1 netmask 255.255.255.255
static (inside,outside) *.*.*..164 192.168.0.12 netmask 255.255.255.255
static (inside,outside) *.*.*..166 192.168.0.2 netmask 255.255.255.255
access-list access_outside_in extended permit tcp any host *.*.*.163 eq smtp
access-list access_outside_in extended permit tcp any host *.*.*.164 eq www
access-list access_outside_in extended permit tcp any host *.*.*.164 eq https
access-list access_outside_in extended permit tcp any host *.*.*.164 eq ftp
access-list access_outside_in extended permit tcp any host *.*.*.164 eq www
access-list access_outside_in extended permit tcp any host *.*.*.164 eq 3389
access-list access_outside_in extended permit tcp any host *.*.*.166 eq www
access-list access_outside_in extended permit tcp any host *.*.*.166 eq 3389
wr m
Now the following problems occur (Two static NAT's are seen as duplicates. What did I do wrong???);
Result of the command: "static (inside,outside) *.*.*.164 192.168.0.4 netmask 255.255.255.255"
ERROR: duplicate of existing static
inside:192.168.0.4 to outside:*.*.*.163 netmask 255.255.255.255
Usage: [no] static [(real_ifc, mapped_ifc)]
{<mapped_ip>|interface}
{<real_ip> [netmask <mask>]} | {access-list <acl_name>}
[dns]
[[tcp] <max_conns> [<emb_lim> [<norandomseq> [nailed]]]]
[udp <max_conns>]
[no] static [(real_ifc, mapped_ifc)] {tcp|udp}
{<mapped_ip>|interface} <mapped_port>
{<real_ip> <real_port> [netmask <mask>]} |
{access-list <acl_name>}
[dns]
[[tcp] <max_conns> [<emb_lim> [<norandomseq> [nailed]]]]
[udp <max_conns>]
show running-config [all] static [<mapped_ip>]
clear configure static
Result of the command: "static (inside,outside) *.*.*.164 192.168.0.1 netmask 255.255.255.255"
The command has been sent to the device
Result of the command: "static (inside,outside) *.*.*.164 192.168.0.12 netmask 255.255.255.255"
ERROR: mapped-address conflict with existing static
inside:192.168.0.1 to outside:*.*.*..164 netmask 255.255.255.255
Usage: [no] static [(real_ifc, mapped_ifc)]
{<mapped_ip>|interface}
{<real_ip> [netmask <mask>]} | {access-list <acl_name>}
[dns]
[[tcp] <max_conns> [<emb_lim> [<norandomseq> [nailed]]]]
[udp <max_conns>]
[no] static [(real_ifc, mapped_ifc)] {tcp|udp}
{<mapped_ip>|interface} <mapped_port>
{<real_ip> <real_port> [netmask <mask>]} |
{access-list <acl_name>}
[dns]
[[tcp] <max_conns> [<emb_lim> [<norandomseq> [nailed]]]]
[udp <max_conns>]
show running-config [all] static [<mapped_ip>]
clear configure static
Start Free Trial