LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-18-2009, 08:49 AM   #1
danraider
Member
 
Registered: Feb 2004
Distribution: Slackware 12 - dropline Gnome
Posts: 43

Rep: Reputation: 15
sharing internet over wireless to ipnone - losing essid


Hi all,

I'm struggling with this one so it's time to ask for help.

I have wired ethernet to my laptop. I want to be able to share my network connection with my iphone.

I have set up masquerading:

# iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
# iptables --append FORWARD --in-interface wlan0 -j ACCEPT
# echo 1 > /proc/sys/net/ipv4/ip_forward

I have configured my wlan0 to a static IP - 192.168.1.100/24
call iwconfig to configure wlan0

I see the network pop up on my phone, I configure my own statis IP there, 192.168.1.100 as gateway

Success - I can connect to google for about 30 sec.

If I check iwconfig again, there is no longer a essid specified but a "CELL" value instead - and this is changing every 10 sec or so.

With the above I'm quite happy that I've configured everything OK except for iwconfig - why is it dropping my config?

PS. I've a broadcom wifi nic and I'm using ndiswrapper.
 
Old 07-18-2009, 09:02 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I guess you are doing this in Ad-Hoc? ndiswrapper is known to be fairly unstable with pretty much anything but basic device functionality (and even that is not assured), so modes like Ad-Hoc don't always work as expected, unfortunately.

Do you have any other WiFi devices that you could test with other than the iPhone? What WLAN chipset are you using? Do the kernel messages note anything interesting once the connection is dropped?
 
Old 07-18-2009, 09:16 AM   #3
danraider
Member
 
Registered: Feb 2004
Distribution: Slackware 12 - dropline Gnome
Posts: 43

Original Poster
Rep: Reputation: 15
Code:
Jul 18 15:13:32 dantastic avahi-daemon[3244]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.100.
Jul 18 15:13:32 dantastic avahi-daemon[3244]: New relevant interface wlan0.IPv4 for mDNS.
Jul 18 15:13:32 dantastic avahi-daemon[3244]: Registering new address record for 192.168.1.100 on wlan0.IPv4.
Jul 18 15:14:11 dantastic vmnetBridge: RTM_NEWLINK: name:wlan0 index:2 flags:0x00011003
Jul 18 15:14:11 dantastic vmnetBridge: Can't remove interface wlan0 2 (does not exist).
Jul 18 15:14:12 dantastic vmnetBridge: RTM_NEWLINK: name:wlan0 index:2 flags:0x00001003
Jul 18 15:14:12 dantastic vmnetBridge: Can't remove interface wlan0 2 (does not exist).
hmms... vmnetBridge, that's VMware Workstation. I'm pretty dependant on workstation though.

I'll have to see if I can prevent vmnetBridge from touching wlan0.
 
Old 07-18-2009, 09:35 AM   #4
danraider
Member
 
Registered: Feb 2004
Distribution: Slackware 12 - dropline Gnome
Posts: 43

Original Poster
Rep: Reputation: 15
Nope,

that wasn't it at all...

Stopped workstation and disabled the modules. Now there's no logging but it's still happening...
 
  


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
Sharing internet connection via wireless gugamare Linux - Networking 4 01-28-2009 03:54 AM
Sharing internet without a router or wireless? Anithen Linux - Wireless Networking 15 06-10-2008 11:41 AM
Sharing Wireless Internet Connection Mandriva winXP glassnominal Linux - Wireless Networking 5 11-27-2007 06:40 PM
Sharing external wireless internet with two computers. fair_is_fair Linux - Wireless Networking 4 07-15-2007 04:18 PM
Internet sharing wireless Fayble Linux - Newbie 9 09-19-2005 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:06 PM.

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