AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
"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
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?
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...
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.