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

猜你喜欢

转载自www.cnblogs.com/dakewei/p/10021879.html