Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jessler
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 78
Location: 127.0.0.1

PostPosted: Mon Jul 22, 2002 2:23 am    Post subject: Network profiles Reply with quote

I hope I'm not re-hashing a topic already discussed here before, but I have a question. I use my laptop between the office and home. At home I use DHCP on my home network. At the office I use a static address and network configuration.

Now the question, is there a utility or set of scripts that will query you at boot up for a location profile? ie. You create a profile for your work and one for home and depending on your selection it will configure the network settings for you.

I guess I could do this through a PERL script or Shell script but I hate re-inventing the wheel.

Thanks
Back to top
View user's profile Send private message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Tue Jul 23, 2002 8:15 pm    Post subject: Reply with quote

Well, I really want to get this integrated into Gentoo's init scripts, but it is not there yet. In the meantime, emerge quickswitch, and take a look at /etc/quickswitch/switchto.conf . It will do everything you need (and more). You will probably also need to take a look at the README in /usr/share/doc/quickswitch-1.0_pre1/

Report back here if you have any questions or comments.
_________________
Chad
Back to top
View user's profile Send private message
BackSeat
Apprentice
Apprentice


Joined: 12 Apr 2002
Posts: 242
Location: Reading, UK

PostPosted: Tue Jul 23, 2002 9:19 pm    Post subject: Reply with quote

What's really needed is a hack to the net script to try for a dhcp address, and if that fails to gracefully fall back to a predefined IP address, and preferably to do the whole thing asynchronously.

BS
Back to top
View user's profile Send private message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Tue Jul 23, 2002 9:31 pm    Post subject: Reply with quote

actually, dhcp-client does this, or so I have heard. It will either fall back to the previous ip address or one of your choosing.
_________________
Chad
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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