cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1834
Views
0
Helpful
4
Replies

Specifing ip address for outbound connection

mateomateo1
Level 1
Level 1

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?

4 Replies 4

Collin Clark
VIP Alumni
VIP Alumni

Sure is. You just need to setup a NAT pool using whatever address you like. Are you using a router or an ASA firewall?

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

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.

Don't forget to rate helpful posts.
Review Cisco Networking products for a $25 gift card