LinuxQuestions.org
Visit Jeremy's Blog.
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 01-29-2015, 07:26 AM   #1
jackiebaron
Member
 
Registered: Aug 2011
Posts: 51

Rep: Reputation: Disabled
Trying to add a vlan but getting ifconfig problem


Hi,

I'm trying to add another vlan to an existing interface. I create the vlan using:

ifconfig vlan5 create (vlan5) is the vlan name, obviously, but then when I try to configure the vlan to have an ip address and mask using ifconfig, I get the following error:

ifconfig: SIOCSETVLAN: Device busy

I've tried it with the vlan5 up and down but it gives the same message. I'm not sure what else to try. Thanks for any help.
 
Old 01-30-2015, 03:36 AM   #2
fkallgren
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
I think you need to create a virtual interface first.

Code:
ip link add link eth0 name eth0:5 type vlan id 5
And if you're using a RedHat based system you could/should create "/etc/sysconfig/network-scripts/ifcfg-eth0.5"

Code:
DEVICE="eth0.5"
BOOTPROTO="static"
HWADDR="00:0C:29:BE:B6:7F"
IPV6INIT="no"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR="10.47.91.201"
NETMASK="255.255.255.0"
VLAN=yes
Code:
#> service network restart

Last edited by fkallgren; 01-30-2015 at 03:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Debian: how to add vlan, make it up, but not have an IP? Red Squirrel Linux - Networking 2 06-06-2014 09:55 PM
[SOLVED] How to add VLAN in UBUNTU cheesewizz Linux - Networking 1 07-19-2012 10:37 PM
ipv6 address which add by ifconfig command lost after eth down anqing Linux - Kernel 0 02-21-2011 07:53 AM
Cannot add VLAN device mou5e Linux - Networking 5 11-11-2008 10:28 AM
How do I add another IP to my linux box using ifconfig via ssh? abefroman Linux - Software 3 11-11-2005 06:34 PM

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

All times are GMT -5. The time now is 02:26 PM.

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