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