static route from source IP to destination

Post Reply
papcm
Member
Posts: 1
Joined: 21 Feb 2013 15:51

static route from source IP to destination

Post by papcm »

Hello,

Can someone help to configure a static route from a specific source ip address to a destination (next hop)?

Example:
I have a static route to destination 192.168.1.0/24 to next hop 10.20.1.4:

ip static-route 192.168.100.0/24 gateway 10.20.1.4 metric 1
ip access-list "static_routes" address 192.168.1.0/24 action permit redist-control all-subnets
ip route-map "static2ospf" sequence-number 10 action permit
ip route-map "static2ospf" sequence-number 10 match ip-address "static_routes"
ip redist static into ospf route-map "static2ospf" admin-state enable

And now I need to route just one ip source address from subnet 192.168.1.0/24 to a different next hop.
I need to route packets from 10.30.1.10 to subnet 192.168.100.0/24 to the next hop 10.20.1.5.

Thank you.
User avatar
Gleylancer
Member
Posts: 157
Joined: 08 May 2013 03:14

Re: static route from source IP to destination

Post by Gleylancer »

10.30.1.10 is not in the subnet 192.168.1.0/24, so that doesn't work.

If the switch is the gateway for 10.30.1.10, all you need to do is point 10.30.1.10 to 10.20.1.5. I would question that design decision though.
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1898
Joined: 01 Jul 2008 10:51
Location: Germany

Re: static route from source IP to destination

Post by silvio »

This is possible (named PBR - policy based routing). Search in the guides (or here in the forum) for "policy action permanent-gateway".
BR Silvio
Post Reply

Return to “OmniSwitch 9000 / 9000E”