Hello, welcome toPeanut Shell Foreign Trade Network B2B Free Information Publishing Platform!
18951535724
  • Linux wifi hotspot configuration

       2026-02-27 NetworkingName860
    Key Point:There is a recent need to configure wifi hotspots under ubuntu 22. 04, relay them through the cable network, document the configuration process, use the combination to provide hotspot management for hostaped, isc-dhcp-server, iptables, hostapd, isc-dhcp-server for hotspots, dhcp, iptables for wired networks and hotspots, and network links as shown belowAs the dhcp service only has wlan0 configured, only manual configuration is supported by a fixe

    There is a recent need to configure wifi hotspots under ubuntu 22. 04, relay them through the cable network, document the configuration process, use the combination to provide hotspot management for hostaped, isc-dhcp-server, iptables, hostapd, isc-dhcp-server for hotspots, dhcp, iptables for wired networks and hotspots, and network links as shown below

    Usb wifi hotspot

    As the dhcp service only has wlan0 configured, only manual configuration is supported by a fixed ip for a cable network, the ip segment is 192. 1681. 1. X

    Note: software before installation package

    #root

    I. Hostapd installation

    In order to support the latest wifi6, the latest version of the source code installation will be installed after downloading and translation on the official network, pending which the compiler dependency will also need to be installed

    1. Installation dependence

    Root@noka: ~apt-get install libsl-dev libnl-3-dev

    2. Create a dependency link

    Root@noka: ~in-s /usr/include/libnl3/netlInk /usr/include/netlThink

    3. Download hostapd source code, decompression if no wget needs to be installed first

    Root@noka: ~wget https://w1. Fi/releases/hostapd-2. 11. Tar. Gz
    root
    root@noka:~cd hostapd-2. 11/hostapd

    4. Copy the default profile, modify the configuration, select as necessary, support 802. 11ac and 802. 11ax, remove the corresponding notes and remove the three notes: "config ieee80211ac=y", "config iee80211ax=y", "config iee80211be=y"

    RootI don't knowI don't know.
    @noka: #vim. Config

    5. Compile and install

    Root
    root

    6. Create profiles, add configurations, which are placed in/etc/hostapd directories down

    Root@noka:~mkdir/etc/hostapd
    root@noka:#vim/etc/hostapd/hostapd. Conf

    7, hostapd. Conf files as follows, where wlan0 is the interface name of wifi

    #wlan set
    interface=wlan0
    driver=nl80211
    ctrl interface=/var/run/hostapd
    #wifi app
    ssid=noka wifi
    hw mode=a
    channel = 36
    #wap
    wpa=2
    wpa key mgmt=wpa-psk
    wpa passphrase=12345678
    #[802. 11n]
    eee80211n=1
    ht capab=[short-gi-20][ht40+][shot-gi-40]
    #[802. 11ac]
    ieee80211ac=1
    #[802. 11ax]
    ieee80211x=1
    =64
    = 300
    #pasword
    wpa pairwise=ccmp
    = ccmp

    8 before starting hostd, if the current wifi connection to the network needs to be disconnected, then all configurations can be configured to start together

    #rfkill unblock wlan
    root@noka:#hostapd/etc/hostapd/hostapd. Conf-b

    Ii. Installation of isc-dhcp-server

    1. Direct installation with software management packages

    Root

    2. Configure webcards and assign dhcp service listening interfaces

    Root
    interfacesv4 = "wlan0" # add a webcard to provide dhcp services first name
     
    ReportFavorite 0Tip 0Comment 0
    >Related Comments
    No comments yet, be the first to comment
    >SimilarEncyclopedia
    Featured Images
    RecommendedEncyclopedia