School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,149 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,706 people online right now. Registration is fast and FREE... Join Now!




Wlan getting wrong Subnet Mask and IP

 

Wlan getting wrong Subnet Mask and IP

ts230

20 Oct, 2009 - 05:13 PM
Post #1

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
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?

User is offlineProfile CardPM
+Quote Post


no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:23 PM
Post #2

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
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!
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:28 PM
Post #3

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
Yes. Exactly that. In System Prefs, it says it might not be able to connect, which is 100% right.
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:31 PM
Post #4

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
169.254.x.x is the standard "DHCP didn't respond, so the ip address was self assigned". It indicates network failure.
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:35 PM
Post #5

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
OK. WHat can I do to fix this?
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:38 PM
Post #6

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
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 :

CODE

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.

QUOTE(ts230 @ 20 Oct, 2009 - 07:35 PM) *

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?
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:45 PM
Post #7

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
I will try now. I'll report with any issues. Do I have to reboot after?
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:47 PM
Post #8

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
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.
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 05:53 PM
Post #9

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
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 Oct, 2009 - 06:07 PM
User is offlineProfile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 06:35 PM
Post #10

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
@no2pencil:

Your
CODE

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.
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 06:38 PM
Post #11

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

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

Do you see your wireless device as an option to connect to?
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

20 Oct, 2009 - 06:42 PM
Post #12

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
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 Oct, 2009 - 07:07 AM
User is offlineProfile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

21 Oct, 2009 - 05:29 PM
Post #13

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
I looked in my router's settings, and I couldn't find anything that might be causing this. What should I do now?
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

21 Oct, 2009 - 05:39 PM
Post #14

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

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

Above that, I don't know.
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

21 Oct, 2009 - 06:17 PM
Post #15

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
OK. I might try that. Can I just reset the DHCP settings?
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Wlan Getting Wrong Subnet Mask And IP

21 Oct, 2009 - 06:20 PM
Post #16

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,499



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
No. DHCP is either on or off. There is a button on your router/switch that if you hold it in for 10+ seconds, it flashes the firmware with all the default configurations.
User is online!Profile CardPM
+Quote Post

ts230

RE: Wlan Getting Wrong Subnet Mask And IP

21 Oct, 2009 - 07:36 PM
Post #17

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 159



Thanked: 10 times
My Contributions
I'll try to find that button.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 11/21/09 04:17PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month