LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2008, 04:23 AM   #1
alex6666
LQ Newbie
 
Registered: Nov 2006
Posts: 13

Rep: Reputation: 0
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?
 
Old 04-17-2008, 11:52 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You need to change your interface file to ifcfg-eth0.3 ifcfg-vlan3 uses a different syntax
 
Old 04-17-2008, 11:54 AM   #3
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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
 
Old 04-18-2008, 04:18 AM   #4
alex6666
LQ Newbie
 
Registered: Nov 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I have tried that, but it didn't work either. However when I tried using a second ethernetcard it worked fine.
 
Old 04-18-2008, 07:12 AM   #5
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I have heard that drivers for some cards do not support VLAN's
 
Old 04-26-2008, 07:18 AM   #6
gryzly
LQ Newbie
 
Registered: Apr 2008
Location: Budapest, Hugary
Distribution: Debian, Debian, Debian, Kubuntu
Posts: 5

Rep: Reputation: 0
Question 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..
 
Old 04-26-2008, 03:53 PM   #7
sshd.root
LQ Newbie
 
Registered: Jan 2008
Posts: 17

Rep: Reputation: 0
What state is interface eth0 ? Please, post your ifconfig.
 
Old 04-27-2008, 01:52 AM   #8
gryzly
LQ Newbie
 
Registered: Apr 2008
Location: Budapest, Hugary
Distribution: Debian, Debian, Debian, Kubuntu
Posts: 5

Rep: Reputation: 0
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

Last edited by gryzly; 04-27-2008 at 02:47 AM.
 
Old 04-29-2008, 02:19 AM   #9
sshd.root
LQ Newbie
 
Registered: Jan 2008
Posts: 17

Rep: Reputation: 0
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vlan and dhcp riffe Linux - Networking 4 11-18-2007 07:07 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
Vlan >G< Linux - Networking 3 06-29-2006 12:03 AM
vlan praveenchebolu Linux - Networking 1 03-25-2006 03:41 AM
Vlan Markvw Linux - Networking 1 09-29-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration