Aruba & ProVision-based
1752777 Members
6136 Online
108789 Solutions
New Discussion

Re: Vlans across multiple switches

 
SamiSheikh
Occasional Contributor

Vlans across multiple switches

I have an Asus rt-N66U with Tomato 1.28 115-EN. My goal is to separate wired and wireless traffic, so what I would like to do is attach this router with two HP 24 port managed switches.

So I have two VLAN's on the router, VLan 1 (Default VLAN) for wired connections - Ports 1 2 3 4 VLAN 3 (Wireless VLAN) for wireless connection - Ports 1 2 3

Port 1 goes to Room 1 where they have an HP Procurve 24 port switch 1 Port 2 goes to Room 2 where they have an HP Procurve 24 port switch 2 Port 3 goes to Room 3 where they have an HP Procurve 24 port switch 3 Port 4 goes to Server room where they have an HP Procurve 24 port HUB 1

So on switch 1 I have two VLANs just like the router VLAN 1, and VLAN 3. Vlan 1(default VLAN) is used for all ports 2-23. VLAN 3 is assigned to port 1, and port 24 is assigned to VLAN1 and VLAN3. Router's port 1 connects to Switch's port 24, and Switch's port 1 connects to an EA-N66 access point. While other ports connected to ethernet devices.

I have the same setup for all other rooms. So my question is having a port with two vlans tagged and connected from the router to a switch with the same VLAN ids tagged. Would that work with what I am trying to achieve as in carrying out two vlans using one port, and then separating it on the switch?

Can I have two VLANs going from the router to switch, and will the switch recognize the same vlans?
4 REPLIES 4
Richard Brodie_1
Honored Contributor

Re: Vlans across multiple switches

This is all fairly much standard usage of VLANs, so it should work fine.

SamiSheikh
Occasional Contributor

Re: Vlans across multiple switches

Hi Richard,

 

Two more questions, does that mean the end device(Workstation or access point) doesn't have to have the vlan specified since the ports are already tagged? 

 

On Port 24, I have one cable going to the router carrying out two VLANs would that work?

 

BTW the switch is a layer 2 HP Procurve 2524

Richard Brodie_1
Honored Contributor

Re: Vlans across multiple switches

Unless you want to mess around setting up VLANs on your end devices, the easiest things to do is pick the VLAN you want them to be on and assign it to the port untagged.

 

For the router, you would set up two interfaces on the same physical port bound to different VLANs. You might need to poke around in the docs a bit to figure that part out.

 

 

SamiSheikh
Occasional Contributor

Re: Vlans across multiple switches

Hi Richard,

 

This is what my config looks like on the switch:

 

Running configuration:

; J4813A Configuration Editor; Created on release #F.05.34

hostname "OTT-DSL-02"
snmp-server contact ""
snmp-server location ""
time timezone -300
time daylight-time-rule Continental-US-and-Canada
cdp run
ip default-gateway 172.26.128.2
sntp server 132.246.168.148
timesync sntp
sntp unicast
snmp-server community "" Unrestricted
snmp-server community ""
snmp-server host 172.16.1.253 "public" Not-INFO
snmp-server host 172.16.1.254 "public" Not-INFO
vlan 1
name "DEFAULT_VLAN"
untagged 3-26
ip address 172.26.128.16 255.255.240.0
no untagged 1-2
exit
vlan 3
name "Wireless"
ip address 10.255.255.250 255.255.255.0
tagged 1-2,24
exit
vlan 4
name "DSL Ethernet"
ip address 192.168.1.1 255.255.255.0
tagged 24
exit
ip authorized-managers 172.16.0.22
ip authorized-managers 172.16.1.0 255.255.255.0
ip authorized-managers 172.26.0.0 255.255.0.0
no aaa port-access authenticator active
password manager