Wlan getting wrong Subnet Mask and IP

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 6495 Views - Last Post: 21 October 2009 - 08:36 PM

#1 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:13 PM

Hi there!
I have a mac now, and I got a Hawking USB Wlan stick, and I OS X has some problems with it. It works perfectly at school, and on unencrypted networks, but it works with my router at home only sometimes, and even DHCP, DHCP with Manual Address and Manual mode failed. All my other computers connect fine with the WLan stick. Can anyone help?
Is This A Good Question/Topic? 0
  • +

Replies To: Wlan getting wrong Subnet Mask and IP

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:23 PM

By any chance is the ip you are getting 169.254.x.x & on subnet 255.255.0.0 ?

& let me see if I understand this correctly...the mac isn't working right, but the other PC's are? zomg!
Was This Post Helpful? 0
  • +
  • -

#3 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:28 PM

Yes. Exactly that. In System Prefs, it says it might not be able to connect, which is 100% right.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:31 PM

169.254.x.x is the standard "DHCP didn't respond, so the ip address was self assigned". It indicates network failure.
Was This Post Helpful? 0
  • +
  • -

#5 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:35 PM

OK. WHat can I do to fix this?
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:38 PM

I had a customer a few months back on Mac that was getting this, even though his network had not changed.

I opened a command prompt, issued the following, & he was up & running right away. Assuming that your device is en0 :

sudo ifconfig en0 down
sudo dhcpcd 



If the above doesn't work, try sudo dhclient

For the life of me, I can't remember the command 100%, & I don't have a Mac in front of me, to test which syntax that they use. You should be able to use tab complete to allow it to work for you.

You can check this site as a reference for ifconfig commands.

View Postts230, on 20 Oct, 2009 - 07:35 PM, said:

OK. WHat can I do to fix this?

Without knowing what the problem is, it's a little more difficult to guess a solution.

Are you trying to do this over wireless, or a direct connection to a networking device?
Was This Post Helpful? 0
  • +
  • -

#7 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:45 PM

I will try now. I'll report with any issues. Do I have to reboot after?
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:47 PM

No, a reboot is not necessary. You're just requesting that the dhcp server assign your device a new ip address.

Rebooting is a Windows troubleshooting tool of "I'm not sure what went wrong, so lets let the OS try again". You'll find with Linux/Unix that the system will come back up in just about the same state that it went down. Rebooting fixes very little for *nix systems.
Was This Post Helpful? 0
  • +
  • -

#9 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 06:53 PM

Nope. Still the IP issue. I'm trying with wireless. And the dhcpcd and dhclient are not there.
Any ideas?

This post has been edited by ts230: 20 October 2009 - 07:07 PM

Was This Post Helpful? 0
  • +
  • -

#10 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 07:35 PM

@no2pencil:

Your
sudo ifconfig en1 down
sudo dhcpcd 


Didn't work. The 1st command worked. Then I went into System Prefs, Network, selected my device and clicked Advanced..., and then I hit "Renew DHCP Lease".

That didn't do the thing though.
Was This Post Helpful? 0
  • +
  • -

#11 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 07:38 PM

Have you tried power cycling your wireless device (router/switch)?

Do you see your wireless device as an option to connect to?
Was This Post Helpful? 0
  • +
  • -

#12 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 20 October 2009 - 07:42 PM

Yes and Yes. I see my WLan Stick in SYstem Prefs as a second Ethernet Port, and I connect using the utility that it came with. And I see my WLan router on there, and it might be the encryption or something, I don't know.

Is there any way I can fix this?

This post has been edited by ts230: 21 October 2009 - 08:07 AM

Was This Post Helpful? 0
  • +
  • -

#13 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 21 October 2009 - 06:29 PM

I looked in my router's settings, and I couldn't find anything that might be causing this. What should I do now?
Was This Post Helpful? 0
  • +
  • -

#14 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Wlan getting wrong Subnet Mask and IP

Posted 21 October 2009 - 06:39 PM

You could restore your wireless routers settings to default, & resetup any encryption that you had on it.

Above that, I don't know.
Was This Post Helpful? 0
  • +
  • -

#15 ts230   User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 225
  • Joined: 11-July 09

Re: Wlan getting wrong Subnet Mask and IP

Posted 21 October 2009 - 07:17 PM

OK. I might try that. Can I just reset the DHCP settings?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2