switching between two network configurations
Hi List
With my laptop, I'd like to access two different networks (depending on
where I am): My home network and university network.
At home, my IP is 192.168.0.99 and hostname shold be "horchloeffel", at
university the IP and hostname are set to other fixed values. What I'd
like to do is choosing at boot-time which network configuration to load.
Is it possible to write a shell script that is invoked by a lilo
parameter? It would have to set the hostname, the nameservers and the IP
adress according to predefined values (should be simple to write two
configurations, say /etc/hostname.uni and /etc/hostname.home, one of
which is copied to /etc/hostname and so on).
Is this possible, or are there other (better) solutions for doing this task?
Thanks
joerg
Reply to: