tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
To: tru64-unix-managers
Subject: Summary: Change from one net to another without booting.
Date: Mon, 29 Nov 1999 07:31:26 +0000	[thread overview]
Message-ID: <96079085416459.tru64-unix-managers.marc@archive.invalid> (raw)

Thank You,
Alexander and Yizar, but Serguei and Nikola=20
won the price.

I did forgot about the ifconfig dev delete command.
In linux you don't have to delete the device after
taking it down. Strangely the /usr/sbin/rcinet does
not do this. (Why?)

So this is how I do it now: (It does work!)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=


#!/bin/sh

/usr/sbin/rcinet stop

/sbin/ifconfig tu1 delete

/bin/cp /etc/rc.config.net2 /etc/rc.config
/bin/cp /etc/fstab.net2 /etc/fstab
/bin/cp /etc/resolv.conf.net2 /etc/resolv.conf
/bin/cp /etc/routes.net2  /etc/routes
/bin/cp /etc/hosts.net2 /etc/hosts
/bin/cp /etc/inetd.conf.net2 /etc/inetd.conf

/sbin/sync

/usr/sbin/rcinet start

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=


And I have a similar script to change to net1....



--=20
Tony Lindstr=F6m * System Manager * Tekla Oy
tel:+358 9 887 9441  gsm:+358 40 762 0768
http://www.iki.fi/tonyk/ mailto:tonyk@iki.fi

                 reply	other threads:[~1999-11-29  7:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox