Koozali.org: home of the SME Server

Vlan on SME 6.5

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
Vlan on SME 6.5
« on: January 08, 2006, 11:41:18 PM »
Hi guys,
Its long time that I don’t write since my SME 6.5 is running fine. I have a new challenge and like I said before I’m not a Linux Guru or network master and that why I always count with this forum.
Well here my challenge, I got 2 separate neighbors that they want me to share my internet connection with them. First time I did not have any problem with this since I think that I was able to segregate the network with different IP range. Well this didn’t works since my default gate way for both networks was able to open communication with the other 2. I got a friend that suggest to me to create vlan. I have an HP switch with vlan functions. He explains to me that I need Linux for this to define the vlan in the serve and the default gateway for each network. Can some tell me if SME is able to do this vlan and how I can setup this or where I can get information about vlan and network segregations.

Thank you, in advance.
Regards,
lguzman
......

Offline idp_qbn

  • *****
  • 347
  • +0/-0
Vlan on SME 6.5
« Reply #1 on: January 08, 2006, 11:53:52 PM »
I just did a Google search on HP Vlan and got lots of pages to look at:
try http://whitepapers.zdnet.co.uk/0,39025945,60046857p-39000571q,00.htm for an HP white paper on how Vlan is implemented.

Hope this helps....but a network specialist would probably tell you another way.

Cheers
Ian
___________________
Sydney, NSW, Australia

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
Vlan on SME 6.5
« Reply #2 on: January 09, 2006, 12:01:55 AM »
Quote from: "idp_qbn"
I just did a Google search on HP Vlan and got lots of pages to look at:
try http://whitepapers.zdnet.co.uk/0,39025945,60046857p-39000571q,00.htm for an HP white paper on how Vlan is implemented.

Hope this helps....but a network specialist would probably tell you another way.

Cheers
Ian

TY i'll check  :-D
......

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
Vlan on SME 6.5
« Reply #3 on: January 09, 2006, 03:03:41 AM »
I still searching and all pointed that I need on my kernel to be compiled with 802.1q support or module and the vlan tools. I really don’t know much about Linux but I don’t know if my kernel was compiled with that option. What I think is that in order to have the 2 network separate and able to go out with only one gateway is using my SME as a router and I need this vlan option in the kernel. I still not have the whole picture clear; if some can explain me as a 5 year old child language I’ll appreciate that.

this is the best i found but i still have problem with the kernel. i never copiled anything before i alway use RPM.
http://www.linuxhorizon.ro/vlans.html

i did a root]# modprobe -l 802*
and i found this:
/lib/modules/2.4.20-37.7.legacy/kernel/net/8021q/8021q.o

i think that the 8021q is running as a module. now i just need to know how to add the vlan in eth0. tried this but not work (vconfig add eth0 2) i get (bash: vconfig: command not found).

it seems that i'm close , but still need help
......

cc_skavenger

Vlan on SME 6.5
« Reply #4 on: January 09, 2006, 07:08:16 AM »
sounds like you just need the vconfig rpm.  I looked here:  http://rpm.pbone.net/  there are quite a few listed here.  Not sure what version SME 6.5 would use.  Search for vconfig on the simple search and find a version that works with the version of SME you are trying this on.  

Keep us posted.  I would like to try this myself!

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
Vlan on SME 6.5
« Reply #5 on: January 09, 2006, 10:54:25 PM »
Quote from: "cc_skavenger"
sounds like you just need the vconfig rpm.  I looked here:  http://rpm.pbone.net/  there are quite a few listed here.  Not sure what version SME 6.5 would use.  Search for vconfig on the simple search and find a version that works with the version of SME you are trying this on.  

Keep us posted.  I would like to try this myself!


i downloaded the RPM but when i tried to install it start the chain of needed RPM. i'm scared to damage my sme server. it been working so good for long long time. here is part of the proccess.

# rpm -i vconfig-1.6-2.i386.rpm
error: failed dependencies:
        libgcc_s.so.1   is needed by vconfig-1.6-2
        libstdc++.so.5   is needed by vconfig-1.6-2
# rpm -i libgcc-3.0.1-3.i386.rpm  (no problem with this)
# rpm -i libstdc++-3.2-7.i386.rpm
error: failed dependencies:
        libc.so.6(GLIBC_2.3)   is needed by libstdc++-3.2-7
# rpm -i glibc-debug-2.2.5-34.i386.rpm
error: failed dependencies:
        glibc = 2.2.5-34 is needed by glibc-debug-2.2.5-34
        glibc-devel = 2.2.5-34 is needed by glibc-debug-2.2.5-34
i stop after last rpm request
......

Offline electroman00

  • *****
  • 491
  • +0/-0
Vlan on SME 6.5
« Reply #6 on: January 14, 2006, 01:21:45 PM »
Which HP switch do you have?

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
soon more news on Vlan
« Reply #7 on: January 15, 2006, 03:17:29 AM »
I have a HP procurve 2512. I spoke to a friend and he is really good with SME. He said that is possible to do vlan in the SME and he already did it in SME 6.0. I was thinking about upgrade to SME 7 since i a check the list of packages and SME 7 has the vconfig, he recommend me no to upgrade and he will soon come to my home and configure the vlan and also traffic rate control. As soon he does it I’ll post all I can.
......

Offline electroman00

  • *****
  • 491
  • +0/-0
Vlan on SME 6.5
« Reply #8 on: January 15, 2006, 06:38:41 PM »
lguzman

Looks like all you may want to do is setup the HP switch with vlans
to segregate the lans through the switch.
Doesn't look like you need the additional vlan functionality at the
hosts or clients that is provided by the additional software and nic's
that support vlan. Vlan gbit nic's are very expensive at the moment.
Allthough you may want to do that down the road later.
I currently have three vlan gbit switches and SME is vlan'd on the
middle switch which is vlan'd to the other two switches and it works fine.
The wan side is vlan'd to the modem and the lan side vlan'd to all three
switches.
72 gbit ports available to the lan side of SME.
That got rid of all the hubs and switches and wiring nightmare.
No more wiring changes, just vlan reconfig and it's a done deal.
Keeping track of 26 vlans is a mind bender without a system map though.
Wish the switches had a discription field in the firmware....it's just vlan ID's.
Looks like I'll have to hack the firmware to get what I want.
When I first fired up the switches on vlans I took the whole system down...
had two networks connected together wan side and lan side and crash....
So beware... you may run into a slight oversight when tagging the switch.
Took some time to get the knack of IEEE 802.1Q VLAN tagging.
Getting it to work switch to switch was a fun learning task.
All is well now though....