Is it possible in a cisco router to route based on vlan? I have in the router 2 vlans, and 2 possible ways to go out:
- One vlan should be routed to a certain ip
- One vlan should be routed to the "outside world" (the router is also an adsl modem)
I currently know of no way to do this. Although it might seem simple...
Many thanks in advance.
edit
Correction regarding this question: The problem does resolve around vlans, but the question is better formulated in this way:
How do I route a packet in this way: Packet A from source subnet1 needs to go to outside1. All other packets need to go to outside2
We currently have a cisco adsl router, and a voip router after that. Recently our connections got upgraded with a vdsl, so we now have adsl and vdsl in the picture. It is the intention that internet traffic goes through vdsl, and voip traffic through adsl. I figured this would be easiest to separate through vlans, and try to route the vlans accordingly.
If there is a better way to do this, it would also be very appreciated!
edit2
The specific problem we were facing was solved. The simpler solutions always are best of course:
Since we're using voip for our telephoning, and that was the only thing needing to go through the adsl outside line, I came up with the idea to route the specific range of IP's used by our voip provider. Also the port used for dialing was forwarded (using static nat)
Everything else is sent over the vdsl line (default route)
This effectively splits the voip and internet traffic.