On Thu, Sep 05, 2002 at 04:31:02PM -0700, [EMAIL PROTECTED] wrote: > i have an emergency unix question that has nothing to do with qPopper > > if you can help -- thanks! > > how do you set the ip address of a sun/unix server? > > we rebooted a server that someone has configured with the same address as > our windows server so its killing our windows server? > > what config file is this in ?
By now, you should have done an 'ifconfig -a' to find out what your interfaces are, and an 'ifconfig ifname ip-addr' to set the correct IP address. Your Ethernet interfaces will have names like "hme0", "le0", "ie0", "be0", "qe0". These are suffixes for files named /etc/hostname.ifname; e.g., /etc/hostname.hme0 for an interface named hme0. In that file is a host name. In /etc/hosts is the relationship between the host name and the IP address. Change whichever file(s) seem to be the ones you need. Of course, whenever changing files, it's advisable (a) to use some kind of version control. such as RCS or SCCS, and (b) not to do the edits in the same directory in which the files are used. Make a /usr/src/etc directory in which these are edited [or /usr/src/etc/inet for "hosts", which Sun places in /etc/inet/hosts with a symlink from /etc/hosts]. When your edits are done and proofed, then copy the new version to the place where they will be used. -- Joe Yao [EMAIL PROTECTED] - Joseph S. D. Yao OSIS Center Systems Support EMT-B ----------------------------------------------------------------------- This message is not an official statement of OSIS Center policies.
