Skip to main content

Questions tagged [vlan]

Virtual LAN(vlan) is a technique to create isolated broadcast and multicast domains at layer2 level.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

How do I forward VLAN-tagged Ethernet frames through a Linux bridge between two physical Ethernet interfaces?

Background I am currently working on a device that uses a Beaglebone Black as the base board, and has a 3rd-party MAC/PHY attached to the breakout pins. Problem The desire is to forward all Ethernet ...
user25729276's user avatar
0 votes
0 answers
28 views

What's the difference between setting up bridge VLAN with `bridge` command and /etc/network/interfaces

On Debian, I noticed I can set up bridge VLANs in /etc/network/interfaces with bridge-tools installed: auto br0 iface br0 inet static bridge_ports enp2s0 enp3s0 enp4s0 enp5s0 enp7s0 address 192....
CodeDuck's user avatar
1 vote
1 answer
59 views

Is it possible to configure Ethertype DSA VLAN tagging on an Ethernet port that has a real PHY connection to the outside world?

I am working on an embedded system that will connect a processor running Linux to an Ethernet switch via a "conduit" Ethernet link (e.g. eth0) using the port-based Ethertype DSA (Marvell) ...
srl100's user avatar
  • 11
0 votes
1 answer
40 views

Marking packets in iptables based on output interface

I have an unusual setup on my server. We have three outgoing ethernet ports, all connected to a single bridge interface that we split into two VLANs: ip link add veth type bridge ip link set veth ...
Garrett's user avatar
0 votes
0 answers
39 views

Can VLANs coexist with a non-tagged LAN on the same interface?

The questions is basically in the subject, but to give it a little more context: Please consider a setup of 2 (embedded) systems, both running Linux. Each system has two physical NICs, named eth0 and ...
Robert's user avatar
  • 189
1 vote
1 answer
915 views

How to create a linux vlan aware bridge with ingress packets untagged and egress packets tagged

I am trying to implement an obscure workaround to a specific problem tied to a switch misconfiguration I observe in a real case scenario. Please just assume the following : My system is plugged to a ...
Almandin's user avatar
0 votes
0 answers
92 views

For a VLAN aware bridge, do you assign the native VLAN to the bridge itself or a vlan interface?

Given a vlan-aware bridge in which I have a multitude of (tagged) vlans. VLAN1 is the management VLAN and untagged. The machine hosts lots of VMs/containers which are part of one more VLANs; the host ...
divB's user avatar
  • 208
0 votes
1 answer
167 views

systemd-networkd bridge does not work with VLAN

I am trying to configure one bridge per VLAN (without VLAN filtering) with systemd-networkd for easy configuration of libvirt VMs on Debian 12. This does work as expected without VLAN and it does work ...
Hauke Laging's user avatar
  • 90.4k
1 vote
0 answers
54 views

Ignore vlan tagged packets on primary interface

I have an Ubuntu VM on ESXi with a single network interface which is a port group tagged as VLAN 4095 so it has access to all tagged VLANs. The native VLAN is 37. I've created several vlan interfaces ...
Elliott B's user avatar
  • 565
0 votes
1 answer
708 views

Change bridge vlan protocol from 802.1q to 802.1ad and packets start dropping

I have a bridge interface (swbridge) with vlan_protocol=802.1q. Sending tagged frame to it. I can see ARP request in Wireshark Successfully (ping request from another device), but when changing ...
SAMPro's user avatar
  • 227
0 votes
0 answers
216 views

vlan with linux bridge ping not working

I want to configure the bridge br-mgmt with VLAN. I created the VLAN and bridge, then assigned IP addresses to the bridge, but ping is not working. My netplan configuration looks like this: server 1 ...
daniel's user avatar
  • 1
0 votes
1 answer
521 views

Anaconda boot with a bonded interface on a tagged vlan

I am trying to do a network install of OEL 8 using a custom image. The image works perfectly when the vlan is untagged but I can't get a connection on a tagged vlan. My boot line is (with line feeds ...
doneal24's user avatar
  • 5,249
