static route from source IP to destination
Posted: 21 Apr 2024 16:09
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.
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.