|
|
虚拟网卡干扰正常上网,请帮忙给看一下。
今天更新系统之后出现虚拟网卡干扰正常上网的现象,以前没有发生过这种情况。
- apt-get update; apt-get -y upgrade; apt-get -y dist-upgrade
复制代码
如下是网卡配置文件,
- wolfkin:~# cat /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # This is a list of hotpluggable network interfaces.
- # They will be activated automatically by the hotplug subsystem.
- mapping eth0
- script grep
- map eth0
- # The primary network interface
- allow-hotplug eth0
- iface eth0 inet dhcp
- # Bridge for QEMU
- auto br0
- iface br0 inet dhcp
- pre-up /sbin/ifconfig eth0 up
- network 192.168.1.0
- bridge_ports eth0
- # bridge_fd 9
- # bridge_hello 2
- # bridge_maxage 12
- # bridge_stp off
复制代码
如下是启动以后,执行的命令及其结果,
- wolfkin:~# ping -c 3 192.168.1.1
- PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
- From 192.168.1.130 icmp_seq=1 Destination Host Unreachable
- From 192.168.1.130 icmp_seq=2 Destination Host Unreachable
- From 192.168.1.130 icmp_seq=3 Destination Host Unreachable
- --- 192.168.1.1 ping statistics ---
- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2010ms
- , pipe 3
- wolfkin:~# ifconfig
- br0 Link encap:Ethernet HWaddr 00:50:8D:60:6A:3A
- inet addr:192.168.1.130 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:326 errors:0 dropped:0 overruns:0 frame:0
- TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:23104 (22.5 KiB) TX bytes:810 (810.0 b)
- eth0 Link encap:Ethernet HWaddr 00:50:8D:60:6A:3A
- inet addr:192.168.1.130 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:364 errors:0 dropped:0 overruns:0 frame:0
- TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:32613 (31.8 KiB) TX bytes:7966 (7.7 KiB)
- Interrupt:11 Base address:0xc000
- 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:26 errors:0 dropped:0 overruns:0 frame:0
- TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:2810 (2.7 KiB) TX bytes:2810 (2.7 KiB)
- wolfkin:~# ifdown br0
- br0: port 1(eth0) entering disabled state
- eth0: Promiscuous mode enabled.
- device eth0 left promiscuous mode
- br0: port 1(eth0) entering disabled state
- wolfkin:~# ping -c 3 192.168.1.1
- connect: Network is unreachable
- wolfkin:~# ifconfig
- 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:26 errors:0 dropped:0 overruns:0 frame:0
- TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:2810 (2.7 KiB) TX bytes:2810 (2.7 KiB)
- wolfkin:~# ifup eth0
- ifup: interface eth0 already configured
- wolfkin:~# ifdown eth0
- wolfkin:~# ifup eth0
- Internet Software Consortium DHCP Client 2.0pl5
- Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
- All rights reserved.
- Please contribute if you find this software useful.
- For info, please visit http://www.isc.org/dhcp-contrib.html
- sit0: unknown hardware address type 776
- eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
- sit0: unknown hardware address type 776
- Listening on LPF/eth0/00:50:8d:60:6a:3a
- Sending on LPF/eth0/00:50:8d:60:6a:3a
- Sending on Socket/fallback/fallback-net
- DHCPREQUEST on eth0 to 255.255.255.255 port 67
- DHCPACK from 192.168.1.62
- bound to 192.168.1.130 -- renewal in 43200 seconds.
- wolfkin:~# ifconfig
- eth0 Link encap:Ethernet HWaddr 00:50:8D:60:6A:3A
- inet addr:192.168.1.130 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:454 errors:0 dropped:0 overruns:0 frame:0
- TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:41254 (40.2 KiB) TX bytes:9049 (8.8 KiB)
- Interrupt:11 Base address:0xc000
- 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:26 errors:0 dropped:0 overruns:0 frame:0
- TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:2810 (2.7 KiB) TX bytes:2810 (2.7 KiB)
- wolfkin:~# ping -c 3 192.168.1.1
- PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
- 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=3.38 ms
- 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.04 ms
- 64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=1.21 ms
- --- 192.168.1.1 ping statistics ---
- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms
- rtt min/avg/max/mdev = 1.048/1.883/3.383/1.062 ms
- wolfkin:~# ifup br0
- eth0: Promiscuous mode enabled.
- device eth0 entered promiscuous mode
- eth0: Promiscuous mode enabled.
- eth0: Promiscuous mode enabled.
- br0: port 1(eth0) entering learning state
- Waiting for br0 to get ready (MAXWAIT is 32 seconds).
- br0: topology change detected, propagating
- br0: port 1(eth0) entering forwarding state
- Internet Software Consortium DHCP Client 2.0pl5
- Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
- All rights reserved.
- Please contribute if you find this software useful.
- For info, please visit http://www.isc.org/dhcp-contrib.html
- sit0: unknown hardware address type 776
- sit0: unknown hardware address type 776
- Listening on LPF/br0/00:50:8d:60:6a:3a
- Sending on LPF/br0/00:50:8d:60:6a:3a
- Sending on Socket/fallback/fallback-net
- DHCPREQUEST on br0 to 255.255.255.255 port 67
- DHCPACK from 192.168.1.62
- bound to 192.168.1.130 -- renewal in 43200 seconds.
- wolfkin:~# ping -c 3 192.168.1.1
- PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
- 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=2.93 ms
- 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.05 ms
- 64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=3.18 ms
- --- 192.168.1.1 ping statistics ---
- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms
- rtt min/avg/max/mdev = 1.059/2.391/3.183/0.947 ms
- wolfkin:~# ifconfig
- br0 Link encap:Ethernet HWaddr 00:50:8D:60:6A:3A
- inet addr:192.168.1.130 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:7107 errors:0 dropped:0 overruns:0 frame:0
- TX packets:5765 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:3017289 (2.8 MiB) TX bytes:743612 (726.1 KiB)
- eth0 Link encap:Ethernet HWaddr 00:50:8D:60:6A:3A
- inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:7980 errors:0 dropped:0 overruns:0 frame:0
- TX packets:6363 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:3501780 (3.3 MiB) TX bytes:835899 (816.3 KiB)
- Interrupt:11 Base address:0xc000
- 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:2231 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2231 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:255351 (249.3 KiB) TX bytes:255351 (249.3 KiB)
- wolfkin:~# uname -a
- Linux wolfkin 2.6.16-2-686 #1 Fri Aug 18 19:01:49 UTC 2006 i686 GNU/Linux
- wolfkin:~# cat /proc/version
- Linux version 2.6.16-2-686 (Debian 2.6.16-18) (fs@debian.org) (gcc version 4.0.4 20060730 (prerelease) (Debian 4.0.3-6)) #1 Fri Aug 18 19:01:49 UTC 2006
复制代码 |
|