S
S
sazhyk2016-11-01 14:10:35
Computer networks
sazhyk, 2016-11-01 14:10:35

How to "shove" wlan0 into a network bridge?

I want to use a bridge in KVM, into which wlan0 is inserted. Well, that is, "shove" virtual machines into the same network as the host machine. network-manager is disabled, and therefore wi-fi is configured manually. But I can't set up the bridge in any way.
My
Ubuntu 16.04 configs on a laptop
[email protected]:~$ cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto lan
iface lan inet static
   address 192.168.0.150
   netmask 255.255.255.0
   bridge_ports eth0
   bridge_fd 9
   bridge_hello 2
   bridge_maxage 12
   bridge_stp off
   dns-nameservers 192.168.0.1

iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid MyWiFi
wpa-ap-scan 1
wpa-proto WPA RSN
wpa-pairwise TKIP CCMP
wpa-group TKIP CCMP
wpa-key-mgmt WPA-PSK
wpa-psk MyWiFiPassword1234
auto wlan0

Here a bridge is configured on eth0 , it looks to one local network, where there is one router, but wlan0 looks to another.
Please, tell those who know how to set up a wan bridge and "shove" wlan0 into it with the existing configuration?
Just googling for the keywords "wi-fi" "bridge" "bridge" and the like does not match what I want to find in any way ))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dpvpro, 2016-11-10
@dpvpro

This can be done through the virtual machine manager - virt-manager.
Well, or create a bridge and pair it with the real network interface of the subnet you want.
Config example: enp3s0 - real interface, br1 - bridge.

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto br1
iface br1 inet dhcp
    bridge_ports enp3s0
    bridge_stp off
    bridge_fd 0.0
    dns-search blabla.ru
    dns-search blabla.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question