ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DHCP offer on eth0

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> wiki
View previous topic :: View next topic  
Author Message
Ads






Posted: Tue Dec 12, 2017 12:58 am    Post subject: Ads

Back to top
mpcleverdon
User
User


Joined: 29 Oct 2009
Posts: 45

PostPosted: Thu Aug 05, 2010 12:06 pm    Post subject: DHCP offer on eth0 Reply with quote

Hi

I have a problem with the dhcp server offering on all interfaces, is it possible to not serve dhcp on one interface?

I have made a backbone with 3x Airgrid M5's as a bridge to a broadband connection which works fine until something goes wrong ( In my case high winds broke the link due to the masts being too flexible )

The problem arises when I have more than one AP on the same lan/backbone and then the backbone fails or the broadband goes down. The nodes start requesting a new IP through the lan and get an answer from another AP on the 101.xxx.xxx.xxx network which causes a loop and my whole mesh fails. Instead the nodes should just start looking for hops to the nearest backhaul through ath1 or ath2

Also if the broadband router takes too long to respond to a dhcp request the same problem arises.
Back to top
View user's profile Send private message
Antonio (isleman)
Site Admin
Site Admin


Joined: 10 Feb 2008
Posts: 2323
Location: Toscana, Italy

PostPosted: Thu Aug 05, 2010 2:23 pm    Post subject: Reply with quote

what version are u running?
in Robin r3 there is a piece of code which should prevent to get lease from a 101/8 DHCP server:
Code:
prepare() {
   local interface=$1

   ifconfig $interface up
   iptables -I INPUT -i $interface  -p udp --destination-port 67:68 --source-port 67:68 -s 101.0.0.0/8 -j DROP
   sleep 1
}
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mpcleverdon
User
User


Joined: 29 Oct 2009
Posts: 45

PostPosted: Fri Aug 06, 2010 8:10 am    Post subject: dhcp on eth0 Reply with quote

Antonio (isleman) wrote:
what version are u running?


I was using the latest stable r2693 then went to the Dev r3394 and currently have moved to r2690.

I had a similar problem with the dev version. Although the unstable mast on the backbone caused the upset, it did show up the problem and I didnt realize this until I had got back to r2690 but quite honestly I had to try and get the mesh up and running again so I didnt have much time to observe and take a record of all the logs.
Back to top
View user's profile Send private message
mpcleverdon
User
User


Joined: 29 Oct 2009
Posts: 45

PostPosted: Fri Aug 06, 2010 8:14 am    Post subject: Reply with quote

Antonio (isleman) wrote:

Code:
prepare() {
   local interface=$1

   ifconfig $interface up
   iptables -I INPUT -i $interface  -p udp --destination-port 67:68 --source-port 67:68 -s 101.0.0.0/8 -j DROP
   sleep 1
}


Where does this code go if I were to try it in r2690? or is that not possible?
Back to top
View user's profile Send private message
duncanSF
User
User


Joined: 13 Mar 2009
Posts: 49
Location: California

PostPosted: Tue Nov 16, 2010 2:10 pm    Post subject: Reply with quote

mpcleverdon wrote:
Where does this code go if I were to try it in r2690? or is that not possible?

in r2693 (and probably r2690 as well) it's in /lib/robin/preup among the function declarations near the top.

It's called close to the bottom of the same file:
Code:
#detect role (1=gateway  0=repeater)
WAN_PORT=$(uci get node.general.wanPort)
prepare $WAN_PORT
/root/bin/check_DWL-810+ > /dev/null 2>&1 &
lease_request $WAN_PORT

[ 1 -eq "$found_dhcp" ] && { sleep 5; outgoing=$(/lib/robin/inet-test.sh); }


r2693 runs through a hardware detection scheme on every startup, though, and will overwrite changes made to that file. In that case, which may or may not apply your version, the place to make the change in /etc/profiles/*/lib/robin/preup.sh where the asterisk is whichever tree applies to your hardware. In my case, on the OM1P, it's "default".

That file runs before any of the interfaces come up. Check that it runs before running it on startup. A mistake could leave the node in a neverending cycle of rebooting before becoming reachable.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> wiki All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 2.906