Re: libvirt guest bridge configuration
Lucio Crusca <lucio@sulweb.org> writes:
> I'm trying to bridge a network interface between host and guest (both
> Debian Buster+Bullseye+Sid) so that NAT is not needed.
>
> In the host /etc/network/interfaces I've declared a bridge like this:
>
> auto eno1
> iface eno1 inet static
> address 2.4.6.8
> netmask 255.255.255.224
> gateway 2.4.6.1
> up route add -net 2.4.6.0 netmask 255.255.255.224 gw 2.4.6.1 dev eno1
>
>
> auto virbr-dummy
> iface virbr-dummy inet manual
> pre-up /sbin/ip link add virbr-dummy type dummy
> up /sbin/ip link set virbr-dummy address 52:54:00:f0:37:ba
>
>
> auto virbr10
> iface virbr10 inet static
> bridge_ports virbr-dummy
> bridge_stp on
> bridge_fd 2
> address 2.4.6.73
> netmask 255.255.255.224
> gateway 2.4.6.65
> broadcast 2.4.6.95
> up route add -net 2.4.6.64 netmask 255.255.255.224 gw 2.4.6.65 dev eno1
My config:
iface qemu inet static
address 192.168.55.1
netmask 255.255.255.0
bridge_ports none
Please note "none" at bridge_ports, no need use virbr-dummy.
It is not clear to me why you manually set routing.
KJ
--
http://wolnelektury.pl/wesprzyj/teraz/
People who have what they want are very fond of telling people who haven't
what they want that they don't want it.
-- Ogden Nash
Reply to: