Pages

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 192.168.1.69 -m 255.255.255.192 -g 192.168.1.73 -n 192.168.1.73 -d example.com

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
...
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 192.168.1.69 netmask 0xffffffc0 broadcast 192.168.1.127
         tcp_sendspace 131072 tcp_recvspace 65536
...

For more information take a look athe manpage or follow this link to the online manual:
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/mktcpip.htm

No comments:

Post a Comment