vif0.0: received packet with own address as source address

系统:Centos5.x
内核:2.6.18.x

命令行异常信息:
vif0.0: received packet with own address as source address
也可dmesg查看系统信息
表现为机器不能联网

#查看网络配置
$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet addr:172.16.1.11  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::220:aff:fe10:fcff/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:136140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19734 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11102984 (10.5 MiB)  TX bytes:2350144 (2.2 MiB)

eth0:0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF 
          inet addr:10.0.0.6  Bcast:10.0.15.255  Mask:255.255.240.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encapocal 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:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15932 (15.5 KiB)  TX bytes:15932 (15.5 KiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scopeink
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:420980 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32279 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34869961 (33.2 MiB)  TX bytes:3708085 (3.5 MiB)
          Interrupt:254 Base address:0x4000

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scopeink
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:31951 errors:0 dropped:0 overruns:0 frame:0
          TX packets:408757 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3655532 (3.4 MiB)  TX bytes:32287014 (30.7 MiB)
说明:eth0,eth0:6 的HWaddr地址是一样,跟vif0.0不能一样,如果一样就是有问题了。
      上述结果已说明存在问题,HWaddr地址都一样,MAC地址重复,所以才会出现满屏的错误。

#手动指定一个一个MAC地址
vi /etc/ sysconfig/network-scripts/ifcfg-eth0
#重启网卡
service network restart
or
/etc/init.d/networt  restart

这种只是对当前会话有效,如果要设置成永久,最好设置开机启动:
在 /etc/rc.d/rc.local 中加入以下三行(也可在/etc/init.d/network中添加)
ifconfig eth0 down
ifconfig eth0 hw ether 01:20:0A:10:FD:FF
ifconfig eht0 up

你可能感兴趣的:(linux)