首頁 > 軟體

Failed to start LSB: Bring up/down networking 有關問題解決

2020-06-16 17:23:28

問題資訊

今天,我修改完網絡卡組態檔後,執行重新啟動網絡卡操作,提示Failed to start LSB: Bring up/down networking

# service network restart
Restarting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.


# systemctl status network.service
1105 15:30:10 localhost.localdomain systemd[1]:Failed to start LSB: Bring up/down networking.

1105 15:30:10 localhost.localdomain systemd[1]: Unit network.service entered failed state.

解決方法

原來是我的網絡卡組態檔有問題,因此要檢視網絡卡資訊,修改網絡卡組態檔資訊。
檢視網絡卡設定資訊

# ip addr
1: lo:
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
2:  ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:af:66:fc brd ff:ff:ff:ff:ff:ff
    inet 10.1.2.182/23 brd 10.1.3.255 scope global ens34
    valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:feaf:66fc/64 scope link 
    valid_lft forever preferred_lft forever

修改ifcfg-XXX檔案

# cd /etc/sysconfig/network-scripts/

# mv  ifcfg-XXX   ifcfg-ens34

# vim ifcfg-ens34
NAME=ens34  
DEVICE=ens34
HWADDR=00:50:56:af:66:fc

重新啟動網絡卡

# service network restart 

本文永久更新連結地址http://www.linuxidc.com/Linux/2017-01/139669.htm


IT145.com E-mail:sddin#qq.com