I have a few questions about running a linux distro in a vm on a
linux box. I have read up about how to get Ethernet working over a bridge,
Hopefully those manuals didn't contain the brctl command...
`man ip` (or `man ip-link`) will guide you in the right direction.
Well, I did try brctl and got a little farther than with ip. I tried the
steps for ip listed in this website:
https://alberand.github.io/host-only-networking-set-up-for-qemu-hypervisor.html
Got all the way to this one before I got an error:
sudo dnsmasq --interface=br0 --bind-interfaces --dhcp-range=192.168.0.3,192.168.
dnsmasq: failed to create listening socket for 192.168.0.17: Cannot assign reque
However I think the issue might be right before that:
sudo ip link set dev br0 up
sudo ip link set dev tap0 up
These did not return any eror messages, but when I run ip addr, it tells me that both br0 and tap0 are "state DOWN"? I think they should be UP, right??
FYI, here is what ip addr returns:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast s
link/ether 00:07:32:4f:05:91 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.11/24 brd 192.168.0.255 scope global dynamic enp1s0
valid_lft 82309sec preferred_lft 82309sec
inet6 fe80::7534:df0a:13f:4256/64 scope link
valid_lft forever preferred_lft forever
3: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br
link/ether 06:fc:5e:fd:6d:bb brd ff:ff:ff:ff:ff:ff
4: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN gr
link/ether 06:fc:5e:fd:6d:bb brd ff:ff:ff:ff:ff:ff
inet 192.168.0.0/24 brd 192.168.0.255 scope global br0
valid_lft forever preferred_lft forever
inet 192.168.0.17/24 brd 192.168.0.255 scope global secondary br0
valid_lft forever preferred_lft forever
inet 192.168.0.11/24 brd 192.168.0.255 scope global secondary br0
valid_lft forever preferred_lft forever
For good measure, here is what my interfaces file looks like:
/etc/network/interfaces
auto br0
iface br0 inet dhcp
pre-up ip tuntap add dev tap0 mode tap user bbs
pre-up ip link set tap0 up
bridge_ports all tap0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-down ip link set tap0 down
post-down ip tuntap del dev tap0 mode tap
FYI, this is all on the HOST... I have yet to get to setting up the vm
guest.
I did a lot of searches on the error message I got, and variations, and did
not find anything that gave me a hint as to what the issue might be.
Mike
---
* SLMR 2.1a * Come in here, dear boy, have a cigar, you're gonna go far
--- GTMail 1.26
* Origin: moe's * 1-502-875-8938 * moetiki.ddns.net:27 (1:2320/107.0)