我有一台 Eee PC 904D,我用它来开发,因为它又小又小,但我也有一台 PC。但是在我的 Eee PC 上,我安装了 Ubuntu Intrepid Ibex 和 Netbook Remix(非常简单),当我想使用以太网电缆上网时,我连接它并尝试连接,但在尝试连接大约 10 秒钟后,它失败了,并且图标发生了变化,就像我没有连接任何电缆一样,但是电缆已连接,当我尝试使用此电缆时,其他计算机可以正常连接,如果需要,这里是 /etc/dhcp3/dhclient.conf 文件的内容:
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
send host-name "<hostname>";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}
以下是 ifconfig 日志:
ubuntu@ubuntu-laptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:a2:6a:8f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:220
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:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1880 (1.8 KB) TX bytes:1880 (1.8 KB)
wlan0 Link encap:Ethernet HWaddr 00:15:af:eb:d8:6e
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:afff:feeb:d86e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5975 errors:0 dropped:0 overruns:0 frame:0
TX packets:6177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3216735 (3.2 MB) TX bytes:1377796 (1.3 MB)
wmaster0 Link encap:UNSPEC HWaddr 00-15-AF-EB-D8-6E-38-36-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX
答案1
您尝试过网络管理器吗?网络管理器不使用 dhclient.conf。您可以在 /etc/NetworkManager 下找到其配置,但最好使用配置对话框来完成。
答案2
它有 IP 地址吗?在控制台中输入“ifconfig”并查找 eth0 的地址。如果它有 IP 地址,请尝试通过其 IP ping 另一台机器。