主机无线局域网
在ubuntu中
vim /etc/network/interfaces
配置如下:
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 172.23.0.15 //主机IP地址为172.23.0.14 在同一网段即可
//在主机cmd下ipconfig得到
netmask 255.255.248.0
gateway 172.23.0.2
/etc/init.d/networking restart 重启