10-22-2018 11:14 PM - edited 03-08-2019 04:26 PM
Hi,
what is the best way to configure for following scenario.
A site that will need 4 vlans. Site has a router with two interface & a 3560 switch.
Should i use the router on a stick method (create subinterface for each vlan on router & let the switch act as pure layer 2 with default gateway being the managment vlan interface of router.
or is there any better way. Please help , thanks.
10-22-2018 11:51 PM
Hi there,
Both topologies are valid, but there are logical and physical limitations.
If you opt for the router-on-a-stick model your inter-VLAN traffic will be constrained by the bandwith of the link between the router and 3560. Is it a 1Gbps interface? Can you create an etherchannel.
What about inter-VLAN security? Is inter-VLAN traffic permitted unchecked? If so you ay as well have the user VLAN SVIs on the 3560 and do the routing there.
If you need some ACLs, then it will be easier to implement them on the router especially if you require a stateful firewall function, this is where IOS Zone Based Firewall will be useful.
Cheers,
Seb.
10-23-2018 03:42 AM
10-23-2018 03:52 AM
all traffic on the 4 vlans will be going out of the site, no intervlan connectivity is needed.
The 3560 is the only switch on that site providing port connection to hosts. If the suggestion is to create SVI on 3560, then what should the config on router look like.
Or please suggest the best possible option & correct my understanding. thanks.
10-23-2018 04:07 AM - edited 10-23-2018 04:09 AM
If there's no local VLAN to VLAN traffic, then what you initially proposed should be fine.
However, if you're still curious, you would configure the 3650 with SVIs, with routing enabled on it, and you could configure how it routes to/from the router several ways. For example, you could configure a P2P link between 3560 and router, and route the default to it and on the router, route back to the VLAN networks, or you could have the subinterfaces, on the roiuter, as you initially described, but make the SVIs the host gateways and route the default, on the 3560, to any or all the router subinterface IPs. As the router would have a "foot" in the local networks, you wouldn't need to route back to the 3560.
10-23-2018 05:38 AM
Thanks, apart from vlan filtering what the pros & cons of either methods ;
- L3's on the router & switch acting as layer 2
- SVI's on the switch & p2p link connecting switch & router
appreciate inputs. thanks.
10-23-2018 05:43 AM
10-23-2018 05:58 AM
Hm my reply looks like got deleted.
With router on a stick you can utilize more features of L3 router such like netflow, traffic shaping/policing. But if there is no need in such features not much difference except performance.
10-23-2018 05:13 AM
Here you can find config example for router on a stick - https://learningnetwork.cisco.com/docs/DOC-23481
#2 option much easier config wise, example - https://www.cisco.com/c/en/us/support/docs/lan-switching/inter-vlan-routing/14976-50.html
But in #2 option you would need additionally set up p2p link between router and 3560 switch if needed.
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