Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

IP NAT / VLAN

Hi Guys, 

My network consist of  5 VLANS. All vlans were map into a range of public ip (NAT).

My question is, is there a way where I can map a specific 1 VLAN into a 1 PUBLIC IP address?

Assuming my vlans are 192.168.1.0 /24 - 192.168.5.0 /24 and my public ip range is 200.1.1.0 /29

Can I map 192.168.1.0 /24 into 200.0.0.5 only?

 

Thanks in advance :)

5 REPLIES

I assume you are using Cisco

I assume you are using Cisco routers

so something like

ip nat source static network 192.168.1.0 200.1.1.1 /32

ip nat source static network 192.168.2.0 200.1.1.2 /32

ip nat source static network 192.168.3.0 200.1.1.3 /32

ip nat source static network 192.168.4.0 200.1.1.4 /32

ip nat source static network 192.168.5.0 200.1.1.5 /32

HTH

Richard

 

Cisco Employee

what product is this?

what product is this?

Bronze

If you want to map your

If you want to map your network 192.168.1.0/24 with one Public IP, please try the following:

access-list 1 permit 192.168.1.0 0.0.0.255

ip nat pool cisco 200.0.0.5 200.0.0.5

ip nat inside source list 1 pool cisco overload

 

Apply it to the concerned interfaces.

Community Member

Dear,Below configuration may

Dear,

Below configuration may help you.

interface Vlan1
 description CONNECTION TO LAN
 ip address 192.168.2.1 255.255.255.0
 ip nat inside
 ip nat enable


ip nat inside source route-map fixed-nat1 interface FastEthernet0/0  

access-list 110 permit 192.168.2.0 0.0.0.255 any

route-map fixed-nat1 permit 10
 match ip address 110
 match interface FastEthernet0/0

Note:* FastEthernet0/0 is a public ip configured inrterface

 

Regards,

Raja

 

 

Community Member

Yes you can, if you have a

Yes you can, if you have a Public IP range, you can map your local ip range to public range.

 

Thanks.

256
Views
9
Helpful
5
Replies
CreatePlease to create content