Portál AbcLinuxu, 4. května 2025 11:39
If you have not yet created a wireless hotspot connection, create a new interface and add it to the bridge with a single command, replacing the "hotspot-password" placeholder with a password of your choice:vykonaj tuto sériu príkazov :
sudo nmcli connection add con-name 'Hotspot' \
ifname wlan0 type wifi slave-type bridge master bridge0 \
wifi.mode ap wifi.ssid Hotspot wifi-sec.key-mgmt wpa-psk \
wifi-sec.proto rsn wifi-sec.pairwise ccmp \
wifi-sec.psk "hotspot-password"
a potom pokračuj ďalej v návode ...
Já to taky nedávno řešil s usb wifinou. Jestli tě to zajímá, tak zde přikládám pro inspiraci jak jsem to nastavil.
/etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source /etc/network/interfaces.d/* auto lo br0 iface lo inet loopback # wireless wlan0 allow-hotplug wlan0 iface wlx00e02d0f22da inet manual post-up ip link set wlx00e02d0f22da up # eth0 connected to the ISP router allow-hotplug eth0 iface enp1s0 inet manual # Setup bridge iface br0 inet static bridge_ports wlx00e02d0f22da enp1s0 address 192.168.2.60 netmask 255.255.255.0 network 192.168.2.0 gateway 192.168.2.1 dns-nameservers 192.168.2.1 post-up ip link set br0 address 88:ae:dd:0d:84:62 #MAC adresa utp síťové karty/etc/hostapd/hostapd.conf
interface=wlx00e02d0f22da bridge=br0 # The nl80211 driver is suitable for most Wi-Fi adapters #driver=8188eu # Your access point name ssid=NAZEV-WIFI # The number of your Wi-Fi channel (1 to 13) channel=6 country_code=CZ #Select a mode for your access point (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g) #hw_mode=g hw_mode=g ieee80211n=1 #ht_capab=[SHORT-GI-40][HT40+][HT40-][DSSS_CCK-40] # 1=wpa, 2=wep, 3=both auth_algs=1 # Allow connections from all MAC addresses except those in the blacklist macaddr_acl=0 wpa=2 wpa_key_mgmt=WPA-PSK #wpa_pairwise=TKIP CCMP wpa_pairwise=CCMP #rsn_pairwise=TKIP #Set a password for your access point wpa_passphrase=heslokWIFIA samozřejmě nainstalovat tyto balíčky: hostapd bridge-utils
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.