给你看我的配置,这里eth0是我插网线的端口,pnet0实际上是linux bridge,web访问http://192.20.1.100 或者终端ssh 192.20.1.100 都可以
root@eve-ng:/opt/unetlab/addons/qemu# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static
address 192.20.1.100
netmask 255.255.255.0
gateway 192.20.1.254
dns-nameserver 10.2.2.2
pre-up ip link set dev eth0 up
bridge_ports eth0
bridge_stp off