Contributed by jose on from the mobile-networking dept.
I'm looking for the netconfig problem, Using the laptop for office networked environment (with DHCP, NIS, NFS etc.) and for home environment (without DHCP, NIS, NFS but with dialup) was quite a setup task etc...
i found x projects for linux but no one which work "easy" with OpenBSD. I tried to modify Netswitch but it didn't work so well with the /etc/hostname.if files.
so my question is what do you use on your laptop?? (or is someone working on a port?)
best, Bob"
"Here are the projects for linux that I found:
Bootprofile for Linux http://www.rajeevnet.com/linux/bootprofile/ Booting Linux for desired networked environment selected at boot time
Bootprofile clone http://www.tobert.org/unix/index.html written in (bourne|korn|posix) shell (look promesing)
NetEnv http://netenv.sourceforge.net/ Netenv sets up a file containing variable assignments which describe the current environment. This can be used by the PCMCIA setup scheme, e.g. like the one that comes with Debian/GNU Linux and perhaps others.
divine http://www.fefe.de/divine/ divine starts a thread that injects fake arp requests into the network. The thread will try again up to three times, pausing 1 second between retries. If the last try times out again, the thread will print an error message, leave the interface in the original state and exit cleanly.
QuickSwitch http://muthanna.com/quickswitch - Roaming network profiles for Unix/Linux Laptops. QuickSwitch is a utility that lets Linux/Unix laptop users create and use roaming network profiles. Instead of individually reconfiguring the network card, changing DNS entries, hosts files etc. it lets you create one centralized file for all your different profiles. QuickSwitch has been around since early 2000 and is now the most widely used utility of its kind. also a Gnome Tray Applet is here. http://edgesolutions.ca/muthanna.com/quickswitch/quickswitch-gnome.html
Netswitch http://netswitch.sourceforge.net/ is a linux system admin script that 'remembers' several network configurations. Users can switch between network configurations with a simple command-line interface (CLI) command like 'netswitch.pl home' or 'netswitch.pl work'"
(Comments are closed)
By Anonymous Coward () on
ie: ./netsetup kent
would setup my ip's default routes etc for when I'm in the Kent office
By jcs () on
it loops through each one looking to see if the interface has media and then uses arping (in ports as net/arping) to ping the router of each network. if it replies, that network is configured. if not, it tries the next one. if none respond, it falls back on dhcp.
i use it every day as i take the laptop to work (ethernet) and back home (wireless).
By djm () on
If this is too much of a cop-out for you, it would be trivial to modify /etc/rc to look for a list of "configuration sets" under a subdirectory of /etc and pause its execution until one is selected (perhaps with a timeout).
The nice thing about the OpenBSD boot process is that it is so minimal that it is easy to hack things like this in.
By hubertf () on
NAME
newbtconf - multiple boot-up configurations
SYNOPSIS
newbtconf new-conf-name [orig-conf-name]
newbtconf init
DESCRIPTION
newbtconf is used to setup the system in such a way that the user is of-
fered a selection of environments in which to boot the system up into.
The most obvious application being for laptops to provide a network and
non-network environment after a successful boot into multi-user mode.
- Hubert
By shef () on
ifconfig down
ifconfig ne3 inet...
ifconfig up
echo "nameserver 111.111.111.111" > /etc/resolv.conf
route del default....
route add default....
I think it simple.
By Coleman Kane () cokane@cokane.org on http://www.cokane.org/
Comments
By lincr () rutledge.50@osu.edu on mailto:rutledge.50@osu.edu
Now I have OpenBSD on an iBook, and I mostly just leave the nic on DHCP for work and use the modem at home (ppp -foreground work). It's nice to have a laptop with a modem that works under any OS, since I used to have to mooch my dialup connection from another machine. When I need to transfer files at home I just use ifconfig.
I've only had the old 366 iBook for a couple of months, and I'm thinking that when warm weather hits it might be nice to sit on the porch with a wireless connection...
By Anonymous Coward () on
Comments
By Anonymous Coward () on