SV: [Classic-discuss] VLAN support
Torben Petersen Egmose
TPE at dansupport.dk
Wed Sep 27 08:36:39 UTC 2006
Announce: vlan howto
Here is a short howto setup vlan and make it routed.
Make sure your drivers support VLAN frames, because they are bigger.
I used a Intel Pro/1000 because it has hardware acceleration for vlan tags.
vconfig (http://fresh.t-systems-sfr.com/linux/src/vlan.1.9.tar.gz)
Just for good mesure, the rpm I made is located at http://netwatch.dansupport.dk/tinysofa/
So here it comes:
modprobe e1000
modprobe 8021q
# Make sure card it up, because it doesn't accept new vlans if it is down.
ifconfig eth0 up
ifconfig eth0 0.0.0.0
# add your vlans
vconfig add eth0 1
vconfig add eth0 3
vconfig add eth0 5
#Now you have alot of new interfaces that just need some config.
ifconfig eth0.1 10.0.0.1 netmask 255.255.255.0
ifconfig eth0.3 10.0.3.1 netmask 255.255.255.0
ifconfig eth0.5 10.0.5.1 netmask 255.255.255.0
#Now active forwarding (routing)
echo "1" > /proc/sys/net/ipv4/ip_forward
#make sure to set default route, if all vlans need internet access
route add default gw 10.0.0.2
Thanks for a great dist.
-----Oprindelig meddelelse-----
Fra: classic-discuss-bounces at tinysofa.org [mailto:classic-discuss-bounces at tinysofa.org] På vegne af Mikael Bak
Sendt: 25. september 2006 11:40
Til: classic-discuss at tinysofa.org
Emne: Re: [Classic-discuss] VLAN support
On Saturday 23 September 2006 14:25, Torben Petersen Egmose wrote:
> Hallo there,
>
> wasn't vlan 801.1Q supported in tiny at some time?
> If so, does anyone know why?
>
These VLAN kernel features are available:
$ cat /boot/config-2.6.16-4ts | grep VLAN CONFIG_BRIDGE_EBT_VLAN=m CONFIG_VLAN_8021Q=m CONFIG_R8169_VLAN=y
I don't know if you need any special user space apps to get things work though.
> I'm thinking about using tiny sofa as internetwork router, or is tiny
> a bad choice for that?
>
It may or may not be a bad choise. It really depends on your level of knowledge on the specific network tasks you want to get working.
If I were you I'd have a look at some of those free, special purpose router distributions with nice web-interface for configuration. This way you don't have to find out how things work yourself and most importantly, you don't have to compile your own kernel or user space software.
I use m0n0wall[1] for router / VLAN tasks here at the office and we're very happy with it, and it fits on an 8MB (!) flash card:
http://m0n0.ch/wall/
>
> Torben Petersen Egmose
HYH,
Mikael
_______________________________________________
Classic-discuss mailing list
Classic-discuss at tinysofa.org
http://lists.tinysofa.org/mailman/listinfo/classic-discuss
More information about the Classic-discuss
mailing list