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 06-02-2014, 12:44 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Rep: Reputation: 54
Debian: how to add vlan, make it up, but not have an IP?


I have discovered the vconfig command which allows me to add vlans without having to restart networking, which is nice. How do I make the vlan be "up" but without any IP? I want it to be usable to bridge VMs to, but I don't want the host itself to be able to communicate in/out on these vlans. I only have one vlan which is the main one, and that one is configured in the interfaces file. Issue with using that file is I find you have to reboot sometimes for changes to work. In fact even having to restart networking is not really acceptable as this will be production.

Basically I want it to be up at the layer 2 level, but that's it.
 
Old 06-02-2014, 01:03 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You don't have a choice,. VLANS are always layer 2.

What does your interfaces file look like?
 
Old 06-06-2014, 10:55 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338

Original Poster
Rep: Reputation: 54
Ended up going with ESXi so I'll mark this as solved. Iface file was fairly standard, just a bonded connection trunk port with 1 vlan configured.
 
  


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] How to add VLAN in UBUNTU cheesewizz Linux - Networking 1 07-19-2012 11:37 PM
Howto make dhcp work with vlan tagging on slackware? sysslack Slackware 9 04-01-2012 07:33 AM
vlan interface with vconfig - how to make it persistent? riwi Slackware 3 07-10-2011 06:23 AM
Lenny Debian VLAN tagging Q Allanon_TB Linux - Networking 1 05-30-2010 09:12 AM
Cannot add VLAN device mou5e Linux - Networking 5 11-11-2008 11:28 AM

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

All times are GMT -5. The time now is 03:35 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