Skip to main content
44 votes

Create wireless access point and share internet connection with nmcli

You can create a hotspot with the following: nmcli dev wifi hotspot ifname wlp4s0 ssid test password "test1234" (where wlp4s0 is the name of your Wifi interface). Reference: https://wiki....
ysdx's user avatar
  • 1,893
35 votes

Bring down and delete bridge interface that's up

$ sudo ip link delete br0 type bridge that's all
robo's user avatar
  • 351
32 votes
Accepted

Why assign MAC and IP addresses on Bridge interface

Because a bridge is an ethernet device it needs a MAC address. A linux bridge can originate things like spanning-tree protocol frames, and traffic like that needs an origin MAC address. A bridge ...
larsks's user avatar
  • 36.4k
23 votes
Accepted

Bridged interfaces and VLAN tags

Yes: you can set the bridge to be VLAN aware. The bridge will then handle VLAN IDs attached to frames crossing it, including tagging and untagging them according to configuration, and will send a ...
A.B's user avatar
  • 37.5k
18 votes
Accepted

What is virtual bridge with -nic in the end of name

The interface virbr0-nic is not a bridge, but a normal ethernet interface (although a virtual one, created with ip add type veth). It's there so that the bridge has at least one interface beneath it ...
token47's user avatar
  • 196
17 votes

How to know if a network interface is tap, tun, bridge or physical?

You can use the more-or-less undocumented -d option to ip(8), which tells you the type of certain devices including tun, tap & veth: e.g. $ ip -d a [regular devices] 6: virbr0-nic: <BROADCAST,...
Ben's user avatar
  • 291
15 votes

Why assign MAC and IP addresses on Bridge interface

The bridge device listed with your other networking devices does not represent the virtual bridge, it represents a virtual NIC that is connected to the bridge. If you had a physical bridge connected ...
11_22_33's user avatar
  • 141
14 votes

Bring down and delete bridge interface that's up

How about? docker network prune
Czollli's user avatar
  • 141
14 votes

Why assign MAC and IP addresses on Bridge interface

Yes, the bridge interface acts as an additional port. After man 5 systemd.netdev: A bridge device is a software switch, and each of its slave devices and the bridge itself are ports of the switch.
ciastek's user avatar
  • 257
13 votes
Accepted

How do I configure a network interface bridge from WiFi to Ethernet with Debian?

For configuring a bridge from ethernet to wifi, it is as simple as doing in your /etc/network/interfaces: auto eth0 allow-hotplug eth0 iface eth0 inet manual auto wlan0 allow-hotplug wlan0 iface ...
Rui F Ribeiro's user avatar
13 votes
Accepted

How does iptable work with linux bridge?

Linux' bridge filter framework has available mechanisms where the layer 2 bridge code can do an upcall to iptables (as well as arptables or ip6tables) and have filtering travel from layer 2 (bridged ...
A.B's user avatar
  • 37.5k
12 votes

Create wireless access point and share internet connection with nmcli

On a Centos 7 it looks like this. Check if AP is possible at all: iw list | less and search for "AP" among supported interface modes. Browse your devices to find the name: nmcli d And setup and ...
Arkadiusz Dzik's user avatar
12 votes

Are bridges like hubs or switches?

A bridge is a network aggregation device, similar in practice to a switch. The bridges implemented in the Linux kernel follow this model. Like any bridge, they forward traffic based on destination MAC ...
Stephen Kitt's user avatar
12 votes
Accepted

Theoretical: TAP interface w/ WIFI parent interface

This Network Engineering SE link Four layer-2 addresses in 802.11 frame header explains quite well the difference between Ethernet and Wifi. Wifi requires additional MAC addresses for communication: ...
A.B's user avatar
  • 37.5k
10 votes

Bring down and delete bridge interface that's up

On macOS and possibly some BSD systems: sudo ifconfig [bridge-name] down sudo ifconfig [bridge-name] destroy
rien333's user avatar
  • 671
10 votes

How to allow guest OS to access Internet in qemu?

My second question is - is there an easier way to configure all of this to allow simple internet access to guest os? You don't (or, at least, shouldn't) need to manually configure anything for simple ...
Crestwave's user avatar
  • 178
