Daniel Spannbauer wrote:
Am 2/3/20 um 4:23 PM schrieb Per Jessen:
Daniel Spannbauer wrote:
Am 2/3/20 um 1:22 PM schrieb Per Jessen:
Daniel Spannbauer wrote:
Hello,
ist it possible to configure an additional ip adress via the yast2 command line interface? Dunno about yast2, but how about "ip addr add x.x.x.x/n dev ethX" Yes, I know it. But it has gone with the next reboot.
The to configure it via yast so it is written in the standard config would be a nice way.
you start up yast, go into network config, edit the interface and add the address(es) you want.
It all goes into /etc/sysconfig/network/ifcfg-ethX.
I want to change the settings out of a python script.
Aha.
A nice way was to call yast via the command line interface (yast help or .e.g yast lan help)
I don't wan't to write the config out via my python script.
TMK, there is no API today that would permit editing /etc/sysconfig/network/ifcfg-ethX. I edit it with vi, sometimes with sed in installation scripts. -- Per Jessen, Zürich (17.7°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org