09-04-2012 10:22 AM - edited 03-07-2019 08:41 AM
Hello Community,
I would like to know how to force all traffic from a specific network to go straight to the internet without being able to ping or otherwise communicate with my other networks eventhough there is a route in the routing table for them. I have a specific wireless network on its own interface/vlan/subnet and would like to know how to force all that traffic straight to the internet. I do not want this network to be able to ping or otherwise communicate with my other internal subnets. Would a Route Map be the best option for this? Essentially I would like a config that acts as a "all traffic from this network, send it to this next hop ip" Is this possible?
Thanks.
Chris.
Solved! Go to Solution.
09-04-2012 10:35 AM
Hi,
if you want to bypass the RIB for routing packets then you must use PBR( Policy Based Routing) which is effectively
using a route-map.
eg you want all packets from 192.168.1.0 going anywhere to always take the path to x.x.x.x
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
interface x/x -----> interface in which source 192.168.1.0 enters the router
ip policy route-map NETWORK_A
route-map NETWORK_A
match ip address 100 ----> matching the ACL 100
set ip next-hop x.x.x.x ----> bypassing the next-hop from RIB
Regards.
Alain
Don't forget to rate helpful posts.
09-04-2012 10:35 AM
Hi,
if you want to bypass the RIB for routing packets then you must use PBR( Policy Based Routing) which is effectively
using a route-map.
eg you want all packets from 192.168.1.0 going anywhere to always take the path to x.x.x.x
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
interface x/x -----> interface in which source 192.168.1.0 enters the router
ip policy route-map NETWORK_A
route-map NETWORK_A
match ip address 100 ----> matching the ACL 100
set ip next-hop x.x.x.x ----> bypassing the next-hop from RIB
Regards.
Alain
Don't forget to rate helpful posts.
09-04-2012 11:02 AM
Thank you! I will use this.
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