Showing posts with label aix. Show all posts
Showing posts with label aix. Show all posts

Wednesday, May 29, 2013

How to add virtual IP in AIX

Adding virtual IP address to an existing network interface is pretty easy.

You can try doing it with smitty - I've found two ways in getting to the required screen:
smitty tcpip --> Further configuration -->Network interface -->Network interface selection -->Configure alias --> Add an IPV4 Network Alias 
Here select the available interface  and press enter and the Next screen, we need to insert an IP address and the relative subnet mask and press enter.

Second way:
smitty netinterface -> Network Interface Selection -> Configure Aliases

You can also do it directly from the command line:
chdev -l en0 -a alias4=192.168.0.120,255.255.255.0

and remove this alias using:
chdev -l en0 -a delalias4=192.168.0.120,255.255.255.0

Once configured this alias will be persistent over reboots.
You can add multiple aliases to one network interface.
To verify if alias was setup correctly run:
# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 10.0.0.10 netmask 0xffffff00 broadcast 10.157.86.255
        inet 192.168.0.120 netmask 0xffffff00 broadcast 169.168.23.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0

         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

Finding HMC IP address from AIX

To check IP address of HMC simply run:
# lsrsrc IBM.ManagementServer

In newer version of AIX (6.1 TL6 or 7.1) this command will return only title and no information.
In this case you may try to run this:
# lsrsrc IBM.MCP HMCIPAddr
Resource Persistent Attributes for IBM.MCP
resource 1:
        HMCIPAddr = "192.168.1.10"
resource 2:
        HMCIPAddr = "192.168.1.20"

To find out HMC's public IP addresses run:
# lsrsrc IBM.MCP IPAddresses

Saturday, May 25, 2013

How to install relocatable packages on AIX

Install package into a custom path on AIX in three simple steps:

1. Create relocatable path:
mkusil -R /your/path/here
2. In the folder where your .bff file is run:
inutoc_r .
3. Install package with the command below:
installp_r -R /your/path/here -ad. packagename.rte

Note that you need to provide package name without version and .bff extension.