LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CentOS 6 breaks VLAN_NAME_TYPE option (https://www.linuxquestions.org/questions/linux-networking-3/centos-6-breaks-vlan_name_type-option-926789/)

wimnat 01-31-2012 05:47 PM

CentOS 6 breaks VLAN_NAME_TYPE option
 
Hi all,

I've just upgraded to CentOS 6.2 from CentOS 5.5.

I've noticed the following issue when creating VLAN interface scripts:

I create the following script:

Code:

# ifcfg-eth1.0099
DEVICE="eth1.0099"
BOOTPROTO="none"
MTU="1500"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
VLAN="yes"
VLAN_NAME_TYPE="DEV_PLUS_VID"
PHYSDEV="eth1"

This is exactly the same script I use in CentOS 5.5.

When I try to bring up the interface I get the following error:

Code:

ifup eth1.0099
Error: argument "0099" is wrong: id is invalid
ERROR: could not add vlan 0099 as eth1.0099 on dev eth1

If I alter the script and change the DEVICE line to DEVICE="eth1.99" then I can bring up the interface but it obviously now is not padded like I want it to be.

Has padding been deprecated? A quick 'man vconfig' makes me think it hasn't. Has any one else come across the issue and know a resolution?

Thanks

mikeus 02-07-2012 12:41 AM

Hi, may be /usr/share/doc/initscripts-9.03.27/sysconfig.txt will be helpful...


All times are GMT -5. The time now is 07:06 PM.