08-17-2011 08:29 AM - edited 03-07-2019 01:45 AM
This was dumped on me and I am trying to figure it out.
My company has a 3640 with on external ether port that has 32 IPs from our providers. There is a single internal ether port for our internal network.
We are adding another T1 from a different provider. This new line will have 32 IPs also.
Both external ports will use NAT, some with overload, some static.
For reasons we want some specific internal IP's to use a specific external port for access to outside.
I know some about how to configure the router, but this is eluding me.
How do I route a specific internal IP to use a specific external port ?
Example
interface FastEthernet0/1
description inside INSIDE_LAN
ip address 192.168.0.1 255.255.255.0
interface FastEthernet1/0
description OUTSIDE_LAN_1.1.1
ip address 1.1.1.94 55.255.255.224
ip nat outside
! the gateway for this network is 1.1.1.65
!
interface FastEthernet1/1
description OUTSIDE_LAN_2.2.2
ip address 2.2.2.94 255.255.255.224
ip nat outside
! the gateway for this network is 2.2.2.65
ip nat inside source static 192.168.0.10 2.2.2.89
ip nat inside source static 192.168.0.24 1.1.1.68
ip route 0.0.0.0 0.0.0.0 2.2.2.65
ip route 0.0.0.0 0.0.0.0 1.1.1.65
How do I get 192.168.0.10 to only use FastEthernet1/1 (2.2.2.94) and
How do I get 192.168.0.24 to only use FastEthernet1/0 (1.1.1.94)
Thank you
Solved! Go to Solution.
08-17-2011 08:51 AM
Kevin
When you say -
the gateway for this network is 1.1.1.65
do you mean the next-hop ? If so then PBR will do what you want ie.
access-list 101 permit ip host 192.168.0.10 any
access-list 102 permit ip host 192.168.0.24 any
route-map PBR permit 10
match ip address 101
set ip next-hop 2.2.2.65
route-map PBR permit 20
match ip address 102
set ip next-hop 1.1.1.65
int fa0/1
ip policy route-map PBR
Jon
08-17-2011 08:51 AM
Kevin
When you say -
the gateway for this network is 1.1.1.65
do you mean the next-hop ? If so then PBR will do what you want ie.
access-list 101 permit ip host 192.168.0.10 any
access-list 102 permit ip host 192.168.0.24 any
route-map PBR permit 10
match ip address 101
set ip next-hop 2.2.2.65
route-map PBR permit 20
match ip address 102
set ip next-hop 1.1.1.65
int fa0/1
ip policy route-map PBR
Jon
08-17-2011 09:47 AM
Ahh
That looks like what I need.
I will give it a try.
Thank you
08-17-2011 08:51 AM
Policy Based Routing. Search CCO for info and conf examples.
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