Jump to content

Bridged WiFi AP does not pass dhcp


Go to solution Solved by arox,

Recommended Posts

Posted

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
Posted

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.

Posted
2 hours ago, Dmitri_B said:

Stupid me

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 ...

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines