ifconfig設置ip時出現提示 ifconfig: SIOCSIFFLAGS: Address not available


一.筆者使用ifconfig觀察網卡情況如下:

root@jello:/# ifconfig eth0

eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

從HWaddr為0看出有異常(網卡的MAC地址是網絡通信的基礎)

二.筆者的解決方法為:設置網卡的mac地址,如:

ifconfig eth0  hw ether 43:1d:32:81:32:22


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM