仲龙 發表於 2023-8-22 00:00:00

Linux网络启动问题:Device does not seem to be present解决办法

<p>
        <strong>linux网络启动问题:device does not seem to be present解决办法</strong></p>
<p>
        在整虚拟机时候经常会遇到虚拟机拷贝,然而拷贝之后网络配置会遇到错误</p>
<p>
        service network restart启动网络时候提示如下错误:</p>
<p>
        <span>device does not seem to be present</span></p>
<p>
        <strong>解决步骤</strong></p>
<p>
        1、ifconfig -a 查看当前网卡</p>
<p>
        <img title="Linux网络启动问题:Device does not seem to be present解决办法" alt="Linux网络启动问题:Device does not seem to be present解决办法" src="https://zhuji.jb51.net/uploads/img/202305/e536b570aa435691cac3134a15aed900.jpg"></p>
<p>
        2、修改网络配置文件,</p>
<div class="jb51code">
        <div>
                <div class="syntaxhighlighterbash" id="highlighter_884634">
                        <div class="toolbar">
                                <span>?</span>
</div>
                        <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
<td class="gutter">
                                                        <div class="line number1 index0 alt2">
                                                                1</div>
                                                </td>
                                                <td class="code">
                                                        <div class="container">
                                                                <div class="line number1 index0 alt2">
                                                                        <code class="bash functions">vi</code> <code class="bash plain">/etc/sysconfig/network-scripts/ifcfg-eth0</code>
</div>
                                                        </div>
                                                </td>
                                        </tr></tbody></table>
</div>
        </div>
</div>
<p>
        在原来文件的基础上,修改网卡名称为device=eth1</p>
<p>
        并且把uuid以及mac地址删掉</p>
<p>
        3、mv ifcfg-eth0 ifcfg-eth1</p>
<p>
        4、rm -rf /etc/udev/rules.d/70-persistent-net.rules</p>
<p>
        5、reboot重启</p>
<p>
        重启完成后,再次service network start 成功启动!</p>
<p>
        如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!</p>
<p>
        原文链接:http://blog.csdn.net/vtopqx/article/details/76862247</p>
頁: [1]
查看完整版本: Linux网络启动问题:Device does not seem to be present解决办法