VLAN Setup and Configuration
To get started, you will want to download the latest vlan.X.X.tar.gz file
(to your $HOME directory.) Unpack it with your favorite commands, for
example: tar -xvzf vlan.1.6.tar.gz. Alternatively, you can get it from the
CVS Repository using something like this:
1. Install and configure cvs on your machine.
2. Specify the vlan repository:
export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvs/vlan
3. Log in to the repository:
cvs login � � (PASSWORD: anonymous)
4. Check out the source:
mkdir vlan; cd vlan; cvs -z3 checkout vlan
Now, you should have a vlan directory in your home directory. You only have
to patch the kernel if you are using Linux 2.4.14 or earlier. Now, read the
README or other docs to figure out what kernel it patches against. A list
of mirrors are kept at www.kernel.org. Unzip and un-tar this in your home
directory as well, which should create a linux directory in your $HOME
directory. Example: tar -xvzf linux-2.2.14.tar.gz
Now add the VLAN kernel changes to the kernel if your kernel requires it. I
finally figured out how to do patches that diff can handle (I think I did
it right at least!). You will find the patch in the vlan directory. It will
be called: vlan.patch, or something equally straight-foward. Apply the
patch to your kernel:
cd $HOME/linux
patch -p 1 < $HOME/vlan/[vlan.patch]
Your new, patched, kernel should be in your INCLUDE path before trying to
compile the vconfig program. One way to get things working is to link
$HOME/linux to the 'linux' directory that you just un-zipped and patched. A
command might be something like: cd $HOME; ln -s
/home/greear/kernel/2.4/linux.dev linux
Build the vconfig program in the $HOME/vlan directory:
cd $HOME/vlan
make
Now, time to compile your new kernel! Use the make xconfig command in your
$HOME/linux directory to select your kernel options. The option related to
802.1Q VLANs is found under the Networking options. If the option is not
highlighted, make sure you select "Experimental Drivers" in one of the
first xconfig menus.
Assuming your kernel compiled cleanly (yell if it didn't and you think my
code broke it!!), you are now ready to try it out!! Install your kernel in
the normal manner (fix up your /etc/lilo.conf file appropriately and run
lilo as root.) Reboot your computer and choose your new kernel.
As your computer comes back to life, there will be little sign that you are
now 802.1Q capable, other than a line spit out during the boot process.
There should be a config programs in your $HOME/vlan directory: vconfig.
vconfig is used to create and destroy VLAN devices. So, lets create a VLAN
device on your first ethernet NIC. vconfig<return> will list a short spiel
on how to use it. The vconfig command I usually use is:
vconfig add eth0 5
This attempts to create a VLAN device with VLAN-ID of 5 on the eth0 device.
If you want to delete a VLAN, use something like:
vconfig rem eth0.5
You will also need to give it an ip, eg: ifconfig -i eth0.5 192.168.2.1
and configure it UP: ifconfig -i eth0.5 up
NOTE: You can get lots of VLAN related configuration information from the
/proc/net/vlan/* files by using 'cat' or 'more' to look at them.
Hope you can make it. For more information, please visit this web site
http://www.candelatech.com/~greear/vlan.html#setup
God bless and have a nice day.
Regards,
Al Maclang
--------||-+------)(-+------------------
Alberto D. Maclang, CCNA
Senior Network Engineer
NSG Philippines, Inc.
Tel: +6349-5412730 loc 230
-----)(+----------||+-------------------
"Tapang, Roderick
(GXS)" To: Philippine Linux Users Group
Mailing List
<[EMAIL PROTECTED] <[EMAIL PROTECTED]>
.com> cc:
Sent by: Subject: RE: [plug] retaining VLAN
config
[EMAIL PROTECTED]
-linux.com
10/16/2003 06:33 AM
Please respond to
Philippine Linux
Users Group Mailing
List
On Mon, 2003-10-13 at 17:02, alben benavente alteza wrote:
> do you mean alias IP's?
>
> On Monday 13 October 2003 00:36, Mark Quitoriano wrote:
> > guys papano ko gagawin na ma retain yung vlan configuration ko sa linux
> > box? kasi pag nagrereboot laging narereset yung mga vlans
what distro r u using? in RH systems, u can:
netconfig -d eth0:1
netconfig -d eth0:2
...
this will create the config file in /etc/sysconfig/networking-scripts/
to be executed during startup.
Or, u can just copy your eth0 file to eth0:2 and make the changes u need.
hth.
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie