Skip to contentSkip to conversation

non DHCP batman-adv gateway

B.A.T.M.A.N. Gabriel Tolón 2 participants 4 messages Jul 18, 2014 – Jul 29, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to use a configuration in a batman-adv openwrt mesh network in which the batman gateway relays the DHCP messages to and from a non batman-adv router. I think that's not a typical configuration right? Should it work? Do I need some additional packages? Thanks in advance!

Gabriel

#1 lore raw
Quoted 6 lines · Gabriel Tolón

Hi,

I'd like to use a configuration in a batman-adv openwrt mesh network in which the batman gateway relays the DHCP messages to and from a non batman-adv router. I think that's not a typical configuration right? Should it work? Do I need some additional packages? Thanks in advance!

Yes, it should work just fine, you should set gw_mode=master in the correspondent batman-adv gateway, but turn its dhcp server off.

So, when dhcp packets get to that node, it will naturally relay them over br-lan and they will reach the non-batman-adv router.

That setup is more typical than what you might think of :)

(we have used it this way in at least 4 or 5 different cases)

cheers!

Quoted 2 lines

Gabriel

#2 lore raw

Hi Gui, thanks for your answer!

Quoted 10 lines · Gui Iribarren
Quoted 6 lines · Gabriel Tolón

Hi,

I'd like to use a configuration in a batman-adv openwrt mesh network in which the batman gateway relays the DHCP messages to and from a non batman-adv router. I think that's not a typical configuration right? Should it work? Do I need some additional packages? Thanks in advance!

Yes, it should work just fine, you should set gw_mode=master in the correspondent batman-adv gateway, but turn its dhcp server off.

you mean gw_mode=server? Or it's a new option?

Quoted 9 lines

So, when dhcp packets get to that node, it will naturally relay them over br-lan and they will reach the non-batman-adv router.

That setup is more typical than what you might think of :)

(we have used it this way in at least 4 or 5 different cases)

cheers!

That's good to know. Other option I had thought was to turn off gw_mode and use the mesh just as the L2 switch it is, but that way the possibility to choose the best batman-adv gateway would be lost i guess.

Regards

Gabriel

#3 lore raw
Quoted 12 lines · Gabriel Tolón

Hi Gui, thanks for your answer!

Quoted 8 lines · Gui Iribarren
Quoted 6 lines · Gabriel Tolón

Hi,

I'd like to use a configuration in a batman-adv openwrt mesh network in which the batman gateway relays the DHCP messages to and from a non batman-adv router. I think that's not a typical configuration right? Should it work? Do I need some additional packages? Thanks in advance!

Quoted 4 lines
Quoted 2 lines

Yes, it should work just fine, you should set gw_mode=master in the correspondent batman-adv gateway, but turn its dhcp server off.

you mean gw_mode=server? Or it's a new option?

yes, definitely. my mistake. It's gw_mode=server.

cheers!

gui