我最近从 Windows 切换到 Ubuntu,所以对此不太了解。问题是我无法通过 LAN 电缆将我的 Ubuntu 笔记本电脑连接到我大学的计算机实验室,以便使用互联网。
当我在笔记本电脑上安装 Windows 时,我会去实验室并将网线插入笔记本电脑的插座。然后我会禁用本地连接,然后启用它。我必须禁用它,因为在我的大学里,计算机科学系为所有其他系提供互联网,并且它有多个网络名称,例如网络 24、网络 26 等。
因此,每次我禁用并重新启用本地连接时,它都会将我的 Windows 笔记本电脑连接到随机网络并打开互联网。
其次,实验室中的 PC 具有特定的 IP 地址,例如 192.168.1.253。但我不需要在本地连接的属性中输入任何 IP 地址或子网掩码或任何其他内容。我只需将设置设为“自动获取 IP 地址”,然后禁用本地连接,然后再启用它。
现在我已经在笔记本电脑上安装了 Ubuntu 12.10,但无法将笔记本电脑连接到大学网络以使用互联网。我将 Ubuntu 有线连接 IPV4 设置设置为“自动 DHCP”,但它无法将我连接到互联网。
现在请不要告诉我去询问实验室管理员,因为他只知道如何打开 Youtube :) 也不要告诉我切换回 Windows,因为我讨厌病毒。
请帮我解决这个问题。我需要它,因为大学已经获得了一些在线订阅,以便学生可以访问期刊进行研究工作。我将不胜感激您的帮助。
PS:以下是代码结果......
ahmad@ahmad-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 01)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
03:01.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
和
ahmad@ahmad-laptop:~$ sudo lshw -c network
[sudo] password for ahmad:
*-network UNCLAIMED
description: Network controller
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:0c:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:dfdfc000-dfdfffff
*-network
description: Ethernet interface
product: NetXtreme BCM5752 Gigabit Ethernet PCI Express
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:09:00.0
logical name: eth0
version: 02
serial: 00:14:22:fa:dc:ba
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.123 firmware=5752-v3.19 latency=0 link=no multicast=yes port=twisted pair
resources: irq:44 memory:dfcf0000-dfcfffff
ifconfig 的结果如下。
ahmad@ahmad-laptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:22:fa:dc:ba
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:22ff:fefa:dcba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16261 errors:0 dropped:0 overruns:0 frame:0
TX packets:378 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1275717 (1.2 MB) TX bytes:41326 (41.3 KB)
Interrupt:18
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:292 errors:0 dropped:0 overruns:0 frame:0
TX packets:292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21054 (21.0 KB) TX bytes:21054 (21.0 KB)