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 10-16-2018, 07:49 AM   #1
superkat
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Vlans and trunks - newbie help


Hi,

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
address 192.168.10.3
netmask 255.255.255.0

auto vlan20
iface vlan20 inet static
vlan-raw-device eno1
address 192.168.20.3
netmask 255.255.255.0

...
 
Old 10-17-2018, 01:45 PM   #2
lazydog
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.
 
  


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
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

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

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