Troubleshooting Network Administration Issues in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Performing Basic Network Configuration Checks

You can troubleshoot network configuration problems with a single system by using the dladm and ipadm commands. These two commands, when used without any options, provide useful information about your current network configuration.

    The following are some of the ways in which you can use these commands to troubleshoot configuration issues:

  • Use the dladm command to display general information about all of the datalinks that are on a system:

    # dladm
    LINK        CLASS     MTU     STATE     OVER
    net0        phys      1500    up        --
    
  • Display information about the mapping between the datalinks, their generic names, and the corresponding device instances as follows:

    # dladm show-phys
    LINK     MEDIA        STATE     SPEED     DUPLEX     DEVICE
    net0     Ethernet     up        1000      full       e1000g0
  • Use the ipadm command to display general information about all of the IP interfaces that are on a system:

    # ipadm
    NAME         CLASS/TYPE STATE     UNDER  ADDR
    lo0          loopback   ok        --     --
     lo0/v4       static    ok        --     127.0.0.1/8
     lo0/v6       static    ok        --     ::1/128
    net0         ip         ok        --     --
     net0/v4      static    ok        --     10.132.146.233/24
  • Use the ipadm show-if interface command to display information about a specific IP interface:

    # ipadm show-if net0
    IFNAME     CLASS    STATE    ACTIVE OVER
    net0       ip       ok       yes    --
    
  • Display information about all of the interfaces on a system as follows:

    # ipadm show-if
    IFNAME       CLASS        STATE     ACTIVE     OVER
    lo0          loopback     ok        yes        --
    net0         ip           ok        yes        --
  • Display information about all of the IP addresses on the system as follows:

    # ipadm show-addr
    ADDROBJ          TYPE       STATE     ADDR
    lo0/v4           static     ok        127.0.0.1/8
    net0/v4          static     ok        192.168.84.3/24
  • Use the ipadm show-addr interface command to display information about a specific interface's IP address:

    # ipadm show-addr net0
    ADDROBJ           TYPE     STATE        ADDR
    net0/v4           dhcp     ok           10.153.123.225/24
  • Display the properties of a specific IP address as follows::

    # ipadm show-addrprop net1/v4
    ADDROBJ           PROPERTY   PERM CURRENT         PERSISTENT      DEFAULT   POSSIBLE
    net0/v4           broadcast  r-   10.153.123.255  --              10.255.255.255  --
    net0/v4           deprecated rw   off             --              off   on,off
    net0/v4           prefixlen  rw   24              --              8   1-30,32
    net0/v4           private    rw   off             --              off   on,off
    net0/v4           reqhost    r-   --              --              --   --
    net0/v4           transmit   rw   on              --              on   on,off
    net0/v4           zone       rw   global          --              global

For more information, see the ipadm (1M) man page.