sys-unconfig: Reconfiguring network settings on a Solaris box

Posted October 3, 2003 by lvance in Solaris

This command will unconfig a solaris box back to its original state. It takes you back to the original setup for the network settings for the box. You will be prompted for the ip address, default route, etc just as if you were re-installing the operating system.


/# sys-unconfig

This program will unconfigure your system. It will cause it
to revert to a “blank” system – it will not have a name or know
about other systems or networks.

This program will also halt the system.

Do you want to continue (y/n) ? n

The Conversation

Follow the reactions below and share your own thoughts.

  • Name

    I came here by accident. But why doing sys-unconfig only to reset the network
    configuration? On Solaris up to 10 and Nevada you simply need to edit the files
    /etc/defaultrouter, /etc/nsswitch.conf, /etc/resolv.conf and /etc/hostname.
    as well as setting up the correct hostname in /etc/inet/hosts and not to forget
    /etc/nodename. But you do not loose the whole rest of the config as would be
    when running sys-unconfig.
    OpneSolaris runs similar, but remember /etc/dladm/* if running nwam.

  • Joe

    don’t forget /etc/dumpadm.conf

    • Kevinmcs

      For exactly the reason you make so clear in your posts.
      You don’t have to remember each of those (8) files or the syntax that is required to edit them OR how to use the damn VI editor. You can just run the command and after a quick reboot you enter the info and poof! Your done. It also has the benefit to clear any unknown problems someone else before you might have caused.

      • Kevin

        >I’ve ran the sys-unconfig but not sure what option to take when presented with Service Name: NIS, NIS+, DNS, LDAP and none. Its just a straight forward client not doing anything special, which should I choose ? I wanted to change the ip address etc as moving to different range and ran into this. I took the option of DHCP and was expecting it to present me with a client name entry but a little stumped. If I choose NONE will I be able to change the name after ? How can I get to that file mentioned above.