Determining the status of resources

To check the actual status of the network interface, use the IP netstat and ifconfig commands.

The netstat command provides the names of all network interfaces together with addressing and statistical information. The ifconfig command shows the current parameters of a specified network interface.

  1. The netstat command provides the names of all network interfaces together with addressing and statistical information. To list all network interfaces, from the Connection Manager command line, enter:
    netstat -i

    An example on an AIX system is shown in Figure 1

    An example on a Linux or Solaris system is shown in Figure 2

    Figure 1. Sample output of netstat command - AIX. The figure shows a sample output of the netstat command showing the status of the network interface on an AIX system.
    Name  Mtu   Network     Address         Ipkts    Ierrs Opkts    Oerrs Coll
    lo0   1536  <Link>                         23339     0    23339     0     0
    lo0   1536  127         loopback           23339     0    23339     0     0
    mn0   4096  <Link>                          7146     0     8497     0     0
    mn0   4096  8.54.56     8.54.56.2           7146     0     8497     0     0
    mn1*  4096  <Link>                            20     0       21     0     0
    mn1*  4096  193.99.234. 193.99.234.65         20     0       21     0     0
    mn2*  4096  <Link>                             8     0        8     0     0
    mn2*  4096  193.99.234. 193.99.234.129         8     0        8     0     0
    mn3*  4096  <Link>                             4     0        4     0     0
    mn3*  4096  193.99.234. 193.99.234.193         4     0        4     0     0

    In Figure 1 network interface mn1 uses IP address 193.99.234.65 and a maximum packet size of 4096. On this interface 20 IP packets were received and 21 sent, with no I/O errors. The asterisk character (*) following the network name indicates that the network is inactive. In its current inactive state, the mn1 interface cannot send and receive packets.

    Figure 2. Sample output of netstat command - Linux or Solaris. The figure shows a sample output of the netstat command showing the status of the network interface on Linux or Solaris.
    # netstat -i
    Name		Mtu	  Net/Dest		  Address	  Ipkts	  Ierrs Opkts	Oerrs Collis Queue
    lo0		8232		loopback	localhost  	785614	  0     785614    0    0     0
    trp0		4472		Jlj		Jlj		16401177   0	135886	 0	0    0
    
    mn0		1500		10.150.1.0 	10.150.1.1	  0	  0	0	 0	0    0
    # pwd
    /user/dt/bin
    #		         	 	
  2. To show the current parameters of a specified network interface, from the SafeLinx Server command line on UNIX-based systems, enter:
    ifconfig mn0
    On Windows systems, enter:
    ipconfig mn0

    An example on an AIX system is shown in Figure 3

    An example on a Linux or Solaris system is shown in Figure 4

    Figure 3. Sample output of ifconfig command - AIX. The figure shows a sample output of the ifconfig command showing the current parameters of the network interface on an AIX system.
    mn0: flags=60<NOTRAILERS,RUNNING>
            inet 193.99.234.65 netmask 0xffffffc0

    In Figure 3 network interface mn1 is using network mask 0xffffffc0. The 0x prefix indicates hexadecimal format; the equivalent dotted decimal notation is 255.255.255.192.

    Figure 4. Sample output of ifconfig command - Linux or Solaris. The figure shows a sample output of the ifconfig command showing the current parameters of the network interface on a Linux or Solaris system.
    # ifconfig mn0
    mn0: flags=043<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    	inet 10.150.1.1 netmask ffffff00 broadcast 10.150.1.255
    	ether 0:6:13:19:58:0
    #