leop1212
asked on
NAT on cisco 1841 router syntax qestion
I have 1841 cisco router with ver 12.3
and I am looking detailed syntax on how toadd NAT translation for local static ip node ip nat
192.168.0.12 so that it can communcation with remote public IP sites.
this is what I have for anohter IP
source static tcp 192.168.0.166 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.166
access-list 120 permit tcp host 192.168.0.166 any
and I am looking detailed syntax on how toadd NAT translation for local static ip node ip nat
192.168.0.12 so that it can communcation with remote public IP sites.
this is what I have for anohter IP
source static tcp 192.168.0.166 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.166
access-list 120 permit tcp host 192.168.0.166 any
ASKER
getting an error
myrouter(config)#source static tcp 192.168.0.12
^
% Invalid input detected at '^' marker.
myrouter(config)#source static tcp 192.168.0.12
^
% Invalid input detected at '^' marker.
my bad
inside source static tcp 192.168.0.12 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.12
access-list 120 permit tcp host 192.168.0.12 any
Greg
inside source static tcp 192.168.0.12 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.12
access-list 120 permit tcp host 192.168.0.12 any
Greg
ASKER
(config)#inside source static tcp 192.168.0.12 65.xxx.xxx.xxx extendable
^
now error is on ins
see above
^
now error is on ins
see above
does
ip nat inside source static tcp 192.168.0.12 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.12
access-list 120 permit tcp host 192.168.0.12 any
work?
ip nat inside source static tcp 192.168.0.12 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.12
access-list 120 permit tcp host 192.168.0.12 any
work?
ASKER
lawrence(config)#ip nat inside source static tcp 192.168.0.12 65.232.xxx.65 etendable
^
nope
now it is poing to the dot shoud it be port range in beween?
^
nope
now it is poing to the dot shoud it be port range in beween?
ip nat inside source route-map POLICY-NAT interface Dialer1 overload
ip nat inside source static tcp 172.25.0.2 456 interface Dialer1 456
ip nat inside source static tcp 172.25.0.2 9999 interface Dialer1 9999
!
ip access-list extended NAT
permit ip 172.25.0.0 0.0.255.255 any
route-map POLICY-NAT permit 10
match ip address NAT
The above is what i have on my router
do you have a pool of addresses as you can change the interface command to a pool
do you want to nat an ip or just a port?
Greg
ip nat inside source static tcp 172.25.0.2 456 interface Dialer1 456
ip nat inside source static tcp 172.25.0.2 9999 interface Dialer1 9999
!
ip access-list extended NAT
permit ip 172.25.0.0 0.0.255.255 any
route-map POLICY-NAT permit 10
match ip address NAT
The above is what i have on my router
do you have a pool of addresses as you can change the interface command to a pool
do you want to nat an ip or just a port?
Greg
ASKER
i do like to map and IP (acctually I have 3 static iaddresses to NAT 0.12 0.11 0.13)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
conf t
source static tcp 192.168.0.12 654.55.xxx.xxx extendable
access-list 5 permit 192.168.0.12
access-list 120 permit tcp host 192.168.0.12 any
Greg