iSeries console

I caught a new search keyword in Google Analytics. Someone has been searching on how to change an iSeries (AS/400) server IP address.

To begin with, you must have proper security credentials, specifically *IOSYSCFG special authority. You must also know the line description associated with the IP address. If you have multiple network interface cards, you may have multiple line descriptions. It’s likely that your System Administrator may have the secondary line description as a redundant unit.

> WRKTCPSTS OPTION(*IFC)

10.9.10.4        10.9.10.0        ETHLIN2      Active
127.0.0.1        127.0.0.0        *LOOPBACK    Active
192.168.105.95   192.168.105.0    ETHLIN1      Active

You may add an IP address using ADDTCPIFC command. For example:

> ADDTCPIFC INTNETADR('10.4.8.100') LIND(ETHLIN1)
. SUBNETMASK(’255.255.255.0′)

> WRKTCPSTS OPTION(*IFC)

10.4.8.100       10.4.8.0         ETHLIN1      Inactive
10.9.10.4        10.9.10.0        ETHLIN2      Active
127.0.0.1        127.0.0.0        *LOOPBACK    Active
192.168.105.95   192.168.105.0    ETHLIN1      Active

> STRTCPIFC INTNETADR(’10.4.8.100′)

10.4.8.100       10.4.8.0         ETHLIN1      Active
10.9.10.4        10.9.10.0        ETHLIN2      Active
127.0.0.1        127.0.0.0        *LOOPBACK    Active
192.168.105.95   192.168.105.0    ETHLIN1      Active

You can then remove the old interface by first ending the line using ENDTCPIFC command followed by RMVTCPIFC command. Changing a server IP address is easy, as easy as pie.

Just remember to do this from a console or from one of the unaffected interface, or you’ll get booted out.