Copyright 2025 HNCloud Limited.
                    香港联合通讯国际有限公司
                
            
            ubuntu如何将网卡名称修改为eth0同时设置静态IP?
        
        
            时间 : 2023-03-30 09:40:00
            编辑 : 华纳云
                        阅读量 : 707
        
                
        今日介绍以下使用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重启主机即可

以上是关于“ubuntu如何将网卡名称修改为eth0同时设置静态IP?”工具出现报错时的解决方法”的介绍,希望对大家有用!
 
                     中国香港服务器
                            中国香港服务器
                         日本服务器
日本服务器
                         美国服务器
美国服务器
                         新加坡服务器
新加坡服务器
                         
                     推荐文章
                推荐文章
             
                         
                             
                 
        