Debian 10下修改静态IP:
在/etc/network/interfaces 文件后添加(配置IP和网关):
allow-hotplug ens33
# iface ens33 inet dhcp
auto ens33
iface ens33 inet static
address 192.168.0.199
netmask 255.255.255.0
gateway 192.168.0.1
保存重启网络
service networking restart
Debian 10下修改静态IP:
在/etc/network/interfaces 文件后添加(配置IP和网关):
allow-hotplug ens33
# iface ens33 inet dhcp
auto ens33
iface ens33 inet static
address 192.168.0.199
netmask 255.255.255.0
gateway 192.168.0.1
保存重启网络
service networking restart
© 著作权归作者所有