LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   sharing internet over wireless to ipnone - losing essid (https://www.linuxquestions.org/questions/suse-opensuse-60/sharing-internet-over-wireless-to-ipnone-losing-essid-741003/)

danraider 07-18-2009 08:49 AM

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.

MS3FGX 07-18-2009 09:02 AM

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?

danraider 07-18-2009 09:16 AM

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.

danraider 07-18-2009 09:35 AM

Nope,

that wasn't it at all...

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


All times are GMT -5. The time now is 11:25 AM.