@@ -19,16 +19,18 @@ cmd=( qemu-system-x86_64
1919# Video
2020 -device VGA,edid=on,xres=1024,yres=768
2121
22- # Network configuration. Use one controller.
22+ # Network configuration. Use one controller on testnet1 and, optionally, one on testnet2
2323 -netdev socket,id=testnet1,listen=:1234
2424# -netdev socket,id=testnet2,listen=:1235
2525# Intel 82540EM
2626 -device e1000,netdev=testnet1,mac=10:11:12:08:25:40
2727# -device e1000,netdev=testnet2,mac=11:12:13:08:25:40
2828# Intel 82574L
2929# -device e1000e,netdev=testnet1,mac=10:11:12:08:25:74
30+ # -device e1000e,netdev=testnet2,mac=11:12:13:08:25:74
3031# VIRTIO
31- # -device virtio-net-pci,netdev=testnet1,mac=10:11:12:13:14:15 #,disable-legacy=on,disable-modern=false
32+ # -device virtio-net-pci,netdev=testnet1,mac=10:11:12:00:1A:F4 #,disable-legacy=on,disable-modern=false
33+ # -device virtio-net-pci,netdev=testnet2,mac=11:12:13:00:1A:F4 #,disable-legacy=on,disable-modern=false
3234
3335# Disk configuration. Use one controller.
3436 -drive id=disk0,file=" sys/baremetal_os.img" ,if=none,format=raw
@@ -372,8 +374,10 @@ function baremetal_run_netclient {
372374 -name " BareMetal OS (Second Instance)"
373375 -m 256
374376 -smp sockets=1,cpus=4
375- -netdev socket,id=testnet,connect=127.0.0.1:1234
376- -device e1000,netdev=testnet,mac=10:11:12:13:CA:FE
377+ -netdev socket,id=testnet1,connect=127.0.0.1:1234
378+ -device e1000,netdev=testnet1,mac=10:11:12:13:CA:FE
379+ # -netdev socket,id=testnet2,connect=127.0.0.1:1235
380+ # -device e1000,netdev=testnet2,mac=10:11:12:13:CA:FF
377381 -drive id=disk0,file=" sys/baremetal_os2.img" ,if=none,format=raw
378382 -device ahci,id=ahci
379383 -device ide-hd,drive=disk0,bus=ahci.0
0 commit comments