I'd like to prepare a QEMU guest for equal-cost multipath routing on
OpenBSD using two network interfaces.  I've set up the following:

  qemu-img -f qcow2 ~/tmp/openbsd-6.1.img 5g

  qemu-system-x86_64 -boot c \
        -redir tcp:2261::22 \
        -redir tcp:4761::80 \
        -netdev user,id=network0,net=10.0.2.0/24 \
        -netdev user,id=network1,net=10.0.3.0/24 \
        -device e1000,netdev=network0 \
        -device rtl8139,netdev=network1 \
        -m 1024 -enable-kvm \
        -cdrom ~/tmp/install61.iso ~/tmp/openbsd-6.1.img

That seems to give me two types of interface on two different networks.
Have I laid the foundation correctly with the above options?

Or is there something additional I need to set or be aware of in regards
to host/guest networking?  With the above settings, DNS would be
10.0.2.3 and 10.0.3.3 and the gateways 10.0.2.2 and 10.0.3.2, right?

Regards,
Lars

Reply via email to