Share your knowledge at the LQ Wiki.
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 02-11-2011, 11:52 AM   #1
Registered: Apr 2003
Location: United States
Distribution: RHEL 5.4, Snow Leopard
Posts: 87

Rep: Reputation: 15
One dedicated vlan port and one tagged port, share IP?

Ok, so here's the situation. For reasons I won't go into, I have two NIC ports, and port 1 has to solely dedicated to vlan 5. The other can do whatever. But for redundancy, I need vlan 5 to always be available, so I was going to tag port 2 with vlan's 5 and 10 (vlan 10 doesn't always have to be up). First, is this even possible? I don't see why not.

Second, it's not a good situation for ports 1 and 2 vlan 5 to have different IP addresses, so I'm trying to think of some bonding-like way to have port 1 vlan 5 and port 2 vlan 5 share the same IP. As in, port 1 would ALWAYS be active until it goes down, then I would want traffic to go on port 2.

What do you guys think?

Can I maybe create two virtual interfaces on port 2, and bond port 1 and port 2.1 somehow?
Old 02-11-2011, 02:23 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,737

Rep: Reputation: 154Reputation: 154
The bond interface is better and simple solution.
Old 02-11-2011, 06:24 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Try to get ahold of the Jan. 2011 issue of Linux Magazine. It has an article on vlans including an example of a single port firewall. Multiple vlan ids were assigned to virtual interfaces.

Having two pvids on a single port on your switch and also bonding for redundancy will probably send your switch to the land of Oz.

The article had a reference to a Linux howto that they relied on. I don't have the magazine handy right now, so I can't give you a link.

Last edited by jschiwal; 02-11-2011 at 06:26 PM.


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
Same native and tagged vlan possible? acid_kewpie Linux - Networking 0 01-12-2011 04:04 AM
VLAN Tagged IP Packets in Linux sudheendrasp Linux - Newbie 0 07-29-2010 09:13 AM
Tagged VLAN interface does not allow routing without IP configuration on it seaquesttr Linux - Networking 1 02-22-2010 07:02 PM
Traffic Control with tc qdiscs and tc filter on VLAN tagged network amandler Linux - Networking 2 10-23-2008 11:02 AM
FreeBSD - need help making vlan for multi-port trunk.. BrianK *BSD 1 06-13-2006 01:48 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:07 AM.

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