LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-29-2015, 12:13 PM   #1
Pkuutn
LQ Newbie
 
Registered: Jul 2006
Distribution: CentOS 5.2 Fedora 10
Posts: 6

Rep: Reputation: 0
VLANs and parent interface


Hello everybody!
Is there a way in Linux to filter out tagged packets on parent interface completely?
I.e. I have eth0, eth0.7 and eth0.8 up and running, eth0.7 and eth0.8 do get their tagged packets all right, and eth0 got _all_ of them - tagged and untagged. I'd like to have just untagged packets on eth0, if that's possible.
Thank you.
 
Old 08-04-2015, 02:38 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Alias interfaces receive untagged packet.
 
1 members found this post helpful.
Old 08-05-2015, 11:31 AM   #3
Pkuutn
LQ Newbie
 
Registered: Jul 2006
Distribution: CentOS 5.2 Fedora 10
Posts: 6

Original Poster
Rep: Reputation: 0
not exactly an alias, but...

macvlan virtual interface works for me!

in /etc/network/interfaces I have smth like:

Code:
iface eth0 manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down

auto peth0
iface peth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        pre-up ip link add peth0 link eth0 type macvlan
no more tagged/untagged frames mess!
 
  


Reply

Tags
vlan



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
Create 5 processes from a common parent and ensure that the parent terminates after c pro_learner Linux - Newbie 1 03-06-2013 09:25 AM
File descriptors shared between child and parent causing parent to hang. bharadiaam Linux - Newbie 1 03-02-2009 01:01 AM
I would like to ask about VLANs ThanhDuongCong Linux - Networking 3 11-25-2008 08:24 PM
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 09:59 AM

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

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