Aix
I know this is not linux but does any one know how to change the IP address in AIX?
-AG |
It just so happens that AIX has it's own forum, so here you go!
|
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. |
so is the syntax just "smitty tcpip" and i can edit the file from there?
|
"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 |
Quote:
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.
|
All times are GMT -5. The time now is 03:43 PM. |