10-29-2012 08:48 AM - edited 03-04-2019 05:59 PM
If I have block of ip addresses assigned by my isp then is it possible to specify outbount traffic going out different ip addres from 1 of my vlan as oposed to 1st default public address from my range of ip addresses?
10-29-2012 09:06 AM
Sure is. You just need to setup a NAT pool using whatever address you like. Are you using a router or an ASA firewall?
10-29-2012 09:42 AM
router
at the moment I have something like that:
ip nat inside source list 100 interface GigabitEthernet0/0 overload
ip nat inside source static tcp 10.28.3.2 25 x.x.x.x 25 extendable
ip nat inside source static tcp 10.28.4.2 80 x.x.x.x 80 extendable
access-list 100 permit ip any any
I want traffic of 10.28.4.2 to go out different ip
10-29-2012 10:34 AM
Hi,
Can you try this
no ip nat inside source list 100 interface GigabitEthernet0/0 overload
ip access-list extended SUBNET_NAT
deny ip host 10.28.24.2 any
permit ip 10.28.0.0 0.0.255.255 any
ip access-list extended HOST_NAT
permit ip host 10.28.24.2 any change the wildcard mask and subnet to your needs
route-map HOST_NAT permit 10
match ip address HOST_NAT
match interface G0/0
route-map NAT_OVRLD permit 10
match ip address SUBNET_MAP
match interface G0/0
ip nat pool mypool x.x.x.x x.x.x.x prefix-length x
ip nat inside source route-map HOST_POOL pool mypool overload
ip nat inside source route-map NAT_OVRLD interface Gi0/0
Regards.
Alain
Don't forget to rate helpful posts.
10-29-2012 10:45 AM
Here's a good link on configuring NAT-
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080094e77.shtml
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