Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ad-hoc suddenly goes wrong and gives ip address as 169.254.*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
womiluti
n00b
n00b


Joined: 06 Mar 2014
Posts: 8

PostPosted: Sat Mar 08, 2014 2:14 pm    Post subject: Ad-hoc suddenly goes wrong and gives ip address as 169.254.* Reply with quote

I have used my laptop as an hot spot in ad-hoc mode for nearly a month and it was all right.
Yesterday, when my ipad connect to it, it gives an ip address 169.254.* and as a result my ipad cannot surf the Internet.
How can I rescue it so that devices connected to the wireless can surf the internet again?
I'm raw in gentoo, so if any infomation is needed, please tell me
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32163
Location: 56N 3W

PostPosted: Sat Mar 08, 2014 3:17 pm    Post subject: Reply with quote

womiluti,

Welcome to Gentoo.

In ad-hoc mode 169.254.*, self assigned IP addresses are correct.
Ad-hoc mode is intended for a localised group of systems to communicate among themselves.
There is no dhcp server and no gateway to any other network.

Your laptop needs to run as an access point and probably provide NAT to your other devices.

You cannot use ad-hoc mode and have internet access from the ad-hoc network at the same time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
womiluti
n00b
n00b


Joined: 06 Mar 2014
Posts: 8

PostPosted: Sun Mar 09, 2014 12:51 pm    Post subject: Reply with quote

NeddySeagoon wrote:
womiluti,

Welcome to Gentoo.

In ad-hoc mode 169.254.*, self assigned IP addresses are correct.
Ad-hoc mode is intended for a localised group of systems to communicate among themselves.
There is no dhcp server and no gateway to any other network.

Your laptop needs to run as an access point and probably provide NAT to your other devices.

You cannot use ad-hoc mode and have internet access from the ad-hoc network at the same time.

Thanks!
But in the last month, I used kde's networkmangement.
When add a new wirelee and choose share, there are 3 mode -- two of them are ap and ad-hoc.
I choose ad-hoc and then mobile devices can have access to the internet through it.
That time, mobile devices can gain correct ip address, not 169.254.* ones.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32163
Location: 56N 3W

PostPosted: Sun Mar 09, 2014 2:32 pm    Post subject: Reply with quote

womiluti,

That way it was working was incorrect. It looks like its been fixed.
I don't use KDE, so I can't comment on its networkmangement.

Try the AP modes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
womiluti
n00b
n00b


Joined: 06 Mar 2014
Posts: 8

PostPosted: Sun Mar 09, 2014 2:54 pm    Post subject: Reply with quote

NeddySeagoon wrote:
womiluti,

That way it was working was incorrect. It looks like its been fixed.
I don't use KDE, so I can't comment on its networkmangement.

Try the AP modes.

Well, I'll try hostapd
thanks~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum