1830160 Members
4236 Online
109999 Solutions
New Discussion

vlan and SuSE Linux

 
SOLVED
Go to solution
gilles bellavance
New Member

vlan and SuSE Linux

I would like to setup VLAN on HP switchs so that the VLAN goes up to the Linux box. I believe that VLAN on Linux are of the type "taged" and from what I have read the taging should be the same on Linux and HP switch. What model (serie) of HP switch will enable me to "group" many VLAN on a single port and after connecting that port to a Linux box enable me to "unfoald" the VLAN and for example serve many DHCP address pool (one for each VLAN). The question is broad but I guess if something is possible in that direction, the details will comme later!
4 REPLIES 4
Manuel Wolfshant
Trusted Contributor

Re: vlan and SuSE Linux

Any switch with 802.1q capability will do. I am using HP 2524 and Cisco 29xx.
All you have to do is set a port in 'tagged' mode, include it in all relevant VLANs and connect the linux box to it. Then on the linux side, you will need to use vconfig to setup the interface in 802.1q mode.
I am using this very configuration for almost 4 years without any troubles.
gilles bellavance
New Member

Re: vlan and SuSE Linux

Thank you Manuel for your reply. I will go forward in my setup. I will be testing on a 2324 but the final installation is for a serie 4000. I have already looked on the Linux side and it does seem quite simple, using vconfig, to manage VLANs. The part which I still don't fully understand is on the Switch side. How will I add up VLANs on one port if one port is to bring all the VLANs to the Linux box ?
Maybe seting the VLANs one the Switch will be self explanatory!
Manuel Wolfshant
Trusted Contributor
Solution

Re: vlan and SuSE Linux

A glimpse on my settings. Port 24 is the tagged one (a linux router could be attached to it... or another switch could be cascaded over there).
When cascading switches, make sure you create the vlans on all switches that should transfer the frames, even if they are not used locally.

hp2524-1# sh vlan

Status and Counters - VLAN Information

Maximum VLANs to support : 8
Primary VLAN : DEFAULT_VLAN
Management VLAN :

802.1Q VLAN ID Name Status
-------------- ------------- -------------
1 DEFAULT_VLAN Static
2 admin_vlan Static
148 VLAN148 Static
149 corrigent Static
300 amcc Static

hp2524-1# sh vlan 149

Status and Counters - VLAN Information - Ports - VLAN 149

802.1Q VLAN ID : 149
Name : corrigent
Status : Static

Port Information Mode Unknown VLAN Status
---------------- -------- ------------ ----------
11 Untagged Learn Up
13 Untagged Learn Up
15 Untagged Learn Up
24 Tagged Learn Up
hp2524-1# sh vlan 1

Status and Counters - VLAN Information - Ports - VLAN 1

802.1Q VLAN ID : 1
Name : DEFAULT_VLAN
Status : Static

Port Information Mode Unknown VLAN Status
---------------- -------- ------------ ----------
24 Tagged Learn Up
25 Untagged Learn Down
26 Untagged Learn Down



gilles bellavance
New Member

Re: vlan and SuSE Linux

Thank you Manuel for your help. The configuration output show clearly that port 24 appear in both VLANs. I will be testing and putting that together in the comming days.
I will come back to you to give you a status of the situation.