10-27-2017 06:03 AM - edited 03-03-2019 08:39 AM
Hi there...
I have a network where i want to access some sub-networks where i have isolated several video recorders on port 7000. Each network is isolated by a Cisco 881 router and the first one that was put online works but not the rest of them.
What is wrong with my nat rules?
I have added two of the configuration files and I have a total of five routers to configure.
Router one...
******************************************************************
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface FastEthernet4
ip address 172.16.10.181 255.255.254.0
ip nat outside
ip nat enable
ip virtual-reassembly in
duplex auto
speed auto
interface Vlan1
ip address 192.168.181.1 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly in
ip forward-protocol nd
ip nat inside source list 1 interface FastEthernet4 overload
ip nat inside source static tcp 192.168.181.100 7000 interface FastEthernet4 7000
ip route 0.0.0.0 0.0.0.0 172.16.10.1
access-list 1 permit 192.168.181.0 0.0.0.255
******************************************************************
Router two...
******************************************************************
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface FastEthernet4
ip address 172.16.10.182 255.255.254.0
ip nat outside
ip nat enable
ip virtual-reassembly in
duplex auto
speed auto
interface Vlan1
ip address 192.168.182.1 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly in
ip forward-protocol nd
ip nat inside source list 1 interface FastEthernet4 overload
ip nat inside source static tcp 192.168.182.100 7000 interface FastEthernet4 7000
ip route 0.0.0.0 0.0.0.0 172.16.10.1
access-list 1 permit 192.168.182.0 0.0.0.255
******************************************************************
Solved! Go to Solution.
12-12-2017 06:55 AM
Hi guys and sorry for my late reply.
The issue is fixed.
Turns out the routers were not the problem.
The recorders had a built-in network for the attached cameras, which was programmed to use 172.16.x.x/16. Those networks was configured on all recorders except one, and that caused routing problems obviously.
Thanks for your suggestions.
10-27-2017 07:12 AM
11-09-2017 03:33 AM
11-09-2017 04:51 AM
Hi
The line below is to nat all users from LAN (only subnet 192.168.182.0/24) going to outside with router interface Fa4 IP:
ip nat inside source list 1 interface FastEthernet4 overload
This one allows to nat port tcp 7000 of IP 192.168.182.100 to interface Fa4 on port 7000:
ip nat inside source static tcp 192.168.182.100 7000 interface FastEthernet4 7000
If you access your Fa4 IP using port 7000 it will redirect to your internal recorder 192.168.182.100 on port 7000.
However, you can't have multiple recorder natted over the same Fa IP on the same port. Let's say you want to have your other recorder 192.168.182.101 natted, then you'll do something like:
ip nat inside source static tcp 192.168.182.101 7000 interface FastEthernet4 7001
Access Fa4 IP using port 7001 will redirect your traffic to internal host 192.168.182.101 on port 7000.
Is that more clear?
11-09-2017 05:32 AM
11-09-2017 05:56 AM
11-13-2017 06:23 AM - edited 11-13-2017 06:25 AM
Hello
You can try NVI NAT ( dominaless NAT) instead of Domain based nat
Unlike domain based nat - NVI nat perfroms 2 route lookups, one towards the NVI interface and the second route the packet on it natted address
int x/x
no ip nat inside
no ip nat outside
ip nat enable
no ip nat inside source list 1 interface FastEthernet4 overload
no ip nat inside source static tcp 192.168.181.100 7000 interface FastEthernet4 7000
ip nat source list 1 interface FastEthernet4 overload
ip nat source static tcp 192.168.181.100 7000 interface FastEthernet4 7000
etc...
res
Paul
12-12-2017 06:55 AM
Hi guys and sorry for my late reply.
The issue is fixed.
Turns out the routers were not the problem.
The recorders had a built-in network for the attached cameras, which was programmed to use 172.16.x.x/16. Those networks was configured on all recorders except one, and that caused routing problems obviously.
Thanks for your suggestions.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide