LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Aix (https://www.linuxquestions.org/questions/aix-43/aix-191104/)

agallant 06-08-2004 10:01 AM

Aix
 
I know this is not linux but does any one know how to change the IP address in AIX?

-AG

chort 06-08-2004 12:02 PM

It just so happens that AIX has it's own forum, so here you go!

zorba4 06-08-2004 04:10 PM

In order to change the TCP/IP address in AIX, use the following "smitty" menus :
smitty tcpip
minimum configuration and startup
Enter system name, IP address, gateway, etc
That's all, no reboot needed.

agallant 06-09-2004 07:13 AM

so is the syntax just "smitty tcpip" and i can edit the file from there?

zorba4 06-09-2004 02:20 PM

"smitty tcpip" gives you a menu.
In that menu you first choose your adapter (the only one you have, or the first one if you have a big computer),
then it gives you a page with all the settings, IP address etc, ou simpli go to the value you want to change, and that's all.
Hope this helped (HTH).
Zorba

DriveMeCrazy 06-12-2004 06:00 AM

Quote:

Originally posted by zorba4
"smitty tcpip" gives you a menu.
In that menu you first choose your adapter (the only one you have, or the first one if you have a big computer),
then it gives you a page with all the settings, IP address etc, ou simpli go to the value you want to change, and that's all.
Hope this helped (HTH).
Zorba

just one question, wats the diff between
smitty tcpip and smitty mktcpip?

zorba4 06-12-2004 01:14 PM

I use "smit tcpip". It's just a shortcut to "smit", "communication", etc...
I did'nt use "smit mktcpip" yet, just try both and see if you don't happen to arrive to the same menu...

iainr 06-13-2004 05:57 AM

To explain further, smit is the AIX System Management Tool, like YaST on SuSE or Mandrake ControlCentre, only it was around when Linux was still at version 1, possibly earlier.

In AIX, lots of things are command driven rather than file-edit driven. There's no file to edit to change the ip address, instead there's a command to run, and the easiest way for even experienced AIX folk to do most of this stuff is to use smit.

"smitty" brings up the command line version of smit, "smit" brings up the graphical version. They give you a main menu through which you can navigate to get to any option. It also has fastpaths like "tcpip" and "mktcpip" which jump to certain screens within the menu.

Smit is an open, cutomisable tool. You can add your own menus and commands into it. You can see which commands it is running (they get logged to a file ~/smit.log for handy inclusion in shell scripts).

The mktcpip fastpath takes you to the screen for setting up your basic networking and first network interface. The tcpip fastpath takes you to the preceding menu. The fastpath to take you right to the screen to change an existing IP address is chinet (so "smit chinet" or "smitty chinet" is the command).

looseCannon 06-20-2004 10:07 AM

ifconfig works to, same syntax as in Linux. Keep in mind the NIC references are different. Use en0 for the first ethernet card, en1 for the second instead of eth0 and eth1.

fsbooks 06-20-2004 10:50 AM

ifconfig will work until the next reboot. AIX uses a binary ODM database which must also be changed. There are a number of odm commands (odmadd odmchange odmcreate odmdelete odmdrop odmget odmshow) for listing and changed this database, but using smit is probably the best idea as it should change everything you need and make your system consistent.


All times are GMT -5. The time now is 03:43 PM.