08-12-2015 01:33 PM - edited 03-08-2019 01:20 AM
Need some help (I'm getting desperate) for setting up NAT on a 6509 with a sup 2T - I'd like to set up a couple of /21 private networks and NAT them out to a single public IP address. I'd also like to use our central DHCP server for DHCP.
I'm having trouble finding good advice on this. Anyone set this up recently?
Thanks
08-12-2015 02:32 PM
Hi John,
So I can provide a sample configure based on the following assumptions
So you will need to change the above assumption in my sample to suit your needs
configure terminal
vlan 11
name Private-Net1
vlan 12
name Private-Net2
interface vlan 11
ip address 192.168.0.1 255.255.248.0
ip nat inside
ip helper-address 10.0.0.1
interface vlan 12
ip address 192.168.8.1 255.255.248.0
ip nat inside
ip helper-address 10.0.0.1
interface Gi1/1
ip nat outside
exit
access-list 50 permit 192.168.0.0 255.255.240.0
ip nat inside source list 50 interface Gi1/1 overload
If you have any questions please let me know, If you find this answer help and it you feel it's correct please remember to mark it as a correct answer to help future readers.
After the initial address translation the translation of subsequent packets in a flow should be translated in hardware, However if you find there is a performance impact as a result of performing NAT on the device then I would suggest reading
08-13-2015 06:18 AM
Thank you Mark. Is it necessary for the public IP to be on a physical interface? I'd like to have it NAT through an IP on a vlan. Is that doable?
Thanks,
John
08-13-2015 06:20 AM
John
Yes you should be able to use an SVI instead of a L3 port.
Jon
08-14-2015 06:27 AM
Hi John
Yes you can use an SVI/Vlan interface as Jon has pointed out,
Just configure it as normal and add the ip nat inside statement to it
you would also need to change the line
ip nat inside source list 50 interface Gi1/1 overload
to something like
ip nat inside source list 50 interface Vlan88 overload
When Vlan 88 has your public ip
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