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









New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 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
    10 hours ago






  • 1





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

    – heynnema
    7 hours ago











  • 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
    1 hour ago











  • 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
    1 hour ago











  • @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
    1 hour ago


















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









New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 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
    10 hours ago






  • 1





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

    – heynnema
    7 hours ago











  • 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
    1 hour ago











  • 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
    1 hour ago











  • @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
    1 hour ago
















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









New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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









New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago









thephoenix01

398314




398314






New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









JSStuballJSStuball

1062




1062




New contributor




JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






JSStuball is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 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
    10 hours ago






  • 1





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

    – heynnema
    7 hours ago











  • 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
    1 hour ago











  • 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
    1 hour ago











  • @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
    1 hour ago
















  • 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
    10 hours ago






  • 1





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

    – heynnema
    7 hours ago











  • 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
    1 hour ago











  • 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
    1 hour ago











  • @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
    1 hour ago










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
10 hours ago





/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
10 hours ago




1




1





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

– heynnema
7 hours ago





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

– heynnema
7 hours ago













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
1 hour ago





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
1 hour ago













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
1 hour ago





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
1 hour ago













@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
1 hour ago







@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
1 hour ago












1 Answer
1






active

oldest

votes


















1














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
    11 hours ago











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

    – thephoenix01
    11 hours ago











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

    – heynnema
    1 hour ago













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
});


}
});






JSStuball is a new contributor. Be nice, and check out our Code of Conduct.










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









1














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
    11 hours ago











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

    – thephoenix01
    11 hours ago











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

    – heynnema
    1 hour ago


















1














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
    11 hours ago











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

    – thephoenix01
    11 hours ago











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

    – heynnema
    1 hour ago
















1












1








1







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 6 hours ago









Pablo Bianchi

2,4551530




2,4551530










answered 11 hours ago









thephoenix01thephoenix01

398314




398314













  • 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
    11 hours ago











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

    – thephoenix01
    11 hours ago











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

    – heynnema
    1 hour ago





















  • 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
    11 hours ago











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

    – thephoenix01
    11 hours ago











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

    – heynnema
    1 hour ago



















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
11 hours ago





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
11 hours ago













Well if it helped, consider upvoting the answer :)

– thephoenix01
11 hours ago





Well if it helped, consider upvoting the answer :)

– thephoenix01
11 hours ago













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

– heynnema
1 hour ago







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

– heynnema
1 hour ago












JSStuball is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















JSStuball is a new contributor. Be nice, and check out our Code of Conduct.













JSStuball is a new contributor. Be nice, and check out our Code of Conduct.












JSStuball is a new contributor. Be nice, and check out our Code of Conduct.
















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

香粉寮

GameSpot