cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3326
Views
0
Helpful
16
Replies

How to manage routing & NAT for "secondary" ip address subnet

martinlebel
Level 1
Level 1

Hi !

 

The datacenter I'm hosted at delivered me two subnets of public IP address on the same interface on my CISCO2911 router. The secondary subnet is mainly going to be used for NAT static translations. I'm struggling to get things to work with the secondary subnet. I guess I can't figure out how to tell the router "If traffic comes from subnet A, use default route A and if it comes from subnet B, use default route B"

Routing

Here's what I got so far :

interface GigabitEthernet0/1
ip address 24.24.24.210 255.255.255.248 secondary
ip address 68.68.68.50 255.255.255.240
ip nat outside

--Internal network
interface GigabitEthernet0/2.1
 encapsulation dot1Q 1 native
 ip address 10.99.99.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in

ip nat inside source route-map RMAP_NAT interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 68.68.68.49

route-map RMAP_NAT permit 100
 match ip address ACL_NAT

ip access-list extended ACL_NAT
permit ip 10.99.99.0 0.0.0.255 any

Any help would be appreciated.

Thank you

 

-M

16 Replies 16

Hi @Georg Pauwen 

I suggested the same @paul driver has rejected my idea because if you read the original question, the main twist is there in the last line. 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Hello Deepak,

 

you suggested PBR. My suggestion is different, as the route map is applied to the static NAT entry...

Review Cisco Networking for a $25 gift card