LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Vlan will not work (https://www.linuxquestions.org/questions/linux-networking-3/vlan-will-not-work-635928/)

alex6666 04-17-2008 04:23 AM

Vlan will not work
 
I have one ethernetcard. I have one official ip on this and also want a tagged vlan on it. The official ip is working, but the tagged vlan does not work. Can you have both an untagged and a tagged vlan on one card?

The vlan is configured in ifcfg-vlan3 like this:

DEVICE=eth0.3
BOOTPROTO=static
BROADCAST=192.168.182.255
IPADDR=192.168.182.2
NETMASK=255.255.255.0
NETWORK=192.168.182.0
ONBOOT=yes
VLAN=yes


However this is not working. Any ideas why?

datopdog 04-17-2008 11:52 AM

You need to change your interface file to ifcfg-eth0.3 ifcfg-vlan3 uses a different syntax

datopdog 04-17-2008 11:54 AM

this is the syntax for ifcfg-vlanX

Code:

VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
DEVICE=vlan3
PHYSDEV=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.182.2
NETMASK=255.255.255.0


alex6666 04-18-2008 04:18 AM

I have tried that, but it didn't work either. However when I tried using a second ethernetcard it worked fine.

datopdog 04-18-2008 07:12 AM

I have heard that drivers for some cards do not support VLAN's

gryzly 04-26-2008 07:18 AM

dot1q on Ethc
 
Hello!

I'm using Debian etch on a Dell PE1850 server with Intel PRO/1000 eth interface (eth0). I have to use some VLANs on this if.
1. I build a kernel supporting 802.1Q
2. I installed the package named vlan
3. I created VLANs (vconfig add eth0 800, ...)

But it doesn't work. I've sniffed the eth0 with wireshark but there is no vlan header betweeb Ethernet and IP header. I tried to set the flag to 0 but there was an error:

szvd:/proc/net/vlan# vconfig set_flag eth0.800 0
ERROR: trying to set flag on device -:eth0.800:- error: Invalid argument

I don't have mode idea..

sshd.root 04-26-2008 03:53 PM

What state is interface eth0 ? Please, post your ifconfig.

gryzly 04-27-2008 01:52 AM

eth0 is up

Code:

szvd:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:11:43:D8:0D:F8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:516128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10724 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45712378 (43.5 MiB)  TX bytes:1830183 (1.7 MiB)
          Base address:0xecc0 Memory:dfae0000-dfb00000


sshd.root 04-29-2008 02:19 AM

I have got Debian Etch too. VLANs is working wonderful.
Code:

cat /proc/net/vlan/config
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID
vlan0002      | 2  | eth0
vlan0003      | 3  | eth0
vlan0004      | 4  | eth0
vlan0005      | 5  | eth0
vlan0006      | 6  | eth0
vlan0007      | 7  | eth0

I think problem in vlan's name. Try set other vlan name
Code:

vconfig set_name_type [name-type]
name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
            DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)



All times are GMT -5. The time now is 11:58 AM.