home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!sys-uea.ac.uk!gel
- From: gel@sys.uea.ac.uk (Gareth Lee)
- Newsgroups: comp.unix.ultrix
- Subject: Re: How to change diskless client IP address?
- Message-ID: <gel.715606791@zen.sys.uea.ac.uk>
- Date: 4 Sep 92 11:39:51 GMT
- References: <1992Sep3.191946.19852@doug.cae.wisc.edu>
- Sender: news@sys.uea.ac.uk
- Organization: UEA School of Information Systems, Norwich, UK.
- Lines: 56
- Nntp-Posting-Host: zen.sys.uea.ac.uk
-
- pranjoto@ece.wisc.edu (Hokkie Pranjoto) writes:
-
-
- >We have a Decstation 5000/200 server with 3 diskless clients. We need
- >to change the IP addresses of all 4 machines. We got the server changed
- >with no problem. We changed one client by deleting the client and
- >adding it back with dms. After doing this we had to reconfigure all
- >the installed sets. Is there an easier way to do this? In particular,
- >is the IP address of the client stored some place where we can edit
- >it? (We tried editing the IP addresses in both the server and client
- >/etc/hosts, but that did not do the job.)
-
- >Thanks.
- >Hokkie Pranjoto
-
- In addition to editing the respective hosts files you need to edit the
- netblk.c file in the host's /etc directory. ie. if the server if called
- fatcat and the host mutley the file will be in the server filesystem as
- /dlclient0/mutley/etc/netblk.c. A typical file is of the form
-
- #include <sas/mop.h>
- struct netblk nblk={
- "fatcat",
- 0x8bde0a5b, "mutley", 0x8bde0a59, 0x8bdeffff, 0xffff0000,
- 0,
- 5,
- 0,
- -1,
- "/dlclient0/mutley.root",
- "rz3b",
- ""
- };
-
- where "fatcat" is the server name and 0x8bde0a5b is the server IP address
- in hex (ie. 139.222.10.91). Similarly "mutley" is the client name and it's
- address is 0x8bde0a59 (139.222.10.89). The 5th and 6th fields are the client
- broadcast and netmask addresses. Other fields describe where to mount
- the client root directory from and where to swap to etc. . You can therefore
- change the forth field to reflect the new client address. It's then necessary
- to recompile the netblk.c file with
-
- % cc -c netblk.c
-
- thereby updating netblk.o.
-
- The final change is to modify the CLIARP field in the client dlparam file
- (ie. /dlclient0/mutley/etc/dlparam in my example). The mop-mom should then
- operate correctly allowing the client to reboot with the new IP address.
-
- Dr Gareth Lee.
- Speech and Pattern Processing Group,
- University of East Anglia,
- Norwich, UK.
-
- PS. This solution was supplied to me by the DEC UK help line some months ago.
- My thanks to them.
-