Need help fixing the bridge connection between Linux Devuan 5 and FreeBSD 13.2 (virtualized with qemu + kvm + libvirt)

Status
Not open for further replies.
I would like to remove this :

169.254.0.0/16 dev tap0 proto kernel scope link src 169.254.236.170

how can I do that ?

ip route del 169.254.0.0/16 dev tap0 proto kernel scope link

let's see : nothing.
 
that is a link local addr should not matter
this is problematic
default dev tap0 scope link
try
route add default gw 192.168.1.1 dev mlan0
 
looks like somehow linux tries to autoconfigure the tap device when it comes up
thats why it has the link local ip and like waiting to receive an ip or something
 
looks like somehow linux tries to autoconfigure the tap device when it comes up
thats why it has the link local ip and like waiting to receive an ip or something

it could be,because I have installed libvirt and virt-manager.
 
Some help from the devuan 5 ML :

On Thu, Oct 05, 2023 at 02:20:47PM +0200, Mario Marietto via Dng wrote:
> I'm trying to set up a bridge on Linux Devuan 5 (host os) with the
> goal to give the connectivity to FreeBSD 13.2,that I have virtualized
> with qemu-kvm-libvirt.

If you're trying to setup a bridge, then you're going about it the
wrong way.. You'd set that up in /etc/network/interfaces, or in a file
under /etc/network/interfaces.d where you bridge your mlan0 to your
tap0. This is more involved when using wifi, but it can be done. See
man interfaces, the bridge-utils package, and the wpasupplicant
package. You mentioned
you're using network manager. If so, then you will probably want to
dump network manager if you go this route.

> on Devuan I did :
>
> # iptables -t nat -A POSTROUTING -o mlan0 -j MASQUERADE

If you want to keep going the way you are, then I think you want the
DNAT target, not MASQUERADE.
 
so,maybe this is the solution :

Code:
# iptables -t nat -A POSTROUTING -o mlan0 -j DNAT
# ip tuntap add tap0 mode tap
# ip link set dev tap0 up
# ifconfig tap0 192.168.99.1/24
# echo 1 > /proc/sys/net/ipv4/ip_forward

Let's see...

can you help me here ?

iptables v1.8.9 (nf_tables): DNAT: option "--to-destination" must be specified

what could be destination ?
 
So, it did turn out to be a Linux support thread. I'm going to close it. Ask Linux configuration issues on a Linux forum. The fact you're using a FreeBSD guest is completely irrelevant here.
 
Status
Not open for further replies.
Back
Top