Kali Linux VMWARE 配置静态IP

/etc/network 下:interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
gateway 192.168.1.1


/etc/network 下:resolv.conf

nameserver 8.8.8.8

配置好后,/etc/init.d/networking restart 网卡重启即可!

你可能感兴趣的:(linux,网卡,networking)