View previous topic :: View next topic |
Author |
Message |
jessler Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2454648573ee4a64cf39d3.jpg)
Joined: 17 Jul 2002 Posts: 78 Location: 127.0.0.1
|
Posted: Mon Jul 22, 2002 2:23 am Post subject: Network profiles |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
chadh Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2002 Posts: 137 Location: Atlanta, GA
|
Posted: Tue Jul 23, 2002 8:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BackSeat Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 12 Apr 2002 Posts: 242 Location: Reading, UK
|
Posted: Tue Jul 23, 2002 9:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
chadh Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2002 Posts: 137 Location: Atlanta, GA
|
Posted: Tue Jul 23, 2002 9:31 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|