Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-16-2018, 07:49 AM   #1
LQ Newbie
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Vlans and trunks - newbie help


I have a duel nic HP Microserver with Debian Stretch installed and i'm trying to configure it to use 5 vlans as follows:

NIC 1 - trunk (no IP)
- vlan10 (static ip)
- vlan20 (static ip)
- vlan30 (static ip)
- vlan40 (static ip)
- vlan50 (static ip)

Nic 2 - Management net (DHCP)

When I try to remove the IP from NIC 1, every vlan sub interface goes DOWN.

My interfaces file:

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eno1
#iface eno1 inet dhcp

auto eno2
iface eno2 inet dhcp

auto vlan10
iface vlan10 inet static
vlan-raw-device eno1

auto vlan20
iface vlan20 inet static
vlan-raw-device eno1

Old 10-17-2018, 01:45 PM   #2
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I see you are using a rarely used method of adding VLANs.

Today when adding multiple IP Addresses to a single NIC people are using sub-interfaces

eno1 - main IP
eno1:10 - VLAN 10 IP
eno1:20 - VLAN 20 IP
and so on.


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
LXer: Attempt to set up RDO Mitaka at any given time (Delorean trunks) LXer Syndicated Linux News 0 03-20-2016 05:52 PM
[SOLVED] Linux and VLANs Jeroen1000 Linux - Networking 19 04-24-2011 06:29 PM
I would like to ask about VLANs ThanhDuongCong Linux - Networking 3 11-25-2008 09:24 PM
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 10:59 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:35 PM.

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