ubuntu 网络不工作

ubuntu 网络不工作

我有一台 HP 笔记本电脑。我正尝试连接到互联网。但我似乎无法通过 LAN 和无线连接。无线未列出我的连接。事实上,“Wi-Fi 网络”按钮已停用。通过以太网连接时,它会检测到连接的存在,但一段时间后,它会保持空闲状态而没有连接。在同一台笔记本电脑上通过双启动模式的 Windows 连接时似乎没有任何问题。

结果如下ifconfig

eth0      Link encap:Ethernet  HWaddr d0:bf:9c:0a:ce:7d  
          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:0  
          collisions:0 txqueuelen:1000  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:159 errors:0 dropped:0 overruns:0 frame:0  
          TX packets:159 errors:0 dropped:0 overruns:0 carrier:0  
          collisions:0 txqueuelen:0   
          RX bytes:11377 (11.3 KB)  TX bytes:11377 (11.3 KB)

wlan0     Link encap:Ethernet  HWaddr 74:29:af:94:27:59     
          inet addr:10.10.0.1  Bcast:10.10.0.255  Mask:255.255.255.0  
          inet6 addr: fe80::7629:afff:fe94:2759/64 Scope:Link  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0  
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0  
          collisions:0 txqueuelen:1000   
          RX bytes:0 (0.0 B)  TX bytes:8637 (8.6 KB)  

结果如下lspci | grep Wireless lspci | grep Ethernet

0a:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter  

08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 07) 

结果如下lspci -nnk | grep -iA2 net

08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.   RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
    Subsystem: Hewlett-Packard Company Device [103c:2337]
    Kernel driver in use: r8169  
--
0a:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]  
    Subsystem: Hewlett-Packard Company Device [103c:2231]  
    Kernel driver in use: rtl8723be  

结果如下rfkill list all

0: hci0: Bluetooth  
    Soft blocked: no  
    Hard blocked: no  
1: phy0: Wireless LAN  
    Soft blocked: no  
    Hard blocked: no 

答案1

  1. 跑步sudo ifdown eth0
  2. 配置静态 IP 地址/etc/network/interfaces或输入自动 DHCP。
  3. 跑步sudo ifup eth0
  4. 跑步/etc/init.d/networking restart

相关内容