我无法通过直接连接到路由器的以太网电缆使Ubuntu 10.04计算机(Sony Vaio VGN-SR490)连接到Internet。
我可以使用Windows机器使用相同的电缆连接到Internet,因此Linux的配置方式存在问题。
我如何弄清楚问题所在并解决呢?
这是我在Linux上的网络设置:
$ 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
vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:192.168.79.1 Bcast:192.168.79.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:192.168.192.1 Bcast:192.168.192.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
这是我在Windows(Vista)上的网络设置:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : [removed by me].
Link-local IPv6 Address . . . . . : [removed by me]
IPv4 Address. . . . . . . . . . . : 192.168.1.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
我从这些结果中检查了我的IP地址。如果需要这些信息,请告诉我。
这是内容/etc/network/interfaces
:
auto lo
iface lo inet loopback
添加后auto eth0
,以下是最新结果:
$ sudo ifup eth0
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
这是运行modprobe的结果:
$ sudo modprobe msk
FATAL: Module msk not found.
$ dmesg | grep eth
应某些对此问题发表评论的人的要求,我从计算机上删除了Linux,并安装了Windows XP。我安装了一个运行程序,以查找有关网卡的详细信息。这是该信息:
Network
You are not connected to the internet
Computer Name
NetBIOS Name JOE-LAPTOP
DNS Name joe-laptop
Domain Name joe-laptop
Remote Desktop
Console
State Active
Domain joe-laptop
RDP-Tcp
State Listen
WinInet Info
An internal error occurred.
Wi-Fi Info
Wi-Fi not enabled
WinHTTPInfo
WinHTTPSessionProxyType No proxy
Session Proxy
Session Proxy Bypass
Connect Retries 5
Connect Timeout 60000
HTTP Version HTTP 1.1
Max Connects Per 1.0 Servers INFINITE
Max Connects Per Servers INFINITE
Max HTTP automatic redirects 10
Max HTTP status continue 10
Send Timeout 30000
IEProxy Auto Detect No
IEProxy Auto Config
IEProxy
IEProxy Bypass
Default Proxy Config Access Type No proxy
Default Config Proxy
Default Config Proxy Bypass
Adapters List
Network Shares
No network shares
看起来网络适配器列表为空。我现在将同时安装Windows XP和Ubuntu Linux双启动。即使通过Windows,我仍然无法访问Internet。我想知道这可能是计算机的硬件问题还是路由器本身的问题。其他计算机可以连接到同一路由器,并且工作正常。(毕竟这就是我发布此信息的方式!)