qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to setup user mode network backend and test it?


From: ckim
Subject: how to setup user mode network backend and test it?
Date: Thu, 15 Apr 2021 22:20:15 +0900

Dear list members,

 

I tried qemu networking but it doesn’t work and I can’t figure out what is wrong.

I first tried “-netdev user,id=n1 -device e1000,netdev=n1” as network option,(I added e1000 driver in the linux kernel build too.).

By `ip link show` I can see there is the ‘eth0’ interface. So I gave commands below

 

ifconfig eth0 129.254.32.55 netmask 255.255.255.0 up

route add default gw 129.254.32.1

 

I know this ‘user’ network backend doesn’t support ping protocol so I tried tftp provided by busybox.

 

tftp -g -r hello 129.254.132.47   (get the file hello from tftp server 129.254.132.47, I checked the tftp server works.)

 

But it times out. I tried with IP address 192.168.1.5 (router 192.168.1.1) or with dhcp option, but it’s the same.

Is my approach correct? Or is there something wrong?

Any help or comment will be appreciated.

Thanks,

Chan Kim

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]