LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-29-2009, 07:15 PM   #1
jag_hond
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Wireless ad-hoc network bridged to intranet


This is for a uni project I'm working on.

I'm running jaunty on 2 machines both with wifi cards, one is a d-link pci and the other is a rtl8187 usb. Both cards are working properly. What I want to do is run an ad-hoc (peer to peer) wifi network from one machine that other machines can connect to and then with a bridged wlan0 eth1 be assigned ip addresses from the university dhcp server.

So far I have been successful in setting up the bridge and the ad-hoc network but I can't connect either of my ubuntu machines to it. I can however connect a windows box to it and it works fine, it gets assigned a dhcp address and I can connect to the uni network and the internet.

So my question is: why can windows connect and ubuntu can't?

Is there a better way to go about this?


This is my /etc/network/interfaces
#
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
bridge_ports wlan0 eth1
up \
/sbin/iwconfig wlan0 essid atxwire && \
/sbin/iwconfig wlan0 mode Master && \
/sbin/iwconfig wlan0 channel 10
 
Old 09-29-2009, 11:13 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
This may or may not help your situation, but according to what you posted there, you aren't actually running in ad-hoc.

You have the card in Master, which is AP mode. Master mode is glitchy under a number of drivers however, so unless you absolutely need Master functionality (like if you had PDAs which don't support WAN over ad-hoc), then put the card into the actual ad-hoc mode. I have had a few instances where I was unable to connect some devices due to a buggy Master driver.
 
Old 10-01-2009, 04:00 AM   #3
jag_hond
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Yes I have since found that master mode is a problem. I asked a friend to look at it for me and he solved it by disabling the network manager and using ndiswrapper to install the windows drivers for both wifi cards and then configuring both devices in ad-hoc mode. It works fine now and both devices are allocated proper addresses from the uni's dhcp server.

Thanks for your help.
 
Old 10-01-2009, 01:17 PM   #4
mejohnsn
Member
 
Registered: Sep 2009
Posts: 174

Rep: Reputation: Disabled
please mark thread

Quote:
Originally Posted by jag_hond View Post
Yes I have since found that master mode is a problem. I asked a friend to look at it for me and he solved it by disabling the network manager and using ndiswrapper to install the windows drivers for both wifi cards and then configuring both devices in ad-hoc mode. It works fine now and both devices are allocated proper addresses from the uni's dhcp server.

Thanks for your help.
So are you ready to mark this thread 'solved'? Please recall this is done by clicking on "Thread Tools" and selecting the one to mark 'solved'.

Last edited by mejohnsn; 10-01-2009 at 01:21 PM. Reason: change 'closed' to 'solved'
 
  


Reply



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
Network Bridge Ad-hoc Wireless Ubuntu slamb2002 Linux - Newbie 3 10-01-2007 04:52 PM
Unable to ping machines on a wireless ad-hoc network Pieman86 Linux - Wireless Networking 4 11-16-2006 03:29 PM
Ad-hoc wireless network stopped working Lord_Grave Linux - Hardware 0 01-18-2006 04:33 PM
My wireless ad-hoc network seems to work, but when I try to explore WWW it doesn't!! marioneri Linux - Wireless Networking 2 01-23-2005 08:52 PM
VNC for RH 7 in a wireless mobile ad-hoc network sceadu Linux - Wireless Networking 1 04-15-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:14 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
Open Source Consulting | Domain Registration