首页 帮助中心 新加坡高防服务器 ubuntu如何将网卡名称修改为eth0同时设置静态IP?
ubuntu如何将网卡名称修改为eth0同时设置静态IP?
时间 : 2023-03-30 09:40:00 编辑 : 华纳云 阅读量 : 284

今日介绍以下使用ubuntu如何将网卡名称修改为eth0同时设置静态IP

修改配置文件

/etc/default/grub
GRUB_CMDLINE_LINUX=
“net.ifnames=0 biosdevname=0“

设置生效

update-grub

修改配置文件

/etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.201
network 255.255.255.0
gateway 10.10.10.1
dns-nameservers 10.10.10.1 114.114.114.114

重启主机即可

https://www.hncloud.com/uploads/UEditorImages/202303/30/3b2c2c4efa25f87380449ba637d575c1.jpg

以上是关于“ubuntu如何将网卡名称修改为eth0同时设置静态IP?”工具出现报错时的解决方法”的介绍,希望对大家有用!

华纳云 推荐文章
linux设置静态IP后无法联网怎么解决? 怎么设置ubuntu为静态ip地址 Windows server 如何设置静态IP centos7如何手动设置静态ip linux怎么为网卡配置静态IP地址 windows静态ip如何设置 Ubuntu中配置静态IP的方法 centos7服务器系统如何配置静态ip VMware下Ubuntu 14.04静态IP地址的设置方法 Ubuntu修改密码提示必须选择更长的密码的解决
活动
客服咨询
7*24小时技术支持
技术支持
渠道支持