How can I configure routing between two VLANs on different switches?

1545 pts.
Tags:
IP addressing
Networking
router
Routing and switching
Subnet mask
Switch
VLAN
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Net1Worker
    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 pointsBadges:
    report
  • NetworkingATE
    [...] How can I configure routing between two VLANs on different switches? [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following