Solaris 8: NIC Loses IP Address On Reboot

Posted on 2006-04-17
Last Modified: 2013-12-21
I have a box with a fresh installation of Solaris 8; the installation completed succesfully but I'm having a problem getting the network card to "remember" its IP address.  I have tried editing the network configuration files manually as well as using 'ifconfig' all with the same result: the NIC will initially take the address that I give it and allow traffic in both directions with no errors until reboot, whereupon it will default back to and stop working.

'ifconfig -a' shows after reboot even though '/etc/hostname.hme0' and '/etc/hosts' both are both always set for - if I run 'ifconfig hme0' the correct address will show up for 'ifconfig -a' and the NIC will function nomrally until reboot.

How can I get the NIC to "remember" its IP address?
Question by:idfubar
    LVL 10

    Assisted Solution

    Can you do the following and return the output:

    ls -la /etc/hostname.hme*
    cat /etc/hostname.hme0
    cat /etc/hosts
    LVL 27

    Expert Comment

    Check if  /etc/hostname.hme0
    has leadind '\n' after


    This may help.
    Also grep all occasions of in /etc/ and /etc/rc*/*
    previous admin might left something there
    LVL 38

    Accepted Solution

    Make sure that your /etc/hosts file looks like:       localhost mybox.mydomain mybox     loghost


    /etc/hostname.hme0 file

    looks like:

    or just

    /etc/nodename file looks like


    PS: you need to replace "mybox" and "mydomain" with the real hostname and domainname of your box
    LVL 27

    Assisted Solution



    with a single IP without hostname in /etc/hosts, should also work.

    LVL 2

    Assisted Solution

    You may need to modify  /etc/netmasks with an entry which looks something like this:

    Author Comment

    I believe the reason for the error was one of two things:

    (1) the '/etc/hosts' file which had an entry like: roswell loghost

    rather than roswell loghost

    (2) the '/etc/netmasks' has an entry like:

    rather than

    The only change I made was this file; once I made the change and rebooted the correct IP stuck.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now