vif0.0问题-vif0.0: received packet with own address as source address

服务器:192.168.15.11

服务器版本:CentOS release 5.5 (Final)

内核:2.6.18-194.el5xen  x86_64 x86_64 x86_64 GNU/Linux

问题ssh连接失败,接上显示器查看,满屏幕滚动显示vif0.0: received packet with  own address as source address

分析问题解决问题

#查看系统信息

dmesg

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

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

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

printk: 1 messages suppressed.

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

printk: 7 messages suppressed.

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

printk: 2 messages suppressed.

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

printk: 4 messages suppressed.

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

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

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

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

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

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

#查看系统日志

tail -f /var/log/messsge

Aug 17 13:10:31 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:10:39 ldap01 kernel: printk: 4 messages suppressed.

Aug 17 13:10:39 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:10:41 ldap01 kernel: printk: 2 messages suppressed.

Aug 17 13:10:41 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:10:46 ldap01 kernel: printk: 11 messages suppressed.

Aug 17 13:10:46 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:10:52 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:10:57 ldap01 kernel: printk: 1 messages suppressed.

Aug 17 13:10:57 ldap01 kernel: vif0.0: received packet with  own address as source address

Aug 17 13:11:03 ldap01 kernel: printk: 1 messages suppressed.

Aug 17 13:11:03 ldap01 kernel: vif0.0: received packet with  own address as source address

#查看网络配置

[xuekun@ldap01 ~]$ /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 Scope:Link

          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:6    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 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: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 Scope:Link

          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 Scope:Link

          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地址重复,所以才会出现满屏的错误。

解决:

    办法一、

mv /etc/sysconfig/network-scripts/ifcfg-eth0 /home/XX/     #备份网卡配置文件

reboot  #重启,自动生成配置文件,MAC地址还是:FE:FF:FF:FF:FF:FF

办法二、

vi /etc/ sysconfig/network-scripts/ifcfg-eth0         #手动指定一个一个MAC地址。

/etc/init.d/networt  restart    #重启网卡,失败,错误提示和屏幕报错一样。

办法三、

ifconfig eth0 down
ifconfig eth0 hw ether 00:20:0A:10:FC:FF
ifconfig eht0 up

启动没有报错,说明没问题,进一步测试。

/etc/init.d/network restart   #重起网络配置,正常,没有报错。

查看网络配置:

ifconfig

eth0      Link encap:Ethernet  HWaddr 00:20:0A:10:FC: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 Scope:Link

          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:6    Link encap:Ethernet  HWaddr 00:20:0A:10:FC: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 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: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 Scope:Link

          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 Scope:Link

          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)

经过手动指定MAC地址,现在网络通信已完全恢复,看起来不起眼的几步操作,实际排查解决起来,没少花费时间,希望给遇到类似问题的技术爱好者以提示。

本文出自 “dn3s” 博客,谢绝转载!

你可能感兴趣的:(职场,with,AS,source,Address,Address,xen,休闲,packet,Own,received,vif0.0:)