[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Network configuration.
From: |
peter |
Subject: |
Network configuration. |
Date: |
Mon, 06 Jul 2020 08:08:30 -0700 |
Hi,
This command produces error reply "qemu-system-i386: Invalid parameter 'net'".
qemu-system-i386 -drive file=$Sysdev,format=raw \
-netdev tap,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \
-device ne2k_pci,netdev=n1
Therefore try this. The intention is qemu host 172.23.8.1 and qemu
guest 172.23.8.2. (Note the ambiguity of "host".)
qemu-system-i386 -drive file=$Sysdev,format=raw \
-netdev user,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \
-device ne2k_pci,netdev=n1
A working guest system is produced. Good.
The qemu host tries to make an interface for the
subnet to the guest.
grep 8.1 /etc/network/interfaces
address 172.23.8.1
Check whether the interface is created.
ip addr show | grep 172.23.8.1
ip addr show | grep 172.23.8.2
No result from either.
Q1. Why does qemu fail when a tap device is specified?
Q2. When qemu succeeds to make a guest system, why does
it fail to make the interface with address 172.23.8.2?
Thanks, ... Peter E.
--
https://en.wikibooks.org/wiki/Medical_Machines
https://en.wikibooks.org/wiki/Oberon
Tel: +1 604 670 0140 Bcc: peter at easthope. ca
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Network configuration.,
peter <=