03-23-2014 02:54 PM - edited 03-07-2019 06:49 PM
hello,
i have the following setup
1 router connected to two access switches.
to configure inter vlan routing, can i do the following ?
1- configure svi on the router for each vlan ( int vlan 1,etc..)
2- configure links between the router and switches as trunks
Solved! Go to Solution.
03-24-2014 06:33 AM
Does your router support SVIs ? If yes, just connect your switches via trunks to EHWIC 8. And configure IPs and IP helpers on SVI..
03-23-2014 03:23 PM
Hi,
On the router, you usally can't configure SVIs, unless it is a switch/route combined e.g cisco 3560, 3750, etc..
If your device is just router and you have multiple vlans on each switch, then you need to configure the router with sub-interfaces for each vlan and also trunk the connection from each switch to the router. If each of your access switches only carry one vlan, then you can simply have a access port form each switch to the router and use a regular interface and no need for Sub-interfaces.
here is an example of sub-interface config on the router for vlan 15
interface gi0/1.15
description data VLAN 15
encapsulation dot1Q 15
ip address 192.168.15.1 255.255.255.0
and here is an examle if your switches carry only one vlan (15)
interface gi0/1
description data VLAN 15
ip address 192.168.15.1 255.255.255.0
HTH
03-24-2014 04:02 AM
03-24-2014 04:33 AM
Hi Asus,
You should configure different VLANs per subinterface. Could we see yours topology, how the switches are connected to the router ? And how VLANs are assigned on the switches?
If you have etc two same VLANS configured on two switches the topology should be something like this. You cannot use two physical interfaces configured with subinterfaces for same VLAN on the router.
trunk trunk
[ R ] -----> [SW1]----->[SW2]
By the way , what hardware are you using ?
03-24-2014 05:02 AM
03-24-2014 05:34 AM
CISCO 3560 supports inter vlan routing you do no need a router to do this.. Just connect them both via trunk, configure an HSRP on the switches and connect to the router via L3 links. If you want use a router as a DHPC server, you should configure an ip helper under each SVI on the switches..
Example of SVI & HSRP cfg :
On SW1
Switch(config)# ip route
Switch(config)#interface Vlan10
Switch(config-if)#ip address x.x.x.x +mask
Switch(config-if)#ip helper-address x.x.x.x
Swtich(config-if)# standby10 ip [ virtual IP for VLAN10]
Swtich(config-if)# standby 10 priority 105
Swtich(config-if)# standby 10 preempt
Switch(config-if)#no shutdown
Switch(config)#interface Vlan20
Switch(config-if)#ip address y.y.y.y + mask
Switch(config-if)#ip helper-address x.x.x.x
Swtich(config-if)# standby 20 ip [ virtual IP for VLAN20]
Switch(config-if)#no shutdown
on SW2
Switch(config)# ip route
Switch(config)#interface Vlan10
Switch(config-if)#ip address z.z.z.z +mask
Switch(config-if)#ip helper-address x.x.x.x
Swtich(config-if)# standby 10 ip [ virtual IP for VLAN10]
Switch(config-if)#no shutdown
Switch(config)#interface Vlan20
Switch(config-if)#ip address n.n.n.n + mask
Switch(config-if)#ip helper-address x.x.x.x
Swtich(config-if)# standby 20 ip [ virtual IP for VLAN20]
Swtich(config-if)# standby 20 priority 105
Swtich(config-if)# standby 20 preempt
Switch(config-if)#no shutdown
03-24-2014 05:55 AM
03-24-2014 06:33 AM
Does your router support SVIs ? If yes, just connect your switches via trunks to EHWIC 8. And configure IPs and IP helpers on SVI..
03-24-2014 06:57 AM
03-24-2014 09:09 AM
Yes, default gateway is needed only for management purposes on L2 switches.
03-24-2014 07:16 AM
03-24-2014 05:03 AM
03-24-2014 04:56 AM
No you cant have the same vlan under different interfaces on a router. The only way you could do this is if you have a built in switch module in the router itself like a ehwic 4 or 16 for example , then you could create a single SVI and apply it to multiple downlinks.
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