Regards,
Bart Vels
PS If possible also mail your answer to ict.b...@grafidata.nl
Just edit the appropriate line in /etc/hosts.
-am © 2002
Actually, hat is not quite correct.
/etc/hosts simply tells your computer what ip numbers match what
host/domain names (like telling your compputer to look at 64.124.140.181
to find www.sun.com).
To change the ip number of a machine (or, more exactly, an interface on a
machine), you have to remove the old interface-setup and put in a new
one. This will need to be done from the system administrator's account
(typically 'root')
First, clear out the old interface by issuing the command:
/sbin/ifconfig <interface> unplumb
Then get the interface back:
/sbin/ifconfig <interface> plumb
Then assign the new information:
/sbin/ifconfig <interface> <new address> netmask <subnetwork mask>
broadcast <broadcast address>
/sbin/ifconfig <interface> up
<interface> is the name of the network interface. In a SPARCStation, this
is typically le0 or hme0
<new address> is the new ip number which you have been asssigned.
<subnetwork mask> is a dotted-decimal value that tells your computer how
many other machines are in its network group. The most common subnetwork
mask is 255.255.255.0
<broadcast address> is the ip number that is designated as being for all
of the machines in the subnetwork (typically the last ip number in the
block)
for example, on my SPARCStation, the command was
su -c '/sbin/ifconfig le0 192.168.2.200 netmask 255.255.255.0 broadcast
192.168.2.255'
su -c '/sbin/ifconfig le0 up'
prefacing the commands with the su -c ' ' allows me to run the commands
as the superuser/sysadmin, and requires knowing hte sysadmin password. It
is better to do this than to log in as the sysadmin and do stuff that
way. It is easy to make mistakes with a full sysadmin shell.
Anyway, after doing that, you will need to add a default router
route flush
route add net 0.0.0.0 <default router>
then make it permanent by saying
printf "<default router>" > /etc/defaultrouter
which in my case is
su -c ' route flush'
su -c ' route add net 0.0.0.0 192.168.2.1'
su -c ' printf "192.168.2.1" > /etc/defaultrouter'
After that, try using the network and see if it works.
Best of luck
--
A. Nony, Mouse
Address purposely munged
to foil address-harvesting robots.
To contact me: maus <AT> cyberspace <DECIMAL> org
-- Life is short. Forgive quickly. Kiss slowly. ~ Robert Doisneau
> Actually, hat is not quite correct.
Yes, I was expecting Tugger to come along after me and tell him to
reboot.
> It is easy to make mistakes with a full sysadmin shell.
It depends on how inept you are and whether you've changed the
root shell.
-am © 2002
Sometimes it is not ineptitude (though in my case, it could be). In an
environment where one is sysadmin for an important computer (such as a
server or bbs or other machine that multiple people/beings count on),
there is pressure to do things NOW, and the consequences can be ugly.
Plus there is distraction, read the wrong man page (or read the man page
wrong), bad luck, or simply a dangerous, harmful or trojanized (is that a
word?) executable or whatnot in a place where it can be hit while doing
things that should be done with non-sysadmin priveleges.
SunOS 5.6 uses /etc/nodename as the hostname and there are a
few other trivia files that contain the hostname. Although
sys-unconfig may be overkill, RTFMP for the list of files that
should be changed is a good idea.
>
> SunOS 5.6 uses /etc/nodename as the hostname and there are a
> few other trivia files that contain the hostname. Although
> sys-unconfig may be overkill, RTFMP for the list of files that
> should be changed is a good idea.
>
>
>
Thank you for pointing this out. My home machine runs Solaris 2.7 (aka
SunOS 5.7) , and at school we used Solaris 8 (aka SunOS 2.8). As soon as
I get a machine with Solaris 2.6 on it, I will need to experiment and
learn this all.
I think all of what I gave was standard SysV implementation of the BSD
TCP-networking package. If I'm missing anything else or wrong anywhere,
please let me know.
> Thank you for pointing this out. My home machine runs Solaris 2.7 (aka
> SunOS 5.7) , and at school we used Solaris 8 (aka SunOS 2.8). As soon as
Actually, your home machine is running Solaris 7 (there is no
Solaris 2.7; Solaris 7 was the first to jump from 2.x to a whole
number).
--
Rich Teer . * * . * .* .
. * . .*
President, * . . /\ ( . . *
Rite Online Inc. . . / .\ . * .
.*. / * \ . .
. /* o \ .
Voice: +1 (250) 979-1638 * '''||''' .
URL: http://www.rite-online.net ******************
Their numbering system is, IMHO, somewhat screwey. Solaris 7 it is,
then.
> Their numbering system is, IMHO, somewhat screwey. Solaris 7 it is,
> then.
You're not wrong there! I think Sun's marketroids wanted to "catchup"
to WinNT 5, or something.
I guess it does kinda make sense: Solaris 2.15 could be confused
as being a release between 2.1 and 2.2.
> On 29 Dec 2002, A. Nony, Mouse wrote:
Regardless of what the marketoids want to call it, it seems to work
reasonably well, is decently intuitive and uses CDE. What more could I
ask? Well, I suppose I could ask for a newer, more powerful machine, or
maybe better marks in school, but that will happen with hard work and
dedication and stuff.
> Sometimes it is not ineptitude (though in my case, it could be). In an
> environment where one is sysadmin for an important computer (such as a
> server or bbs or other machine that multiple people/beings count on),
> there is pressure to do things NOW, and the consequences can be ugly.
There's also pressure to do things after hours so as not to
disrupt regular business activity. It comes with the job.
> Plus there is distraction, read the wrong man page (or read the man page
> wrong), bad luck, or simply a dangerous, harmful or trojanized (is that a
> word?) executable or whatnot in a place where it can be hit while doing
> things that should be done with non-sysadmin priveleges.
Yes, all this is plausible. That's why firewalls, tripwires
and general Solaris security are important.
-am © 2002
> SunOS 5.6 uses /etc/nodename as the hostname and there are a
> few other trivia files that contain the hostname. Although
> sys-unconfig may be overkill, RTFMP for the list of files that
> should be changed is a good idea.
Whilst useful for change the hostname its not required for a
simple IP address change.
-am © 2002
> You're not wrong there! I think Sun's marketroids wanted to "catchup"
> to WinNT 5, or something.
Except that there never was an NT5. MS, being cleverer than that,
jumped to 2000 (and instantly dated their OSes in the process.
Nowadays, who in their right mind would want to run something
from the 90's like Win95 or Win98?).
> I guess it does kinda make sense: Solaris 2.15 could be confused
> as being a release between 2.1 and 2.2.
Perhaps they could use a time format like 2:15 instead. But is
that AM or PM?
-am © 2002