Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto setup wireless: static ip at home, dynamic elsewhere.
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
oscurochu
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2009
Posts: 89

PostPosted: Wed Aug 05, 2009 6:26 am    Post subject: howto setup wireless: static ip at home, dynamic elsewhere. Reply with quote

Wireless networking isn't very clear to me even after reading the docs and wikis. They all include examples of how to connect to a secured network.

I have installed Gentoo on my laptop. When I'm at home, I want my laptop to use these settings and connect automatically when in range:
Code:
ESSID: F30E2
IP Address: 192.168.2.103
Subnet Mask: 255.255.255.0
Gateway: 192.168.2.1
DNS Server: 192.168.2.1


My router filters by MAC addresses so security is not a problem.
While I am away from home, I want my laptop to use DHCP settings automatically, and connect to a network automatically. I do not want to be editing text files and restarting my network interface or any of that everytime I leave the house.

Ubuntu works similarly to how I explained how I want my network to be, and I want Gentoo to work as closely to Ubuntu as I can. I do not have an x server, DE or WM setup at this time. I know there is a /etc/conf.d/net file, but like I said I don't know how to configure it to work how I want it to. I've done research on iwconfig and ifconfig and none of that is clear to me either. I don't mind working with those tools, I just don't know how to use them (yet). :(
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Wed Aug 05, 2009 3:10 pm    Post subject: Reply with quote

If you set up your dhcp client so that it defaults to a static address things
should work the way you want as far as addressing is concerned - the setup
is in dhclient.conf, or a similar file.

Setting up wireless is described pretty completely in the various net scripts;
I don't think I can better that as documentation. You don't need to use
iwconfig explicitly.

Will
Back to top
View user's profile Send private message
oscurochu
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2009
Posts: 89

PostPosted: Wed Aug 05, 2009 5:34 pm    Post subject: Reply with quote

That did not help me at all. I cam stuck in the same situation. If I understood all the different options in the documentation, I obviously wouldnt be here trying to get help.

I did "man dhcpcd.conf" which got me nowhere, told me nothing. Can you please help me instead of taking the easy way out? If you dont wanna help then just dont post. Thanks.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Fri Aug 07, 2009 5:12 am    Post subject: Reply with quote

The handbook is pretty clear about how to setup a wireless network with /etc/conf.d/net & wpa_supplicant ... especially section 4.d should give you everything at hand to set up your configuration to your likings ;-)

HTH
swimmer
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Aug 07, 2009 3:03 pm    Post subject: Reply with quote

There should also be a file /etc/conf.d/net.example that has lots of good working examples.
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