我无法将我的 Android 设备连接到 Linux Mint LMDE 3 中的 Wifi 热点

我无法将我的 Android 设备连接到 Linux Mint LMDE 3 中的 Wifi 热点

我最近在我的 PC 上安装了 Linux Mint LMDE 3,直到今天一切正常,当我继续配置我的 Wifi 热点时,我输入了网络的 SSID、密码,令人惊讶的是?没有设备有连接、识别网络,但不分配任何 IP。

我在Google上搜索了这个问题的解决方案,可能是没有安装DHCP服务,我按照教程试图解决它,但什么也没有。

下面我把涉及到的程序的配置文件内容留在这里。

/etc/dhcp/dhcpd.conf 文件

ddns-update-style none;
default-lease-time 600;

    max-lease-time 7200;
    #ping true;
    option domain-name-servers 172.27.15.2, 10.72.81.2;
    option domain-name "example.com";
    authorative;
    log-facility local7;

    subnet 10.42.0.1 netmask 255.255.255.0 {
    range 10.42.0.1 10.42.0.99;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 192.168.0.254, 10.128.254.254;
    option domain-name "example.com";
    option routers 192.168.1.1;
    option netbios-name-servers 192.168.1.1;
    option netbios-node-type 8;
    get-lease-hostnames true;
    use-host-decl-names true;
    default-lease-time 600;
    max-lease-time 7200;
    }

这是 /etc/default/isc-dhcp-server 文件

# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
#   Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#   Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="enp1s5 wlxf8d111b4f797"
INTERFACESv6=""

这是命令的退出systemctl status isc-dhcp-server

● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-12-02 15:33:32 -04; 1h 7min ago
     Docs: man:systemd-sysv-generator(8)

dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: Configuration file errors encountered -- exiting
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: If you think you have received this message due to a bug rather
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: than a configuration issue please read the section on submitting
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: bugs on either our web page at www.isc.org or in the README file
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: before submitting a bug.  These pages explain the proper
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: process and the information we find helpful for debugging..
dic 02 15:33:32 bryan-useche isc-dhcp-server[803]: exiting.
dic 02 15:33:32 bryan-useche systemd[1]: Failed to start LSB: DHCP server.
dic 02 15:33:32 bryan-useche systemd[1]: isc-dhcp-server.service: Unit entered failed state.
dic 02 15:33:32 bryan-useche systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.

答案1

如果您运行dhcpd -t,它将测试该文件并报告可能的错误。

在这种情况下,它会响应...

subnet 10.42.0.1 netmask 255.255.255.0: bad subnet number/mask combination.
    subnet 10.42.0.1 netmask 255.255.255.0 
                                         ^

你的网络应该是10.42.0.0

不相关,但可能是下一步的潜在问题,您的路由器定义 ( 192.168.1.1) 无法从10.42.0.0/255.255.255.0网络访问,因此设备可能会获得 IP 地址,但无法路由到任何地方。

相关内容