Mdaeo'Blog

Promox VE虚拟机修改debian系统设置固定IP

一、修改IP地址输入以下命令:

nano /etc/network/interfaces:
auto lo
iface lo inet loopback
allow-hotplug ens18
#固定IP
iface ens18 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
#自动获取IP
#allow-hotplug ens18
#iface eth0 inet dhcp

二、修改DNS地址:

nano /etc/resolv.conf:
nameserver 114.114.114.114

三、重启电脑

reboot

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »