Make network changes permanent - C++
Posted
by
pparescasellas
on Stack Overflow
See other posts from Stack Overflow
or by pparescasellas
Published on 2012-10-10T08:45:48Z
Indexed on
2012/10/10
9:37 UTC
Read the original article
Hit count: 207
I need to allow an external client to change the IP of the Linux machine where the program is running (C++). I already know how to list all the local interfaces and the current IPs assigned to them. I also know how to programatically change said IPs.
What I need to know is how to make this change permanent so, if the machine reboots, it keeps the same network configuration. What's the best way to do this? Manually parsing /etc/network/interfaces? Calling some linux command?
Edit: I'm using Debian.
Thanks!
© Stack Overflow or respective owner