08-03-2012 04:45 PM - edited 03-07-2019 08:09 AM
Is there a way to set static routes per VLAN?
Example VLAN 100 sends all traffic to 192.168.1.1 and VLAN 200 sends all traffic to 10.1.1.1. (2800 Series RTR)
I have 5 networks that have their own gateway to the Internet via satellite link. Those networks run over the same infrastructure on separate VLANs. They frequently send traffic to each other, which gets sent over a slow SAT link. I introduced a router to the network and would like to set all my hosts default gateway to the local routers sub-interface then have a static route that send all traffic that is not on one of my 5 networks back to that VLANs respective SAT modem to get routed out over the Internet. Any Ideas?
Solved! Go to Solution.
08-04-2012 12:36 AM
Hi Brandon,
Either you can go for VRF concept or Policy based routing in you device to acheive this.
PBR you need to create an access list and routemaps to define the next hop for the source subnet based filtering and applying it on the respective vlans.
Please do rate if the given information helps.
By
Karthik
08-03-2012 09:00 PM
When you define a static route it applies to all the vlans. If you want to have different static routes per vlan, you can put each vlan in a VRF Lite. This way each vrf has its own routing table and you can device static routes per vrf.
here is the config guide with sample config:
http://www.cisco.com/en/US/docs/optical/15000r4_6/ethernet/454/guide/vrf.pdf
HTH
08-03-2012 09:41 PM
I guess there are 5 VLANs that connect to router interface and there are no L3 switch in your network, if you defined sub-interface for each VLAN and define switch interface (interface that connected to router) as trunk then router will do inter VLAN routing, you can define a default route to send external traffic to SAT modem, if you want to connect some hosts to internet, you should NAT these hosts IP on your router.
08-04-2012 12:36 AM
Hi Brandon,
Either you can go for VRF concept or Policy based routing in you device to acheive this.
PBR you need to create an access list and routemaps to define the next hop for the source subnet based filtering and applying it on the respective vlans.
Please do rate if the given information helps.
By
Karthik
08-04-2012 11:32 AM
The policy based routing was the way to go for me. I applied a route-map policy to each interface that denied traffic from VLAN to VLAN and permitted all other traffic to the next-hop address of the modem of that respective VLAN.
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