* Summary: Change from one net to another without booting.
@ 1999-11-29 7:31
0 siblings, 0 replies; only message in thread
From: @ 1999-11-29 7:31 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-11-29 7:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-29 7:31 Summary: Change from one net to another without booting
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox