LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2011, 06:48 AM   #1
davidlt
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
ad-hoc mesh wireless network and DHCP problem


I moved from Managed to Ad-hoc netwrok type. I have Ethernet interface (eth0 and eth1), both on 169.254.0.0 subnet and I have wireless (wlan0) interface on 10.2.2.0 subnet. After moving to Ad-hoc it's like DHCP is not working anymore.

Example:
I am with my MacBook on my local router with on 192.168.0.0 subnet (IP: 192.168.1.65) and I switch to my device running Linux with Ad-hoc network configured. It looks like my MacBook still wants to have old IP (lease) from my local router and not take new from linux device (ad-hoc network), but Linux machine keeps offering to MacBook correct new IP.

No avahi-daemon, no avahi-autoip, no olsrd is running on Linux machine.

I had managed to make it work for awhile, after it was not able to renew lease for 192.168.1.65 it was taking 10.2.2.20, but I cannot reproduce it.

I create ad-hoc network like this (libertas driver):
Code:
ip link set wlan0 down
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 channel 4
iwconfig wlan0 essid 'TestMeNow'
iwconfig wlan0 key 1234567111
ip link set wlan0 up
I noticed that WEP is not working with libertas, but it is working with libertas_tf (very unstable).

Code:
2011-07-04T16:37:49.000000+02:00 overo dhcpd: DHCPREQUEST for 192.168.1.65 from 00:1b:63:04:29:ea via wlan0: ignored (not authoritative).
2011-07-04T16:37:50.000000+02:00 overo dhcpd: DHCPREQUEST for 192.168.1.65 from 00:1b:63:04:29:ea via wlan0: ignored (not authoritative).
2011-07-04T16:37:52.000000+02:00 overo dhcpd: DHCPREQUEST for 192.168.1.65 from 00:1b:63:04:29:ea via wlan0: ignored (not authoritative).
2011-07-04T16:37:57.000000+02:00 overo dhcpd: DHCPDISCOVER from 00:1b:63:04:29:ea via wlan0
2011-07-04T16:37:58.000000+02:00 overo dhcpd: DHCPOFFER on 10.2.2.20 to 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:37:58.000000+02:00 overo dhcpd: DHCPDISCOVER from 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:37:58.000000+02:00 overo dhcpd: DHCPOFFER on 10.2.2.20 to 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:38:01.000000+02:00 overo dhcpd: DHCPDISCOVER from 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:38:01.000000+02:00 overo dhcpd: DHCPOFFER on 10.2.2.20 to 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:38:08.000000+02:00 overo dhcpd: DHCPDISCOVER from 00:1b:63:04:29:ea (david-mac) via wlan0
2011-07-04T16:38:08.000000+02:00 overo dhcpd: DHCPOFFER on 10.2.2.20 to 00:1b:63:04:29:ea (david-mac) via wlan0
 
Old 07-19-2011, 03:25 PM   #2
wapa17
LQ Newbie
 
Registered: Mar 2010
Location: BOG, COL
Distribution: Mandriva / Ubuntu
Posts: 5

Rep: Reputation: 0
First try with a static IP (new IP-range of course) on the WLAN, so you can see if MAC can connect.
 
Old 07-19-2011, 03:34 PM   #3
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
By definition an adhoc network structure has no DHCP nor centralization so there is no DHCP because there is no router. You are only able to use static IP's only on adhoc network types as there is no gateway, and no real routing. The diagram of a regular network is similar to a tree, but the topology of an adhoc network is more like a circle and less like a star as the traditional network diagrams would show. So you will have to configure IP address for each node of the network. I suppose in theory you could attempt to enable a DHCP server, but it would be really weird.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating Wireless Mesh Network in NS 2 Wonu Linux - Networking 1 09-01-2010 01:14 PM
Network Bridge Ad-hoc Wireless Ubuntu slamb2002 Linux - Newbie 3 10-01-2007 04:52 PM
Ad-hoc wireless network stopped working Lord_Grave Linux - Hardware 0 01-18-2006 04:33 PM
DHCP problem with wireless network SlackPingo Slackware 15 12-30-2005 10:24 AM
problem with wireless ad-hoc network creation on Mandrake 9.2... superczar Linux - Wireless Networking 0 08-05-2005 01:30 AM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration