Should should be able to do this via Routing policies using Route Maps, in the Route map you will match data to a criteria ( access list, interface ) and if it does match, set other criteria such as exit interface etc.
Below is a small example, but route maps are extremly dynamic and should sort you out.
route-map test, permit, sequence 10
Match clauses:
interface FastEthernet0/2
Set clauses:
interface FastEthernet0/2
Policy routing matches: 0 packets, 0 bytes
route-map test, permit, sequence 20
Match clauses:
interface FastEthernet0/3
Set clauses:
interface FastEthernet0/4
Policy routing matches: 0 packets, 0 bytes
Ok thabks for your reply - I'd just like to re-iterate - please bear with me as I am new to this!
What I have is two sub interfaces. all packets coming in on sub interface 1 will use default gateway xxx.xxx.xxx.xxx and all packets comning in on subinterface 2 will use the gateway yyy.yyy.yyy.yyy.
Any chance you could be a bit more specific as to what I need to do?
If it is purley anything on interface 1 needing to goto ip address 1.1.1.1 as its next hop and anything from interface 2 needing to goto 2.2.2.2 as its next hop I would do the following
Route-map next-hop 10 permit
match interface serial0/1.1
set ip next-hop 1.1.1.1
Route-map next-hop 20 permit
match interface serial0/1.2
set ip next-hop 2.2.2.2
interface serial 0/1.1
ip policy route-map next-hop
interface serial 0/1.2
ip policy route-map next hop
* The above is how I would set things up and then test... so make sure you do this in a test environment first or when no one is using that system
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.