11-16-2017 06:56 AM - edited 03-05-2019 09:30 AM
hi i have 10 private ip address i want to assign them to one interface on my router and then use nat to pat some of them and also static nat and port forward the rest how can i achieve that i have a 4331 router
Solved! Go to Solution.
11-16-2017 09:28 AM
Hi,
If I understand well, you should configure something like that :
int Gi 0/0
desc IN
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 secondary
ip address 192.168.3.1 255.255.255.0 secondary
ip nat inside
int dialer 0
desc OUT
ip nat out
And then configure your pat as usual :
ip nat inside source static tcp 192.168.2.10 80 int dialer 0 80
Then access to the required through
Dialer_IP:80
Verify your ppat with "show ip nat transl"
Hope it helps
11-16-2017 09:29 AM
Hello,
you can assign multiple IP addresses to the same interface, and then use NAT/PAT the same way as if you would use the primary IP address.
Is this what you are asking ?
Below is what I mean:
interface FastEthernet0/0
description WAN interface
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 secondary
ip address 192.168.3.1 255.255.255.0 secondary
ip nat pool NAT1 192.168.2.1 192.168.2.1 netmask 255.255.255.0
ip nat inside source list 1 pool NAT1 overload
ip nat inside source static tcp 10.10.10.1 80 192.168.3.1 80 extendable
11-16-2017 09:28 AM
Hi,
If I understand well, you should configure something like that :
int Gi 0/0
desc IN
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 secondary
ip address 192.168.3.1 255.255.255.0 secondary
ip nat inside
int dialer 0
desc OUT
ip nat out
And then configure your pat as usual :
ip nat inside source static tcp 192.168.2.10 80 int dialer 0 80
Then access to the required through
Dialer_IP:80
Verify your ppat with "show ip nat transl"
Hope it helps
11-16-2017 09:29 AM
Hello,
you can assign multiple IP addresses to the same interface, and then use NAT/PAT the same way as if you would use the primary IP address.
Is this what you are asking ?
Below is what I mean:
interface FastEthernet0/0
description WAN interface
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 secondary
ip address 192.168.3.1 255.255.255.0 secondary
ip nat pool NAT1 192.168.2.1 192.168.2.1 netmask 255.255.255.0
ip nat inside source list 1 pool NAT1 overload
ip nat inside source static tcp 10.10.10.1 80 192.168.3.1 80 extendable
08-20-2018 09:33 AM
Hello
I know this is an old thread but I have the same router and cannot get this to work. There is a bug for this but can you tell me what IOS XE you are running?
Thank you
Joseph
11-16-2017 01:04 PM
thanks guys it worked perfectly
08-20-2018 09:35 AM
09-24-2020 01:07 AM
@n.bokhar1 which solution works perfectly? Kevin's or George's?
09-24-2020 05:06 AM
Hello,
both 'solutions' essentially say the same thing. You can either use static NAT and secondary addresses, or put the secondary address in a pool and use that pool for dynamic NAT.
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