kalilinuxNAT模式可以使用的配置

版权声明:转载请声明原文链接地址,谢谢! https://blog.csdn.net/weixin_42859280/article/details/89282883
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

猜你喜欢

转载自blog.csdn.net/weixin_42859280/article/details/89282883