How to prevent gnome Network Settings GUI from overriding my network settings?












1















I wish to simply set a Static IP in /etc/network/interfaces file. I'm used to doing this successfully on boxes without a GUI.



But now I am using "Ubuntu 18.04 Bionic Beaver" with GNOME and the Network Settings set in the GUI are overriding my /etc/network/interfaces file settings. How can I prevent this?










share|improve this question




















  • 1





    /etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

    – chili555
    Jan 21 at 14:50






  • 1





    @chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

    – heynnema
    Jan 21 at 18:46











  • Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

    – chili555
    Jan 22 at 0:04











  • In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

    – chili555
    Jan 22 at 0:05











  • @chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

    – heynnema
    Jan 22 at 0:22


















1















I wish to simply set a Static IP in /etc/network/interfaces file. I'm used to doing this successfully on boxes without a GUI.



But now I am using "Ubuntu 18.04 Bionic Beaver" with GNOME and the Network Settings set in the GUI are overriding my /etc/network/interfaces file settings. How can I prevent this?










share|improve this question




















  • 1





    /etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

    – chili555
    Jan 21 at 14:50






  • 1





    @chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

    – heynnema
    Jan 21 at 18:46











  • Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

    – chili555
    Jan 22 at 0:04











  • In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

    – chili555
    Jan 22 at 0:05











  • @chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

    – heynnema
    Jan 22 at 0:22
















1












1








1








I wish to simply set a Static IP in /etc/network/interfaces file. I'm used to doing this successfully on boxes without a GUI.



But now I am using "Ubuntu 18.04 Bionic Beaver" with GNOME and the Network Settings set in the GUI are overriding my /etc/network/interfaces file settings. How can I prevent this?










share|improve this question
















I wish to simply set a Static IP in /etc/network/interfaces file. I'm used to doing this successfully on boxes without a GUI.



But now I am using "Ubuntu 18.04 Bionic Beaver" with GNOME and the Network Settings set in the GUI are overriding my /etc/network/interfaces file settings. How can I prevent this?







networking 18.04 gnome network-manager settings






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 22 at 13:23









Codito ergo sum

1,5043825




1,5043825










asked Jan 21 at 11:43









JSStuballJSStuball

1234




1234








  • 1





    /etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

    – chili555
    Jan 21 at 14:50






  • 1





    @chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

    – heynnema
    Jan 21 at 18:46











  • Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

    – chili555
    Jan 22 at 0:04











  • In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

    – chili555
    Jan 22 at 0:05











  • @chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

    – heynnema
    Jan 22 at 0:22
















  • 1





    /etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

    – chili555
    Jan 21 at 14:50






  • 1





    @chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

    – heynnema
    Jan 21 at 18:46











  • Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

    – chili555
    Jan 22 at 0:04











  • In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

    – chili555
    Jan 22 at 0:05











  • @chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

    – heynnema
    Jan 22 at 0:22










1




1





/etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

– chili555
Jan 21 at 14:50





/etc/network/interfaces no longer controls networking in 18.04. It is managed by netplan. I suggest that you transfer your settings there. netplan.io/examples

– chili555
Jan 21 at 14:50




1




1





@chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

– heynnema
Jan 21 at 18:46





@chili555 not 100% accurate. The /etc/netplan/*.yaml file can be set to use NetworkManager, just like the good old days.

– heynnema
Jan 21 at 18:46













Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

– chili555
Jan 22 at 0:04





Perhaps I should expand my too brief comment above. In any Desktop installation, Network Manager is the preferred and generally quite effective method to manage networking. If one must, and few of us ever will, manage networking using manual methods, in Ubuntu 17.10 and later, /etc/network/interfaces will be ineffective and ignored as it has been replaced by netplan: netplan.io/examples

– chili555
Jan 22 at 0:04













In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

– chili555
Jan 22 at 0:05





In server installations, where Network Manager is not installed by default, netplan is required unless one wishes to install ifup/down, remove all netplan yaml files and then populate /etc/network/interfaces. It is a somewhat daunting task to revert to methods that will soon be obsolete. @heynnema

– chili555
Jan 22 at 0:05













@chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

– heynnema
Jan 22 at 0:22







@chili555 In desktop machines, the use of NetworkManager and its GUI interface is much easier for users, esp if they frequently use wireless with different SSIDs. Netplan can be set to default to NetworkManager... or set to use Netplan exclusively... but in cli mode only. In servers, netplan is the default. Server admins must learn the somewhat fussy .yaml scripting, and many times have difficulty getting them to work as expected.

– heynnema
Jan 22 at 0:22












1 Answer
1






active

oldest

votes


















2














The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by



sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service


Here is a link for more details






share|improve this answer


























  • Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

    – JSStuball
    Jan 21 at 14:00











  • Well if it helped, consider upvoting the answer :)

    – thephoenix01
    Jan 21 at 14:03











  • @thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

    – heynnema
    Jan 22 at 0:30













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111625%2fhow-to-prevent-gnome-network-settings-gui-from-overriding-my-network-settings%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by



sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service


Here is a link for more details






share|improve this answer


























  • Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

    – JSStuball
    Jan 21 at 14:00











  • Well if it helped, consider upvoting the answer :)

    – thephoenix01
    Jan 21 at 14:03











  • @thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

    – heynnema
    Jan 22 at 0:30


















2














The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by



sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service


Here is a link for more details






share|improve this answer


























  • Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

    – JSStuball
    Jan 21 at 14:00











  • Well if it helped, consider upvoting the answer :)

    – thephoenix01
    Jan 21 at 14:03











  • @thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

    – heynnema
    Jan 22 at 0:30
















2












2








2







The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by



sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service


Here is a link for more details






share|improve this answer















The best way would be to use the network-managerGUI you mentioned itself to set up a static IP. However if you still wish to do it via file /etc/network/interfaces, then you have to disable network manager by



sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service


Here is a link for more details







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 21 at 19:47









Pablo Bianchi

2,86521534




2,86521534










answered Jan 21 at 13:55









thephoenix01thephoenix01

498616




498616













  • Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

    – JSStuball
    Jan 21 at 14:00











  • Well if it helped, consider upvoting the answer :)

    – thephoenix01
    Jan 21 at 14:03











  • @thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

    – heynnema
    Jan 22 at 0:30





















  • Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

    – JSStuball
    Jan 21 at 14:00











  • Well if it helped, consider upvoting the answer :)

    – thephoenix01
    Jan 21 at 14:03











  • @thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

    – heynnema
    Jan 22 at 0:30



















Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

– JSStuball
Jan 21 at 14:00





Thanks. I only want to do it because I require scripts when interfaces come up, but it looks like this is possible with the NetworkManager anyway.

– JSStuball
Jan 21 at 14:00













Well if it helped, consider upvoting the answer :)

– thephoenix01
Jan 21 at 14:03





Well if it helped, consider upvoting the answer :)

– thephoenix01
Jan 21 at 14:03













@thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

– heynnema
Jan 22 at 0:30







@thephoenix01 if you stop/disable NetworkManager, the GUI becomes useless. NetworkManager shouldn't interfere with /etc/network/interfaces... they've coexisted since forever.

– heynnema
Jan 22 at 0:30




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111625%2fhow-to-prevent-gnome-network-settings-gui-from-overriding-my-network-settings%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?