10 votes
Accepted

Linux bridge for virtual machines not forwarding IP packets (but is forwarding ARP)

Docker loads the br_netfilter module (to get the sysctl property net.bridge.bridge-nf-call-iptables=1) when it uses iptables. This makes bridged frames (Ethernet, layer 2) subject to iptables ...
A.B's user avatar
  • 37.5k
9 votes
Accepted

What is multicast snooping and why does it break UPnP/DLNA?

Multicast may represent a heavy load for switch-routers (not mentioning the security aspect with potential DoS attacks). On a switch (or a Linux bridge), Multicast snooping sits at network layer 2.5 ...
xhienne's user avatar
  • 18k
8 votes

How to know if a network interface is tap, tun, bridge or physical?

This command will do the job: ip tuntap Result example: vnet0: tap or with details: ip -details tuntap Result example: vnet0: tap Attached to processes: qemu-system-x86(2225)
BMWW's user avatar
  • 155
8 votes
Accepted

Linux VLAN-aware bridges and trunk ports

When using the bridge vlan command, you can add (or delete) a range of VLAN IDs in a single shot. For example: # bridge vlan add vid 2-4094 dev eth0 will add all available VLANs to the trunk ...
A.B's user avatar
  • 37.5k
7 votes

Create wireless access point and share internet connection with nmcli

I know this is an old question, but thought I would add my comments as this may help someone in the future. The whole process is just three commands as @Dzik has correctly mentioned. nmcli ...
NIK's user avatar
  • 529
7 votes
Accepted

Why can't we easily bridge over a wireless NIC

The problem is that wireless frames in the regular mode only have space for three MAC addresses. The details are a bit more complex, but roughly speaking, there's one MAC address for the external ...
dirkt's user avatar
  • 32.7k
7 votes
Accepted

Adding a physical ethernet interface to kvm qemu bridge

A "physical interface" refers to an actual network device on your computer -- that is, something into which you can plug an ethernet cable, or a wireless network device. A "virtual ...
larsks's user avatar
  • 36.4k
7 votes
Accepted

How can I make Linux generate different MAC addresses for different bridge devices which are on different PCs?

Browsing in Internet I found this bug report on systemd-udev related to Debian 11 bridges: systemd-udev interferes with MAC addresses of interfaces it's not supposed to do #21185: ash.in.ffho.net:~# ...
A.B's user avatar
  • 37.5k
6 votes

How can I bridge two interfaces with ip/iproute2?

The equivalent of brctl show is bridge link. You can show the bridge status per device with bridge link show dev eth0 but bridge looks at the network interface and tells you which bridge it belongs to ...
Dominik Heidler's user avatar
6 votes

How to create wireless bridge connection with nmcli

It is possible. If your goal is to create a WiFi Hotspot/Access Point and bridge it to your ethernet connection, you can do that using nmcli. If your computer is connected to a router via an ethernet ...
Eduardo de Souza Cruz's user avatar
6 votes

Packets not moving through linux ethernet bridge

This is a quite old question, but it might be helpful for others. Linux bridge might drop packets, if not configured correctly. I had a likewise problem and could solve it with the following ...
smilee89's user avatar
  • 163
6 votes

Transparent Bridge from Existing WiFi to Ethernet?

Ok, I think the main problem here was a communication problem: You were using terms that have a very specific meaning in networking (bridge WLAN to LAN) instead of describing the desired outcome (I ...
dirkt's user avatar
  • 32.7k
6 votes
Accepted

What is the net.bridge.bridge-nf-call-iptables kernel parameter?

These parameters determine whether packets crossing a bridge are sent to iptables for processing. Most Kubernetes CNIs rely on iptables, so this is usually necessary for Kubernetes. The in-kernel ...
Stephen Kitt's user avatar
5 votes
Accepted

Understanding virtual switches in Linux

I assigned the IP address 192.168.1.1 to eth0 That's where this setup went wrong. eth0 has been set as a bridge member interface (layer 2) and therefore should not have any IP (layer 3) address. (...
Celada's user avatar
  • 44.7k

Only top scored, non community-wiki answers of a minimum length are eligible