So I got QEMU networking to work somewhat, I have manually created a
link0 nic called tun0, which worked with QEMU:

tun0: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
        lladdr 00:bd:64:11:95:01
        inet6 fe80::2bd:64ff:fe11:9501%tun0 prefixlen 64 scopeid 0x8
        inet 10.7.7.1 netmask 0xffffff00 broadcast 10.7.7.255

An IP address 10.7.7.8 was statically set in the guest OS and I were
able to ping and ssh 10.7.7.1 from the guest OS.

However I want to use tun2 instead: (I have other use for tun0)

tun2: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
        lladdr 00:bd:07:aa:be:09
        inet6 fe80::2bd:7ff:feaa:be09%tun8 prefixlen 64 scopeid 0x16
        inet 10.8.8.1 netmask 0xffffff00 broadcast 10.8.8.255

Which I pass the following to QEMU:

-net nic -net tap,ifname=tun2,script=no,downscript=no

But it doesn't work as my expectation at all!!

I statically set the IP address of the guest to 10.8.8.8 but I cannot
ping or ssh 10.8.8.1.

But if I set it to 10.7.7.8, then I could ping and ssh 10.7.7.1, as if
it is still using tun0!!

And I have pass quick on {tun0 tun1} in pf.conf, so it is not the
firewall blocking it.

It seems as if QEMU is stuck with tun0? Is my configuration wrong or something?
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Reply via email to