I had to modify the newtork configuration of a solaris 10 host. Below, some commands and files I used/needed. This post is mostly a reminder of bulk list of commands

  • Mother of all network related command : ifconfig


  • Display the routing table : netstat -nr


  • Display open sockets, network connexions : lsof -i -n. This command is not inclueded in a standard installation, but can be obtained from solaris freeware.


  • Add/Remove a permanent route : route -p

  • Default route : cat /etc/defaultrouter


  • Name resolution (aka DNS) :
    • Check /etc/resolv.conf for correct dns addresses.

    • Check that file /etc/nsswitch.conf contains a line with hosts: files dns


  • Change an ip address :
    • Check the file /etc/hostname.interface for the hostname

    • Edit /etc/hosts and change the IP address
    • If the IP is subnetted with a weird netmask, add the wanted netmask to /etc/inet/netmasks

    • Restart the network by svcadm restart network/physical

  • Do not restart the network using a network connexion like ssh
  • Always check for the avilaibility of an alternate access to the host such as rsc, ilo or elom before changing network configuration.
    • Do not bite the hand that feeds you.


  • Configure network interfaces : dladm

    • Display interfaces : dladm show-dev

    • Display links : dladm show-links

    • Display aggregations : dladm show-aggreg


  • Firewalling:
    • Status : ipfstatus
    • Display input/output rule set : ipfstatus -i or ipfstatus -o

    • Monitoring firewall in real time : ipmon


  • IP Forwarding configuration : routeadm


  • List/Configure network services based on inet: inetadm


  • Capture and display network traffic : snoop


  • Display/Modify network driver parameters : ndd



Post your comment

Simple HTML markup is allowed.