Saturday, 6 April 2013

AIX Network commands

Resolve umserv01 to ip address (from /etc/hosts file):
#host umserv01
To change the host name to umserv01:
#hostname umserv01
To the status of ethernet device en0:
#entstat en0
To list the detailed status of device en0:
#entstat -d en0
To list all net configurable attributes and their values:
#no -a
To change umserv01wall parameter to its default value:
#no -d umserv01wall
To make the machine as router in tcpip networks:
#no -o ipforwarding=1
To trace the route to umserv01:
#traceroute umserv01
To tcp ping to the machine umserv01:
#ping umserv01
To show the status of all network interfaces:
#ifconfig -a
To show the status of en0:
#ifconfig en0
Turns on network card en0:
#ifconfig en0 up
Turns off network card en0:
#ifconfig en0 down
Removes en0 card from the network interface list:
#ifconfig en0 detach
Configure en0 starts immediately:
Temporarily:# ifconfig en0 inet netmask up
Permanently:# chdev -l en0 -a netaddr= -a netmask=0xffffff00
Create alias ip address for en0:
Temporarily:# ifconfig en0 alias netmask
Permanently:# chdev -l en0 -a alias4=,
Remove a permanently added alias:
# chdev -l en0 -a delalias4=,
# smitty tcpip -> further Configuration -> Network Interfaces -> Network Interface Selection -> Configure Aliases
To make as default gateway for entire network:
Temporarily:#route add 0
Permanently:#chdev -l inet0 -a route=0,
To make 200.7 as gateway for 300.0 network:
#route add 192.100.300.0
To clear the gateway table:
#route -f
To change the host name to umserv01 permanently:
#chdev -l inet0 -a hostname=umserv01
To set the MTU to 1500 on en69:
#chdev -l en69 -a mtu=1500
To show the state of all sockets:
#netstat -a
To show the network buffers cache:
#netstat -c
To show the net drops of packets:
#netstat -D
To display interface statistics:
#netstat -i
To show the routing table:
#netstat -r
To show routing table (ip will be given instead of host names)
#netstat -rn
To show the statistics of the protocols
#netstat -s
To show the statistics of respective protocols
#netstat -s -p < tcp/udp/ipv6>


  1. update with commands for ipv6 please. thx

  2. Is there a command to print the persistent routes, in an easily readable form? I want a way to compare with the current routing table to ensure all the routes have been added to ODM *BEFORE* a reboot.

  3. "route add 192.100.300.0" will not work,
    300 is not vaild in IP...

  4. how To enable link status monitoring permenently?