0 votes
0 answers
962 views

Linux bridge and vlan configuration with Qemu/Libvirt VM

I am trying to forward traffic from my Qemu VMs to my pfSense VM with the help of vlan tagging. I know that libvirt has no direct support for vlan traffic in conjunction with Linux bridges which is ...
MathsJoe's user avatar
1 vote
1 answer
139 views

Macvtap connectivity lost after a few hours?

I setup a macvtap interface like this: ip link add link eth0 vlan type macvlan mode bridge ip address add 10.0.0.17 dev vlan ip link set dev vlan up ip route flush dev eth0 ip route flush dev vlan ip ...
Maestro's user avatar
  • 191
2 votes
2 answers
398 views

VLAN tagging: duplicated packets

I have a problem with VLAN tagging. I am completely newbie about VLAN so maybe there is something I misunderstood at all... Basically: I have a Linux box configured via /etc/network/interfaces as: ...
Morix Dev's user avatar
  • 133
1 vote
1 answer
784 views

packets are filtered via bridge using namespaced network card

trying to make local networking experiment, and unable to ping from within the namespaced network. I'm using Fedora 37. Linux dmitry-desktop 6.1.18-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 11 16:...
DmitrySemenov's user avatar
1 vote
1 answer
571 views

Ping from vlan bridge interface fails when specifying interface name, specifying IP address works as expected

