LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2013, 06:40 PM   #1
jbbroccard2
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Creating a VLAN interface on top of another VLAN interface


Hi folks,

I am trying to leverage ARP monitoring on a specific VLAN in order to rely on an IP address for all my VLAN interfaces.

The IP Address i want to monitor is 157.16.6.1, in the VLAN 16.
I also need to create other VLAN interfaces that will rely on the bonding with the ARP monitoring options.

Therefore on my linux hosts, i have to configure this:
eth3 -> eth3.16 (in vlan16)
eth4 -> eth4.16 (in vlan16)
eth3.16 + eth4.16 = bond16 with the IP Address: 157.16.6.2

At that point, this works well, the arp monitoring is okay and i can ping other hosts in this VLAN.

Ok, now, i need to create other VLAN interfaces on top of this bonded interfaces. Like bond16.21:
DEVICE=bond16.21
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
IPADDR=157.21.6.2
NETMASK=255.255.0.0
VLAN=yes

The interface comes up, but i can't ping other hosts in the same VLAN!

See some outputs:
[root@pay_ovs2vm1 vlan]# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth3.16 | 16 | eth3
eth4.16 | 16 | eth4
bond16.21 | 21 | bond16

[root@pay_ovs2vm1 vlan]# cat /proc/net/vlan/bond16.21
bond16.21 VID: 21 REORDER_HDR: 1 dev->priv_flags: 1
total frames received 0
total bytes received 0
Broadcast/Multicast Rcvd 0

total frames transmitted 18
total bytes transmitted 972
total headroom inc 0
total encap on xmit 0
Device: bond16
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:


If i setup another pair of eth's VLAN and recreate a bond, then it works fine:
eth3.21 + eth4.21 = bond21 with IP address 157.21.6.2 can ping other hosts.

So, I guess my question is: is this setup allowed? Can i create a vlan interface on top of another vlan interface?

Else, can i can define a multi-VLAN interface?

Any other ideas welcome.

Thanks
JB
 
Old 05-22-2013, 02:25 AM   #2
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Rep: Reputation: 5
It is my understanding that, no, you would not be able to create a vlan on top of another vlan... but that is just my guess. I am an intern at a networking company, so take it with a grain of salt.
 
  


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
VLAN-interface comes up slowly Barry1 Linux - Networking 1 01-06-2011 05:49 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 03:39 AM
Failed to remove VLAN interface. kanth001 Linux - Networking 1 03-01-2010 04:01 AM
Help in Vlan-Interface Paris Heng Linux - Networking 1 03-02-2009 06:20 PM
Using tcpdump on a sub-interface vlan mikeotieno Linux - Networking 3 09-24-2008 02:32 PM

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

All times are GMT -5. The time now is 04:16 AM.

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