Change IP permanently without Yast?

Folks;
in SUSE 10, How can i change the IP address as well as the GW & Netmask permanently without using Yast? using only command line and editing the required files?
Which files and services need to be edited/restarted to make it happen?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Check /etc/sysconfig/network/ and the files contained therein. This
isn’t the supported way so… is there a reason why ‘yast’ can’t be used?

Good luck.

katkota wrote:
> Folks;
> in SUSE 10, How can i change the IP address as well as the GW & Netmask
> permanently without using Yast? using only command line and editing the
> required files?
> Which files and services need to be edited/restarted to make it happen?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJpFuHAAoJEFl00+q2r0YpMNsP/3veyl1KTyQGOIoiTE4xwH5t
B4KlYoKz1JgX4cWE8arlz7UoD+miUq8/pdyFgXKoPtgHG9yxcO+A8dwDXY/4MGR6
f+frC3/Q6J6KbZhN4Reb6qvoKz0dtmZRPTDwtND8xeSwt9SPLYaiF8A0uwlwC10A
hMsGHAjo8SF25juFuGN84dzOTEnXSLi72PLhhFiMNCUn4CIG2XOiyzhNvWokmif+
nVMT73EEUFgQxJhibyMk8UZLY6UsM+pY5iLB2A6hj6HuX5Ppi2we2WHrUAtpwkqc
sMKDHiel0SwQuKO/1L2n2tlfvgs+J7m1a0/ydWkmJI2ZcK22frkSK10JhJ3esmbY
oWgFrbu28PA/nQJxVTSxZHdNtGXICvyk7/xLn8ljaAnK4FMdZnZF8Rxgiloh0Uxg
0i0p1Ds8PKerV4CLRsCrDoSroTHazgJ4AkOmZh1xXhMRaZzbaGITJ4wssYRyIqMt
MkUAbBEr5EjPi4gyncCspQnoB4J9DAJJy1RejnZcwH32iM8Tk1RUYIk3ESRwe+PJ
2EFCGc6nMhzQjp3Qi4pUtJnISKNgZ24vBCqi0feaBjeFZuuBI3RxHsklrRmv3225
Ke5hMp+glWJDeCotWLm8kMnJzhj4uQM+Wci4r5IuWIQ2FnZpryU6csxtoGNKBeeb
9AWO0p/s6QhabAuhxKwl
=L+OK
-----END PGP SIGNATURE-----

On 2009-02-24, ab@novell.com <ab@novell.com> wrote:
> katkota wrote:
>> Folks;
>> in SUSE 10, How can i change the IP address as well as the GW & Netmask
>> permanently without using Yast? using only command line and editing the
>> required files?
>> Which files and services need to be edited/restarted to make it happen?
>>
>>
> Check /etc/sysconfig/network/ and the files contained therein. This
> isn’t the supported way so… is there a reason why ‘yast’ can’t be used?
>

All YaST2 does is edit these files, how should that not be supported? Anyway,
katkota, did you know that YaST2 is functional in a terminal (curses
interface)? Just call it.

Kind regards,
Andreas Stieger

For a security reason Yast is removed so it’s not under “/sbin/yast” or any where

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The issue would be that modifying /etc/sysconfig/* is made to work with
Yast. There may be other files in /etc/sysconfig/network that are
affected by a change in Yast but which are not easy to see from just
perusing the files. Breaking something may not be the most-fun thing to
do. Since there is, as you mentioned, an ncurses version I can’t think
of why you would do this manually but since the OP requires a way
modifying files that should be the way to do it… or at least it’s
where I’d start. If you know every single modification made by Yast for
any given change that a user finds useful (like this one) then write up
a CoolSolution on it and get yourself some points for prizes.

Good luck.

Andreas Stieger wrote:
> On 2009-02-24, ab@novell.com <ab@novell.com> wrote:
>> katkota wrote:
>>> Folks;
>>> in SUSE 10, How can i change the IP address as well as the GW & Netmask
>>> permanently without using Yast? using only command line and editing the
>>> required files?
>>> Which files and services need to be edited/restarted to make it happen?
>>>
>>>
>> Check /etc/sysconfig/network/ and the files contained therein. This
>> isn’t the supported way so… is there a reason why ‘yast’ can’t be used?
>>
>
> All YaST2 does is edit these files, how should that not be supported? Anyway,
> katkota, did you know that YaST2 is functional in a terminal (curses
> interface)? Just call it.
>
> Kind regards,
> Andreas Stieger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJpGiCAAoJEFl00+q2r0YpvlkP/j4nxK7WibzgT89uDcJzJzlt
mNvADOBtfYgOSbb9rTQcadmy28f3Yqka+fxLZoIib+LJorR2quq+2VAk5hPxRIVe
KiNrySRpf2LkzX33Jrfm2uruPR4bZDrNDqP5Rf5EJcAA1mURI3TVqYhbUM9Mj9gl
aK2G2CUCeBpO0hyPE8csHh20/kIRqt0Px24C27k+Am6Uk7dE7nLsTkJCmVhd3uwf
t5S+7Uv91tKmI+DhfPOKdxhKFRddJg7pLaqf7M/PS0b3Sm4+IJVdR7mpmbYxMofC
MweotSZfY4psuu+6va5fCGsmSAE4cKVPgD9JTmqPzr8fOOe+rMYeaF67FhSh1dHk
1Yuo+7ezsGPEGOVck59rX39yC2PjBiO50xYhVG3yVvaCN16JeWwyEvB1k/t1uEI1
f/FZ9frQXj18zURQMTI7RvOPngsNDgrqIzvS/MdfHYKo54mIjSwF5+oXsr8dTDD7
Q/8tpuh22RbxKQTx1gtwXCKZumdFtN9RsA1SOC4RdwiqzyDys/AwddQ6ictXnb4+
7Kcy1OTR8KQ/+6g38sv5gDH06OefCT/Y1QYKai5O22QkmRBVAasP4qNVkQ0CFCkg
qfT3z8yXKo/Du1eSCMkHW0N+GPIZTqiL1FNPGcfN0KO6edtC/JMFQ3AVNK/0iOnW
05Nq65wOEkLa5cCIIEKe
=gQGr
-----END PGP SIGNATURE-----

Edit the files under /etc/sysconfig/network and then run SuSEconfig afterwards (this is what YaST does too). Then of course you have to restart the network interface.