首页 > 代码库 > Device eth0 has different MAC address than expected, ignoring

Device eth0 has different MAC address than expected, ignoring

--启动时报 Device eth0 has different MAC address than expected, ignoring
 --修改mac
  -- ifconfig eth0  查看真实的mac   HWaddr 00:BB:BB:BB:BB:BC           

 

   [root@localhost]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:BB:BB:BB:BB:BC           

            inet addr:192.168.5.109  Bcast:255.255.255.255  Mask:255.255.255.0          

            inet6 addr: fe80::2bb:bbff:febb:bbbc/64 Scope:Link          

           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1          

           RX packets:68 errors:0 dropped:0 overruns:0 frame:0          

          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0          

         collisions:0 txqueuelen:1000          

         RX bytes:12188 (11.9 KiB)  TX bytes:5843 (5.7 KiB)

lo        Link encap:Local Loopback           

          inet addr:127.0.0.1  Mask:255.0.0.0          

          inet6 addr: ::1/128 Scope:Host          

         UP LOOPBACK RUNNING  MTU:16436  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:0           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

 


  --修改mac
  vi /etc/sysconfig/network-scripts/ifcfg-eth0
  --修改后保存
  :wq
  --重启服务
  service network start 
  ---已正常

Device eth0 has different MAC address than expected, ignoring