cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
26846
Views
10
Helpful
7
Replies

how to assign multiple ip addresses to a cisco router interface

n.bokhar1
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

Kevin SAS
Level 1
Level 1

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

View solution in original post

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

View solution in original post

7 Replies 7

Kevin SAS
Level 1
Level 1

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

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

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

n.bokhar1
Level 1
Level 1

thanks guys it worked perfectly

Sorry for wrong placement of reply

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

@n.bokhar1 which solution works perfectly? Kevin's or George's?

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card