AIX Network Commands


host (ip or hostname)      Resolves a hostname / ip address

hostname                   Displays hostname
hostname (hostname)        Sets the hostname until next reboot

chdev -l (device name) -a hostname=(hostname)    Changes hostname permanently
chdev -l inet0 -a hostname=thomas

ifconfig (device name)              Displays network card settings
ifconfig (device name) up           Turns on network card
ifconfig (device name) down         Turns off network card
ifconfig (device name) detach       Removes the network card from the
network interface list
ifconfig en0 inet 194.35.52.1 netmask 255.255.255.0 up

ifconfig lo0 alias 195.60.60.1      Create alias ip address for loopback

route (add/delete) (-net/-host) (destination) (gateway)
Adds or deletes routes to other networks or hosts, does not update
the ODM database and will be lost at reboot.
route add -net 194.60.89.0 194.60.90.4

lsattr -EHl inet0                  Displays routes set in ODM and hostname
odmget -q “name=inet0” CuAt        Displays routes set in ODM and hostname

refresh -s inetd           Refresh inetd after changes to inetd.conf
kill -1 (inetd PID)        Refresh inetd after changes to inted.conf

netstat -i                             Displays interface statistics
entstat -d (ethernet adapter eg en0)   Displays ethernet statistics

arp -a         Displays ip to mac address table from arp cache

no -a          Displays network options use -o to set individual options or
-d to set individual options to default.
no -o option=value (this value is reset at reboot)
no -o “ipforwarding=1”

traceroute (name or ipaddress)        Displays all the hops from source to
destination supplied.

ping -R (name or ipaddress)           Same as traceroute except repeats.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s