- 设置静态ip地址
备份 /etc/network/interfaces 文件,并打开
cp /etc/network/interfaces /etc/network/interfaces.backup
sudo nano /etc/network/interfaces
按照下列内容进行编辑
# Wired adapter 0
allow-hotplug eth0
#no-auto-down eth0
iface eth0 inet static
address 192.168.0.81
netma