debian 10 静态ip配置
查看网卡ip addr修改配置vim /etc/network/interfaces模板auto ${网卡名}iface ${网卡名} inet ${static}address ${IP}netmask ${netmask}gateway ${gateway}auto ens37iface ens37 inet staticaddress 10.10.100.31netmask 255.255.
·
查看网卡
ip addr
修改配置
vim /etc/network/interfaces
模板
auto ${网卡名}
iface ${网卡名} inet ${static}
address ${IP}
netmask ${netmask}
gateway ${gateway}
auto ens37
iface ens37 inet static
address 10.10.100.31
netmask 255.255.255.0
gateway 10.10.100.2
重启网卡
systemctl restart networking
或重启设备(重启网卡报错就重启设备)
reboot
更多推荐
已为社区贡献2条内容
所有评论(0)