From ee23fa2bcae2fd793d62a531cb5ae0c9272d8a97 Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Thu, 16 May 2019 22:47:12 +0300 Subject: OTA-2541: Static IP address on Primary's and Secondary's internal NIC Signed-off-by: Mike Sul --- scripts/qemucommand.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/qemucommand.py') diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py index cafab6d..1049d7c 100644 --- a/scripts/qemucommand.py +++ b/scripts/qemucommand.py @@ -109,8 +109,8 @@ class QemuCommand(object): cmdline += ['-net', 'dump,file=' + self.pcap] if self.secondary_network: cmdline += [ - '-net', 'nic,vlan=1,macaddr='+random_mac(), - '-net', 'socket,vlan=1,mcast=230.0.0.1:1234,localaddr=127.0.0.1', + '-netdev', 'socket,id=vlan1,mcast=230.0.0.1:1234,localaddr=127.0.0.1', + '-device', 'e1000,netdev=vlan1,mac='+random_mac(), ] if self.gui: cmdline += ["-serial", "stdio"] -- cgit v1.2.3-54-g00ecf