Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing of IP address

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

I changed the IP address of an AIX box. I did this by using ifconfig coomand on the fly.

I recently rebooted the machine. Now I am left with the old IP address.

Is there a way to change the IP address permanently.

Also I need to specify the default router. On some unix systems I used to edit /etc/defaultrouter to have a permernanat entry. What is the name of the file that I have to edit to include a default router.

Thanks.


 
Use the "smit tcpip" fastpath, select "Minimum Configuration & Startup", select your interface (en0?), then change you IP on the following page.

I assume you are talking about the default gateway address when you mentioned the "defaultrouter". This can be found on the same page as above.( Default GATEWAY Address ) IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
I usually remove everything including the card definition and then go into minimum when I am done.

ifconfig en0 down ( or et0 if using the other 802.3 network setup)
ifconfig en0 detach
ifconfig et0 down
ifconfig et0 detach
rmdev -dl et0
rmdev -l en0 -d ( to remove the definition)
rmdev -dl ent0 (to remove the card itself)
cfgmgr ( to reconfigure equipment and drivers or reboot)
NOW you can go into smit and set up the ethernet speed and full
or half duplex.
(smitty devices, ethernet adapter....)
...then go into minimal configuration and add
your changes. REMEMBER to add your cable type.
(smitty tcpip, minimum config)

Remember to go into minimum configuration for the main
ethernet card. It is further configuration for additional ethernet
cards.

Also check your /etc/hosts file after doing the above to be sure it cleaned itself up, and check the rc.net file incase you added stuff....hard coded...

 
Hello,
In the smit panel there is a option (last one) that say do you want to add this change to ODM. you have to say yes to that option.
 

Thanks a lot to all of you.

It really worked and I learned so much in one day.


I am an instructor in Solaris. We in Solaris maintain different files to add many things like , IP, Hostname, default gate ways etc.

So I find it rather amused to add things using SMIT.

If any one needs any help in Solaris, please post your query and I will answer.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top