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....
35
votes
Bring down and delete bridge interface that's up
$ sudo ip link delete br0 type bridge
that's all
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 ...
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 ...
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 ...
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,...
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 ...
14
votes
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.
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 ...
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 ...
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 ...
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 ...
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: ...
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
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 ...
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 ...
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 ...
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)
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 ...
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 ...
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 ...
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 ...
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:~# ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
(...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bridge × 526networking × 264
linux × 116
kvm × 59
network-interface × 53
iptables × 48
debian × 45
wifi × 36
virtual-machine × 36
ubuntu × 35
vlan × 34
routing × 33
qemu × 33
ethernet × 33
ip × 26
docker × 22
centos × 21
dhcp × 18
virtualbox × 16
lxc × 16
networkmanager × 15
libvirt × 15
raspberry-pi × 14
nat × 14
firewall × 13