This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:edge-2l:applications:wifi-sta-ap-mode [2026/05/11 02:09] nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:wifi-sta-ap-mode to products:sbc:edge-2l:applications:wifi-sta-ap-mode |
products:sbc:edge-2l:applications:wifi-sta-ap-mode [2026/05/11 02:47] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Edge-2L Wi-Fi STA/AP mode configuration ====== | ====== Edge-2L Wi-Fi STA/AP mode configuration ====== | ||
| - | ===== Download script===== | + | {{page>products:sbc:edge2:applications:wifi-sta-ap-mode&noheader}} |
| - | Download and install the configuration script: | + | |
| - | ``` | + | |
| - | wget https:// | + | |
| - | sudo chmod 777 khadas_ap.sh | + | |
| - | sudo mv khadas_ap.sh / | + | |
| - | ``` | + | |
| - | + | ||
| - | **Note:** This script will be included in future system images. For now, you can manually download it or rebuild your image to include it. | + | |
| - | + | ||
| - | ===== Overview ===== | + | |
| - | This guide explains how to configure dual Wi-Fi modes using the '' | + | |
| - | + | ||
| - | * STA+AP Mode: '' | + | |
| - | * ETH+AP Mode:(**Not available on Edge-2L**) '' | + | |
| - | + | ||
| - | ===== Prerequisites ===== | + | |
| - | + | ||
| - | * Root privileges are required. | + | |
| - | * Ensure wireless interfaces are properly identified: | + | |
| - | * STA interface: '' | + | |
| - | * AP interface: '' | + | |
| - | + | ||
| - | <WRAP important > | + | |
| - | The Edge-2L does not have an Ethernet interface (eth0), making the ETH+AP mode non-functional on this device. | + | |
| - | </WRAP> | + | |
| - | + | ||
| - | ===== Configuration script usage ===== | + | |
| - | Run the script with root privileges: | + | |
| - | + | ||
| - | ``` | + | |
| - | sudo khadas_ap.sh | + | |
| - | ``` | + | |
| - | + | ||
| - | + | ||
| - | ==== Main menu options ==== | + | |
| - | You will see the following menu: | + | |
| - | ``` | + | |
| - | ======================================== | + | |
| - | WiFi Configuration Tool v1.0 | + | |
| - | ======================================== | + | |
| - | 1. STA+AP Mode | + | |
| - | 2. ETH+AP Mode | + | |
| - | 3. Stop All Services | + | |
| - | 4. Exit | + | |
| - | ======================================== | + | |
| - | Please select an option [1-4]: | + | |
| - | ``` | + | |
| - | - STA+AP Mode (Recommended): Creates NAT forwarding between '' | + | |
| - | | + | |
| - | - Stop All Services: Stops the AP, DHCP, and NAT forwarding services. | + | |
| - | - Exit: Quit the script | + | |
| - | + | ||
| - | ==== Configuration steps ==== | + | |
| - | + | ||
| - | - Select your desired operation mode from the menu (use Option 1 for Edge-2L). | + | |
| - | - For AP modes, you will be prompted to: | + | |
| - | * Enter SSID for hotspot | + | |
| - | * Set password (WPA2-PSK required) | + | |
| - | - The script automatically configures: | + | |
| - | * Hostapd (for the AP) | + | |
| - | * Dnsmasq (for DHCP) | + | |
| - | * IP forwarding and iptables NAT rules | + | |
| - | + | ||
| - | + | ||
| - | ===== Verification ===== | + | |
| - | After configuration, | + | |
| - | + | ||
| - | ``` | + | |
| - | ifconfig wlan0 && ifconfig wlan1 | + | |
| - | ``` | + | |
| - | In STA+AP mode, test internet connectivity from the device: | + | |
| - | + | ||
| - | ``` | + | |
| - | ping -I wlan0 google.com | + | |
| - | ``` | + | |
| - | To connect to the hotspot from another device: | + | |
| - | + | ||
| - | * SSID: The name you configured. | + | |
| - | * Password: The password you set. | + | |
| - | * Client IP range: 192.168.43.2 - 192.168.43.254 | + | |
| - | + | ||
| - | ===== Important notes ===== | + | |
| - | <WRAP important> | + | |
| - | **Edge-2L Device Limitations: | + | |
| - | The Edge-2L does **not** have an Ethernet interface ('' | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Technical details ===== | + | |
| - | + | ||
| - | * IP Configuration: | + | |
| - | * AP Static IP: '' | + | |
| - | * DHCP Range: '' | + | |
| - | * DNS: Google DNS ('' | + | |
| - | * Security: WPA2-PSK with mandatory CCMP/AES cipher. | + | |
| - | * Default channel: 6. | + | |
| - | * Required Services: '' | + | |
| - | + | ||
| - | ===== Troubleshooting ===== | + | |
| - | + | ||
| - | * AP Not Appearing: | + | |
| - | * Confirm the '' | + | |
| - | * Check for conflicting services: '' | + | |
| - | * No Internet Access for Clients: | + | |
| - | * Verify the STA connection: '' | + | |
| - | * Check NAT rules: '' | + | |
| - | * DHCP Failures: | + | |
| - | * Check if dnsmasq is running:'' | + | |