Running into an odd issue where pinging from a VLAN interface specifying the IP address works, but when specifying the interface name it does not. This system is running Rocky Linux 8.5 (4.18.0-348....
Bob Odenkirk's user avatar
2 votes
1 answer
1k views

How to allow VLAN untagged packet to pass through when using VLAN aware bridge

I'm using VLAN aware bridge. I have an interface that I need that only packets with VID 10 and 20 could pass through, any other VIDs should be dropped. I configured the interface like that: bridge ...
Moran Shoeg's user avatar
0 votes
1 answer
2k views

How to configure KVM on Ubuntu 22.04 with a trunk port?

I'm setting up a Dell R440, with Ubuntu 22.04, in a trunk port from a Cisco Catalyst Switch. Problem is that only the native vlan traffic is captured in the system. Port configuration is the following:...
Zip's user avatar
  • 1,032
0 votes
1 answer
300 views

Prevent VAP from accessing the internet (with ebtables)

I'm trying to find a way to connect smart home devices to my local network but deny them access to the internet. Rather than set individual rules bound to an IP address, I'm trying to create a virtual ...
Brandon Lesko's user avatar
0 votes
1 answer
116 views

VLANs in bare metal servers

I have three bare metal servers; server number one and number two are within the same LAN. I intend to set up two virtual machines (let's call them A, B) on server number one, two virtual machines (C, ...
Tim's user avatar
  • 11
1 vote
0 answers
64 views

Why 802.1q protocal packet auto dropped by interface?

I transfer a series of test packet with IEC61850_SV protocal in my host as follows: 01 0C CD 04 00 03 00 0C CD 04 00 00 81 00 80 01 88 BA 40 03 01 24 00 00 00 00 60 82 01 18 80 01 01 A2 82 01 11 30 ...
Sun Caelus's user avatar
1 vote
0 answers
329 views

Accept all vlan tagged traffic on interface

I have the following setup. It is an ongoing setup to migrate my network in seperate vlan. My issue is I cannot contact the ubuntu server from my laptop while connecting of wifi_admin(vlan10) but I ...
user1707414's user avatar
2 votes
2 answers
2k views

How to retrieve a DHCP address for a VLAN?

Context: my French ISP (Orange fibre) provides crappy routers and I replaced it with a Ubiquity ER-4 a few years back. I now would like to use a small PC running Debian 10 and systemd-networkd. In ...
WoJ's user avatar
  • 1,575
0 votes
1 answer
249 views

Is there any reason not to use a separate VAP for each client with OpenWrt?

Is there any reason not to do this if I want to have a separate PSK for each client and can't use a RADIUS server for that? Other than maybe the slight performance decrease that is intrinsic to VAP ...
owrtbro's user avatar
3 votes
0 answers
478 views

EdgeRouter Lite OpenBSD traffic routing limits [closed]

When routing traffic between (virtual) interfaces on Ubiquiti EdgeRouter Lite it is hitting some sort of limit. I'd like to get some help to determine what sort of limit is that and how it can be ...
Vlad's user avatar
  • 153
0 votes
0 answers
4k views

Linux bridge, trunk and PVID

Following up my other question I'd like to clarify the following: To configure the bridge interface rather than one of its port, the additional keyword self is needed. The routing stack (at layer 3) ...
Mark's user avatar
  • 1,823
1 vote
1 answer
3k views

Linux bridge with trunk ports and self bridge port

I created VLAN-aware bridge with command and add relevant interfaces: % ip link add br0 type bridge vlan_filtering 1 % ip link set dev eth0 master br0 ... (and repeat this for eth1, eth2, eth3) Now, ...
Mark's user avatar
  • 1,823
1 vote
1 answer
8k views

Bonding with VLAN and bridge on Debian 11

I'm trying to configure on Linux bonding active-backup (2 physical interfaces eth2 and eth3, one is used) but also with two VLANs, and later connect it to internal bridges. I see two options for ...
Jack's user avatar
  • 121
0 votes
1 answer
594 views

Can a linux dummy network device work permanently as a real network interface?

Or does it need a service or systemd to bring it up every boot? I want to manufacture, while learning, a whole NIC schematic virtually in my host to route packets with purpose and host some services ...
the8woodcutter's user avatar
0 votes
1 answer
795 views

Adding a VLAN-transparent bridge to Linux (Debian)

On my current Debian system I use VLAN tagging and I create bridges br-wan and br-lan that I use for LXC containers: auto lo br-lan br-wan iface lo inet loopback iface br-wan inet manual     ...
divB's user avatar
  • 208
0 votes
1 answer
279 views

detect if DHCPOFFER has been received

The Linux box with DHCP client does not know beforehand if it is connected to access or trunk port, so it has to determine it somehow. So I'm thinking of the following: have the box send a ...
Mark's user avatar
  • 1,823
0 votes
1 answer
476 views

Bridge between Physical Ethernet and VLAN possible?

I would like to do something but I dont know if its possible. I have router edgemax edgepoe4: Eth1 : receive a tagged vlan 10 Eth2 (No TAG traffic) : no vlan define, DHCP server defines to connect ...
ade05fr's user avatar
0 votes
1 answer
598 views

VLAN switching between trunk ports on CentOS

I am using CentOS Linux release 8.3.2011 and am struggling to set it up as a switch. The network topology is as follows: [switch1]--------[vsphere]--------------[centos]--------------------[vRouter] ...
Andre's user avatar
  • 1
0 votes
1 answer
1k views

macvlan + vlan configured interface does ignore vlan tags

I need to config two different MAC and IP addresses on the same physical device (eth1). But when I configure a macvlan interface in the default/global namespace and configure a vlan on top of it. I ...
stahlstngel's user avatar
0 votes
0 answers
227 views

multiple vlan bridge with single IP

EDIT. [internet] | [G/W] //ip=192.168.0.1 /24 | [switch1] //ip=192.168.0.248, vlan10 G/W =192.168.10.1, vlan20 G/W =192.168.20.1] | (Tagged) |-eno3 [linux] |-eno4 (Tagged) ...
hybang's user avatar
  • 11
0 votes
1 answer
2k views

Can't get NIC bonding to work in Debian 10

I have a Dell PowerEdge T410 server with a Broadcom Limited NetExtreme II BCM5716 Gigabit Ethernet NIC and Debian 10 which I'm hoping to install Proxmox on top of. My home network is configured with ...
willowen100's user avatar
0 votes
1 answer
547 views

NFS stopped working after network interface card upgrade

Scroll down for latest updates. I have an infrastructure which contains an NFS server that is hosting homes for users. The server is running Ubuntu server, and has 10G Fiber ethernet (Myri-10G dual ...
number9's user avatar
  • 1,074
2 votes
1 answer
295 views

How can I select the network interface for installing a program in linux?

I need to install remotely Omxplayer on a Raspberry Pi. RPi is connected by a LTE modem through PPP0 interface. My RPI is placed another country and I connect to Raspberry through my VPN using SSH. My ...
Jorge Palacios Zaratiegui's user avatar
0 votes
1 answer
194 views

pull WAN ip on LAN dd-wrt on native vlan

TO save wiring I currently have DSL modem bridged to man LAN That DSL modem can be accessed by any computer on native vlan. Cable modem is on VLAN2 One wire goes to the Asus n66u on port 4. If i ...
user3265051's user avatar
0 votes
0 answers
193 views

Re-write source IP to vlan tagged IP

My setup is as follows: PC1: IP of normal interface 10.0.0.11 IP of vlan interface 11.0.0.11 PC2: IP of normal interface 10.0.0.12 IP of vlan interface 11.0.0.12 I can ping 11.0.0.12 with no ...
Lusani's user avatar
  • 1
1 vote
0 answers
774 views

Does libvirt support vlan aware bridges?

I am using libvirt/kvm in Debian 10 with a vlan aware bridge device, and I am stuck trying to configure the network interfaces for my VMs. Does libvirt support vlans? When I do a search the only ...
Chris_F's user avatar
  • 248
1 vote
0 answers
2k views

Set vlan_filtering on bridge correctly ["Operation not supported"]

I'm trying to follow the answer on this question here. Yet, when I try to add a bridge with the "vlan_filtering 1" attribute: pi@raspberrypi:~ $ sudo brctl addbr br0 pi@raspberrypi:~ $ sudo ...
MajorasKid's user avatar
0 votes
1 answer
764 views

Why I can't ping between two siblings macvlans in bridge mode?

In a Ubuntu 20.04 machine connected to my home LAN, I created macvlans under my ethernet device: $ sudo ip link add macvlan1 link enp37s0 type macvlan mode bridge $ sudo dhclient macvlan1 $ sudo ip ...
lvella's user avatar
  • 551
0 votes
1 answer
1k views

Sending vlan-tagged packets from Linux

I am novice at networking and am really new to vlan terminology. I want to separate my network to stuff and guest users depending on the switch port. I prepared a lab with the following: At switch I ...
Stathis Alexopoulos's user avatar
1 vote
0 answers
418 views

Multiple different trunks to KVM guests

I have a host with two physical interfaces, which are in a bond0 and that bond0 is connected to bridge br0. On that bridge I have VLAN subinterfaces (without IP addresses). I need somehow to connect ...
neechee-nka's user avatar
0 votes
1 answer
3k views

Setup the name of a VLAN interface in Debian 10

On Debian 9 I could define a VLAN in /etc/network/interface and give it a name: auto server0 iface server0 inet static pre-up /sbin/ip link add link enp3s0 name server0 type vlan id 40 ...
Luca Bertoncello's user avatar
1 vote
0 answers
150 views

Vlan and bridge

Is it possible to drop Vlan tagged packets received on a non-vlan interface(enslaved in a bridge) in Linux, by virtue of some configuration? Can it be done using bridge vlan ingress filter in Linux? ...
Neelansh Mittal's user avatar
1 vote
0 answers
137 views

sending/receiving on specific port of bridge

We have an board containing an embedded switch. These devices are supposed to be used in a ERPS (https://en.wikipedia.org/wiki/Ethernet_Ring_Protection_Switching) setup, while also allowing auxiliary ...
Villemoes's user avatar
  • 111
1 vote
1 answer
1k views

Using VLANs on linux dummy interfaces

I have an application that uses raw sockets to consume all packets from multiple linux (kernel 4.14) interfaces including wireless. In an attempt to keep extraneous scripting to a minimum, I'm trying ...
apschultz's user avatar