Dmitri_B Posted May 3, 2021 Posted May 3, 2021 Hello folks. Trying to set up bridged AP on armbian ZeroPI box. Configuring wlan for AP: cat /etc/hostapd/hostapd.conf ssid=Wifi2 interface=wlan0 hw_mode=g channel=9 bridge=br0 driver=nl80211 logger_syslog=0 logger_syslog_level=0 wmm_enabled=0 wpa=2 preamble=1 wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27 wpa_passphrase=12345678 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP auth_algs=1 macaddr_acl=0 ### IEEE 802.11n #ieee80211n=1 #ht_capab= #country_code=US #ieee80211d=1 ### IEEE 802.11n ### IEEE 802.11a #hw_mode=a ### IEEE 802.11a ### IEEE 802.11ac #ieee80211ac=1 #vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3] #vht_oper_chwidth=1 #vht_oper_centr_freq_seg0_idx=42 ### IEEE 802.11ac # controlling enabled ctrl_interface=/var/run/hostapd ctrl_interface_group=0 adding wlan to bridge: cat /etc/network/interfaces source /etc/network/interfaces.d/* # Network is managed by Network manager auto lo iface lo inet loopback # wireless wlan0 allow-hotplug wlan0 iface wlan0 inet manual # eth0 connected to the ISP router allow-hotplug eth0 iface eth0 inet manual # bridge iface br0 inet static bridge_ports wlan0 eth0 address 10.255.194.10 netmask 255.255.255.240 gateway 10.255.194.1 dns-nameservers 8.8.8.8 1.1.1.1 Till now I can see Wii2 ssid and can connect to it but impossible to get IP via LAN dhcp server. Any good ideas ? RGDS
Solution arox Posted May 3, 2021 Solution Posted May 3, 2021 Check you have the same netmask on router, bridge and dhcp config. Check router arp tables and messages to see if it receive requests. Check if interfaces are really added to the bridge with brctl and that some nasty software has not added addresses to wlan0 and eth0 with ifconfig.
Dmitri_B Posted May 6, 2021 Author Posted May 6, 2021 Stupid me bridged eth0 instead of eth0.vlan Sorry guys.
arox Posted May 6, 2021 Posted May 6, 2021 On 5/6/2021 at 1:25 PM, Dmitri_B said: Stupid me Expand Stupid us ! For me configuring is like programing. We need to check live parameters to debug configuration or design mistakes. I wish I would know how to debug efficiently some declarative languages ...
Recommended Posts