解決辦法: 永久修改: 永久修改: 然後把 /etc/sysconfig/network-scripts/ifcfg-ens33(MACADDR) 或者 /sys/class/net/ens33/address 臨時修改: 臨時修改: 2. Mac 沒問題,關閉系統的 NetworkManager ...
Mar 11 10:18:18 localhost systemd: Starting LSB: Bring up/down networking... Mar 11 10:18:19 localhost network: 正在打開環回介面: [ 確定 ] Mar 11 10:18:19 localhost NetworkManager[9366]: <info> [1552270699.1055] audit: op="connection-activate" uuid="fd005f04-41ac-4401-bd27-decd3492dd84" name="ens33" result="fail" reason="No suitable device found for this connection." Mar 11 10:18:19 localhost network: 正在打開介面 ens33: 錯誤:激活連接失敗:No suitable device found for this connection. Mar 11 10:18:19 localhost network: [失敗] Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost network: RTNETLINK answers: File exists Mar 11 10:18:19 localhost systemd: network.service: control process exited, code=exited status=1 Mar 11 10:18:19 localhost systemd: Failed to start LSB: Bring up/down networking. Mar 11 10:18:19 localhost systemd: Unit network.service entered failed state. Mar 11 10:18:19 localhost systemd: network.service failed.
解決辦法:
- 如果新加網卡或者克隆虛擬機,可能是 mac 地址不對,使用 ip addr 查看mac地址
-
- 永久修改:
然後把 /etc/sysconfig/network-scripts/ifcfg-ens33(MACADDR) 或者 /sys/class/net/ens33/address
-
- 臨時修改:
#ifconfig eth0 down /*禁掉eth0網卡,這裡以eth0網卡為例*/ #ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE /*修改eth0網卡的MAC地址*/ #ifconfig eth0 up /*重新啟動eth0網卡*/
2. Mac 沒問題,關閉系統的 NetworkManager , 註意大小寫