cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1201
Views
14
Helpful
5
Replies

IP NAT / VLAN

Eckzyzxx45
Level 1
Level 1

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 5

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

 

Glenn Martin
Cisco Employee
Cisco Employee

what product is this?

Moin Ilyas
Level 4
Level 4

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.

rajakiran1991
Level 1
Level 1

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

 

 

nettam.naveen
Level 1
Level 1

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

 

Thanks.