我正在尝试在 HP EliteDesk 800 G2 SFF 中安装 Ubuntu 14.04,其中还安装了 Windows 7。虽然有线网络连接在 Windows 上运行良好,但在 DVD 启动的 Ubuntu 上却不行。然后我注意到只设置了 IPv6 地址:
$ ifconfig
eth0 Link encap:Ethernet HWaddr 48:0f:cf:41:c7:83
inet6 addr: fe80::4a0f:cfff:fe41:c783/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:972 errors:0 dropped:0 overruns:0 frame:0
TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:140475 (140.4 KB) TX bytes:113164 (113.1 KB)
Interrupt:16 Memory:e1000000-e1020000
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:65536 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4880 (4.8 KB) TX bytes:4880 (4.8 KB)
我跟着此指令,但仍然无法连接有线网络。
$ sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
$ sudo service network-manager start
start: Job is already running: network-maneger
$ sudo /etc/init.d/networking restart
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 48:0f:cf:41:c7:83
inet6 addr: fe80::4a0f:cfff:fe41:c783/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1776 errors:0 dropped:0 overruns:0 frame:0
TX packets:954 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:262483 (262.4 KB) TX bytes:187146 (187.1 KB)
Interrupt:16 Memory:e1000000-e1020000
我应该怎么做才能连接到网络以便可以继续进行 Ubuntu 安装?
答案1
(可能)您的网络不使用 DHCP,您需要手动输入设置(IP 地址、子网掩码、网关和 DNS 服务器)。
请启动 Windows 7 并查看那里的网络设置。