sys-unconfig: Reconfiguring network settings on a Solaris box

Contributor Icon Contributed by lvance Date Icon October 3, 2003  
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

Previous recipe | Next recipe |
 
  • 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.<if>
    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.
blog comments powered by Disqus