|
|
Solaris 8 - how to permamnently set static ip address instead of DHCP?
Hi
We got a SUN Blade 1000 with pre-installed Solaris 8.
Unfortunately it is set to use DHCP, however I want only a static IP
address. The hostname is by default set to: "unknown"
I know the commands:
# hostname <hostname>
# ifconfig eri0 <static ip address> network 255.255.255.0 up
but they are not set permanently. I don't know exactly which scripts in the
/etc/rc[1-6].d directories to modify!
I've searched the Solaris manuals and the Internet, without finding the
exact Solaris system admin tools to run to handle the network setup, or
which config files to modidy? Any ideas?
I've also tried to add the static IP address to this file:
/etc/hostname.eri0
without success.
Best regards
Anders
|
|
0
|
|
|
|
Reply
|
Anders
|
7/27/2006 9:13:50 PM |
|
Anders wrote:
> Hi
>
> We got a SUN Blade 1000 with pre-installed Solaris 8.
>
> Unfortunately it is set to use DHCP, however I want only a static IP
> address. The hostname is by default set to: "unknown"
> I know the commands:
> # hostname <hostname>
> # ifconfig eri0 <static ip address> network 255.255.255.0 up
> but they are not set permanently. I don't know exactly which scripts in the
> /etc/rc[1-6].d directories to modify!
>
> I've searched the Solaris manuals and the Internet, without finding the
> exact Solaris system admin tools to run to handle the network setup, or
> which config files to modidy? Any ideas?
>
> I've also tried to add the static IP address to this file:
> /etc/hostname.eri0
> without success.
>
> Best regards
> Anders
>
>
>
I'd be tempted to run /usr/sbin/sys-unconfig
and set it up from scratch. That takes you to a sort of fresh install,
so you need to add hostname, root password, domain names, dns servers
etc. You get the choice to use DHCP or not.
If you look at the man page for sys-unconfig I think it tells you the
files that get edited, so you should be able to work it out. But unless
you have good reason not too, sys-unconfig will do it quickly, with no
chance of errors.
--
Dave K MCSE.
MCSE = Minefield Consultant and Solitaire Expert.
Please note my email address changes periodically to avoid spam.
It is always of the form:
month-year@southminster-branch-line.org.uk
Hitting reply will work for a few months only - later set it manually.
http://witm.sourceforge.net/ (Web based Mathematica front end)
|
|
0
|
|
|
|
Reply
|
Dave
|
7/27/2006 9:18:49 PM
|
|
Anders wrote:
> Hi
>
> We got a SUN Blade 1000 with pre-installed Solaris 8.
>
> Unfortunately it is set to use DHCP, however I want only a static IP
> address. The hostname is by default set to: "unknown"
>
> I know the commands:
> # hostname <hostname>
> # ifconfig eri0 <static ip address> network 255.255.255.0 up
> but they are not set permanently. I don't know exactly which scripts in the
> /etc/rc[1-6].d directories to modify!
>
> I've searched the Solaris manuals and the Internet, without finding the
> exact Solaris system admin tools to run to handle the network setup, or
> which config files to modidy? Any ideas?
>
> I've also tried to add the static IP address to this file:
> /etc/hostname.eri0
> without success.
>
> Best regards
> Anders
>
>
>
See man sys-unconfig. That's the easy route to reconfiguring your
system. It will wipe your config and shut down.
When you reboot, you will be prompted for all your network information,
time zone, root password, etc. You enter your static IP address, node
name, etc, etc.
Or you could do it all by hand; the man page tells you all the files you
would need to edit. sys-unconfig is faster!
|
|
0
|
|
|
|
Reply
|
Richard
|
7/27/2006 10:49:45 PM
|
|
|
2 Replies
1252 Views
(page loaded in 0.059 seconds)
|
|
|
|
|
|
|
|
|