You can use a line editor and carefully change the file that houses the ip address. Go to /etc/sysconfig/network.
For example if you are using an osa with low address ebf0 you will see a file in this directory: ifcfg-qeth-bus-ccw-0.0.ebf0
Copy this file for safety to something new, cp ifcfg-qeth-bus-ccw-0.0.ebf0 newnew.wenwen
Then you can sed the file to a new file:
sed s/<old ip address>/<new ip address>/g ifcfg-qeth-bus-ccw-0.0.ebf0 > temptemptemp
then cat temptemptemp to make sure it's ok.
When convinced it's ok then:
mv temptemptemp ifcfg-qeth-bus-ccw-0.0.ebf0
The you can play around with SuSEconfig or do it the brute force method by rebooting. There are other approaches this one works for me.
I believe your commands should work dynamically- but have seen cases where they don't. It could be due to the way IP addresses are propogated to the OSA card. Until you change the file in /etc/sysconfig/network it won't be remembered by linux across shutdowns.
David Kreuter
Noll, Ralph wrote:
How do I change the ip address of my linux??
I tried ifconfig eth0 10.37.3.98 Then ifconfig eth0 down And ifconfig eth0 up
Did an ifconfig after it was changed..
But could not putty to it...
Did a shutdown/reboot... Ip changed back to the old ip..
Guess I am missing something...
Thanks
Ralph
---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
