Score:0

Is a static IP address set in GUI reflected in a config file?

mm flag

I set a static IP address for my Ubuntu 18.04 machine using GUI and looked in several likely config files (referred to in Web tutorials) to see how the setting was reflected there and saw that it simply was not.

One example of such tutorials would be this.

Before I went looking further (on a potentially fruitless search), I wanted to ask:

When I set a static IP address using GUI, is that reflected in a config file somewhere?

If the answer is no, that would be highly disappointing. The "through GUI" and the "through CLI" settings would in this case be independent and competing. There would have to be a hierarchy among them, one overriding the other.

If the answer is yes, GUI and CLI would just be two methods at getting at the same (underlying) setting.

I hope the answer is yes and that I just haven't found the right config file yet.

If there is a way to find out the location of the relevant config file for one's particular system, please kindly include it in the answer. Thanks.

hr flag
18.04 uses NetworkManager, no? Try `/etc/NetworkManager/system-connections/name-of-your-connection`
Catomic avatar
mm flag
@steeldriver Thanks, I found 'Wired connection 1' and 'Wired connection 2' at that location, but they are both empty files (just like all the other configs mentioned in tutorials). I am using `sudo nano` and `sudo vi` to look at them. I am very new to Linux. But implicit in your comment is the statement that GUI setting should result in a text config?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.