手机连接到 wifi 热点(Ubuntu 17.10)但无法浏览

手机连接到 wifi 热点(Ubuntu 17.10)但无法浏览

启动 Wi-Fi 热点时出现错误,内容如下:

打开 Wi-Fi 热点?热点处于活动状态时,无法通过无线网络访问互联网。Wi-Fi 热点通常用于通过 Wi-Fi 共享额外的互联网连接。

我是否需要添加交换端口、桥接器或路由才能使其连接到互联网?我可以在手机上看到热点,但无法连接到它。

这是我的 netplan 01-netcfg.yaml 文件的副本:

network:
    version: 2
    renderer: NetworkManager
    ethernets:
        eth0:
            dhcp4: no
            dhcp6: no
            addresses: [76.80.54.221/29]
            gateway4: 76.80.54.217
            nameservers:
                addresses: [209.18.47.61,209.18.47.62]
        p2p1:
            dhcp4: no
            dhcp6: no     
            addresses: [192.168.1.129/24]
            gateway4: 192.168.1.100
    wifis:
        wlan0:
            dhcp4: no
            dhcp6: no
            addresses: [192.168.1.127/24]
            gateway4: 192.168.1.100
            nameservers:
                addresses: [192.168.1.100]
            access-points: 
                "free beer":
                    password: "something"

这些是我的输出:sudo lshw -class network

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: p2p1
       version: 0c
       serial: d8:cb:8a:a6:eb:a0
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.1.129 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:47 ioport:e000(size=256) memory:f7100000-f7100fff memory:f0000000-f0003fff
  *-network
       description: Wireless interface
       product: Wireless 3160
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 83
       serial: 34:e6:ad:de:58:78
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.13.0-19-generic firmware=17.608620.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:52 memory:f7000000-f7001fff
  *-network
       description: Ethernet interface
       physical id: 2
       bus info: usb@3:3
       logical name: eth0
       serial: 00:24:9b:16:e4:c0
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ax88179_178a duplex=full ip=76.80.54.221 link=yes multicast=yes port=MII speed=1Gbit/s

rfkill 列出全部

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
11: phy10: Wireless LAN
    Soft blocked: no
    Hard blocked: no

串行通信

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)

系统盘

Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 8087:07dc Intel Corp. 
Bus 002 Device 006: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
Bus 002 Device 005: ID 0557:8021 ATEN International Co., Ltd CS1764A [CubiQ DVI KVMP Switch]
Bus 002 Device 007: ID 18f8:0f99  
Bus 002 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 008: ID 22b8:2e82 Motorola PCS 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

感谢您的帮助。

答案1

我已经放弃尝试让我的系统内部 wifi 工作,而是给自己买了一个外部 TP-LINK TL-WR902AC LAN 到 wifi 路由器。

没有太多使用静态/固定 IP 设置 Wi-Fi 的经验我了解到广播 wifi IP(路由器的 IP)需要与手机 IP 匹配!

现在我可以通过 wifi 将手机连接到互联网。

相关内容