cd /etc/network
vim interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.190.100
netmask 255.255.255.0
gateway 192.168.190.2
配置DNS:
cd /etc
vim resolv.conf
nameserver 192.168.190.2(IP必须是本机的)
重启:
service networking restart
/etc/init.d/networking restart
kalilinuxNAT模式可以使用的配置
最新推荐文章于 2024-08-11 20:27:05 发布