Hey guys,

While i was configuring the vlans in the linux debain i got an error while restarting the network. the error is as below,

Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...ifup: interface lo already configured
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #2 to IF -:eth0:- error: Invalid argument
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #3 to IF -:eth0:- error: Invalid argument
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #4 to IF -:eth0:- error: Invalid argument
done.
____________________________________________

the conf in the /proc/net/vlan/config is
!!!!!!!!!!!!!!!!!# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan2 | 2 | eth0
vlan3 | 3 | eth0
vlan4 | 4 | eth0
________________________________________________

What i have done is i have

added the module /sbin/modprobe 8021q

Then the vconfig to add three vlans on eth0

These are what i have done. then my interfaces file is given below
__________________________________________________ __________________
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0 vlan2 vlan3 vlan4
#iface eth0 inet dynamic
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
vlan_raw_device eth0

iface vlan2 inet static
address 192.168.1.180
netmask 255.255.255.0
vlan_raw_device eth0

iface vlan3 inet static
address 192.168.2.180
netmask 255.255.255.0
vlan_raw_device eth0

iface vlan4 inet static
address 192.168.3.180
netmask 255.255.255.0
vlan_raw_device eth0

auto eth2
iface eth2 inet static
address ***************
netmask ****************
network **********
broadcast **************
gateway ****************

auto eth1
iface eth1 inet static
address **************
netmask **************
gateway **************
__________________________________________________ ______________________


Could some one Please help me out. Thanks in ADVANCE.

Cheers,

Vineet