1,545 pts.
 How can I configure routing between two VLANs on different switches?
We have one C3560 switch, on which we have configured two VLANs. VLAN 1 is 10.1.1.x and VLAN 2 is 10.1.30.x; the subnet mask for both is 255.255.255.0. We want to configure routing between these two VLANs. How can I do this? Please note that these two VLANs are on the same switch.

Software/Hardware used:
ASKED: December 17, 2009  7:29 PM
UPDATED: July 6, 2010  5:29 AM

Answer Wiki:
You need to enable routing on the switch. Two simple static routes will help you achieve this -- else you would need to go for a dynamic routing protocol like RIP, EIGRP, etc., depending upon your requirements: ip route 10.1.30.0 255.255.255.0 10.1.1.100 (10.1.1.100 is the IP address of interface VLAN 1) ip route 10.1.1.0 255.255.255.0 10.1.30.100 (10.1.30.100 is the IP address of interface VLAN 2) Well, here's the deal. The 3560 will need to be able to do inter-vlan routing. No need for any routing protocol on this one. All you need to do is create both your L2 and L3 SVIs and that's it. Make sure the 3560 is running a L3 IOS. (example: Advanced IP Services) example conf t vlan 1,2 interface vlan 1 ip address 10.1.1.1 255.255.255.0 no shut interface 2 ip address 10.1.30.1 255.255.255.0 no shut exit wr mem As long as you are running the right IOS... you do not need to do any thing else. 3560 being layer - 3 switch, it will handle inter-VLAN routing itself - without any configuration.
Last Wiki Answer Submitted:  July 6, 2010  5:29 am  by  Ccie7335   80 pts.
All Answer Wiki Contributors:  Ccie7335   80 pts. , Sudhanshu   810 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

That’s an answer that never would have occurred to me. I would have thought that if you could “enable routing” that it wouldn’t be a switch — it’d be a router.

Tom

 108,330 pts.

 

ip routing
conf t
vlan 1,2

interface vlan 1
ip address 10.1.1.1 255.255.255.0
no shut

interface 2
ip address 10.1.30.1 255.255.255.0
no shut

 90 pts.