sys-unconfig: Reconfiguring network settings on a Solaris box

Contributor Icon Contributed by lvance  
Tag Icon Tagged: 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.


Command:
#sys-unconfig

Output:
/# sys-unconfig
WARNING

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

 

3 Comments -


  1. Name said on November 15, 2009

    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.

  2. Joe said on March 9, 2011

    don’t forget /etc/dumpadm.conf

  3. Kevinmcs said on April 12, 2011

    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.

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -