VPSװkali linux
IPַ# vi /etc/network/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 #eth0ʹĬϵľַ̬
address 192.168.168.194 #eth0IPַ
netmask 255.255.255.0 #eth0
gateway 192.168.168.1 #õǰĬ
DNS
# vi /etc/resolv.conf
domain
nameserver 192.168.168.1 #ѡDNS
nameserver 114.114.114.114 #DNS
# /etc/init.d/networking restart
ҳ:
[1]