Tuesday, March 15, 2011

Configuring network in AIX

Configuring your AIX machine for network acces isn't real hard. First get all available network devices:

# lsdev -Cc if
en0 Defined   02-08 Standard Ethernet Network Interface
en1 Defined   02-09 Standard Ethernet Network Interface
et0 Defined   02-08 IEEE 802.3 Ethernet Network Interface
et1 Defined   02-09 IEEE 802.3 Ethernet Network Interface
lo0 Available       Loopback Network Interface

In the above output you can see the devices enX, etX and lo0. enX are the standard ethernet devices, etX are the HMC devices and lo0 is of course the loopback interface. To confiugre one of this interfaces use the command mktcpip:

# mktcpip -i en0 -h aix01 -a -m -g -n -d

The options are the following:

-i: Interface
-h: Hostname
-a: IP Address
-m: Netmask Address
-g: Gateway Address (Optional)
-n: Nameserver Address (Optional)
-d: Domain Name (Optional but depends on -n)

Check your settings:

# ifconfig -a
        inet netmask 0xffffffc0 broadcast
         tcp_sendspace 131072 tcp_recvspace 65536

For more information take a look athe manpage or follow this link to the online manual:

No comments:

Post a Comment