After mistake in /etc/network/interfaces file configuration, and reboot all 4 interfaces on my server went to...












0















So, I decided to change my server's network configuration, by editing /etc/network/interfaces file.
I had IPv6 address, and I was changing it to IPv4 address.
Before changes it looked like that:



eno1 auto
iface eno1 inet6 static
address fc00::111:111:111:111
netmask 112

eno2 auto
iface eno2 inet6 static
address fc00::222:222:222:222
netmask 112


While editing the file, I mistakenly put new interface configuration like this:



eno1 auto
iface eno1 inet4 static
address 192.168.0.2
netmask 24


I saved a configuration, and continue my work.
Later, there was a strong need in the reboot, so I rebooted my server and eventually I lost connection to it (I was using SSH). Interface eno1 was not pingable.
So I went directly to the server (another part of the building), connect a monitor to it, and "ifconfig" (or ip a) showed me that all 4 interfaces were in DOWN state.
My question is - is it OK?
Should iface just skip mistakes in interfaces configuration, and not put other interfaces to DOWN state? As for me, only eno1 interface should be in DOWN state, and other should work, as long as their configuration did not changed.
I'm using Ubuntu 18.04 with all updates installed.



EDITED:
cat /etc/netplan/*.yaml does not return anything as long as directory is empty. It was run on server.



EDITED2:
So I eventually facing the same issue on VM, that I setup for test.
cat /etc/netplan/*.yaml returns:



network:
version:2
renderer:NetworkManager









share|improve this question

























  • Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

    – Gravemind
    Feb 2 at 19:47






  • 1





    Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

    – chili555
    Feb 2 at 21:30











  • Not sure how it could be a bug if you made a mistake in the configuration.

    – Organic Marble
    Feb 2 at 22:56











  • It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

    – Gravemind
    Feb 3 at 6:50
















0















So, I decided to change my server's network configuration, by editing /etc/network/interfaces file.
I had IPv6 address, and I was changing it to IPv4 address.
Before changes it looked like that:



eno1 auto
iface eno1 inet6 static
address fc00::111:111:111:111
netmask 112

eno2 auto
iface eno2 inet6 static
address fc00::222:222:222:222
netmask 112


While editing the file, I mistakenly put new interface configuration like this:



eno1 auto
iface eno1 inet4 static
address 192.168.0.2
netmask 24


I saved a configuration, and continue my work.
Later, there was a strong need in the reboot, so I rebooted my server and eventually I lost connection to it (I was using SSH). Interface eno1 was not pingable.
So I went directly to the server (another part of the building), connect a monitor to it, and "ifconfig" (or ip a) showed me that all 4 interfaces were in DOWN state.
My question is - is it OK?
Should iface just skip mistakes in interfaces configuration, and not put other interfaces to DOWN state? As for me, only eno1 interface should be in DOWN state, and other should work, as long as their configuration did not changed.
I'm using Ubuntu 18.04 with all updates installed.



EDITED:
cat /etc/netplan/*.yaml does not return anything as long as directory is empty. It was run on server.



EDITED2:
So I eventually facing the same issue on VM, that I setup for test.
cat /etc/netplan/*.yaml returns:



network:
version:2
renderer:NetworkManager









share|improve this question

























  • Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

    – Gravemind
    Feb 2 at 19:47






  • 1





    Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

    – chili555
    Feb 2 at 21:30











  • Not sure how it could be a bug if you made a mistake in the configuration.

    – Organic Marble
    Feb 2 at 22:56











  • It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

    – Gravemind
    Feb 3 at 6:50














0












0








0








So, I decided to change my server's network configuration, by editing /etc/network/interfaces file.
I had IPv6 address, and I was changing it to IPv4 address.
Before changes it looked like that:



eno1 auto
iface eno1 inet6 static
address fc00::111:111:111:111
netmask 112

eno2 auto
iface eno2 inet6 static
address fc00::222:222:222:222
netmask 112


While editing the file, I mistakenly put new interface configuration like this:



eno1 auto
iface eno1 inet4 static
address 192.168.0.2
netmask 24


I saved a configuration, and continue my work.
Later, there was a strong need in the reboot, so I rebooted my server and eventually I lost connection to it (I was using SSH). Interface eno1 was not pingable.
So I went directly to the server (another part of the building), connect a monitor to it, and "ifconfig" (or ip a) showed me that all 4 interfaces were in DOWN state.
My question is - is it OK?
Should iface just skip mistakes in interfaces configuration, and not put other interfaces to DOWN state? As for me, only eno1 interface should be in DOWN state, and other should work, as long as their configuration did not changed.
I'm using Ubuntu 18.04 with all updates installed.



EDITED:
cat /etc/netplan/*.yaml does not return anything as long as directory is empty. It was run on server.



EDITED2:
So I eventually facing the same issue on VM, that I setup for test.
cat /etc/netplan/*.yaml returns:



network:
version:2
renderer:NetworkManager









share|improve this question
















So, I decided to change my server's network configuration, by editing /etc/network/interfaces file.
I had IPv6 address, and I was changing it to IPv4 address.
Before changes it looked like that:



eno1 auto
iface eno1 inet6 static
address fc00::111:111:111:111
netmask 112

eno2 auto
iface eno2 inet6 static
address fc00::222:222:222:222
netmask 112


While editing the file, I mistakenly put new interface configuration like this:



eno1 auto
iface eno1 inet4 static
address 192.168.0.2
netmask 24


I saved a configuration, and continue my work.
Later, there was a strong need in the reboot, so I rebooted my server and eventually I lost connection to it (I was using SSH). Interface eno1 was not pingable.
So I went directly to the server (another part of the building), connect a monitor to it, and "ifconfig" (or ip a) showed me that all 4 interfaces were in DOWN state.
My question is - is it OK?
Should iface just skip mistakes in interfaces configuration, and not put other interfaces to DOWN state? As for me, only eno1 interface should be in DOWN state, and other should work, as long as their configuration did not changed.
I'm using Ubuntu 18.04 with all updates installed.



EDITED:
cat /etc/netplan/*.yaml does not return anything as long as directory is empty. It was run on server.



EDITED2:
So I eventually facing the same issue on VM, that I setup for test.
cat /etc/netplan/*.yaml returns:



network:
version:2
renderer:NetworkManager






networking 18.04 network-manager






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 at 22:12







Gravemind

















asked Feb 2 at 19:19









GravemindGravemind

858




858













  • Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

    – Gravemind
    Feb 2 at 19:47






  • 1





    Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

    – chili555
    Feb 2 at 21:30











  • Not sure how it could be a bug if you made a mistake in the configuration.

    – Organic Marble
    Feb 2 at 22:56











  • It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

    – Gravemind
    Feb 3 at 6:50



















  • Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

    – Gravemind
    Feb 2 at 19:47






  • 1





    Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

    – chili555
    Feb 2 at 21:30











  • Not sure how it could be a bug if you made a mistake in the configuration.

    – Organic Marble
    Feb 2 at 22:56











  • It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

    – Gravemind
    Feb 3 at 6:50

















Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

– Gravemind
Feb 2 at 19:47





Right now I'm installing VM with Ubuntu, to check if I can reproduce the issue and collect logs.

– Gravemind
Feb 2 at 19:47




1




1





Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

– chili555
Feb 2 at 21:30





Please edit your question to show the result of: cat /etc/netplan/*.yaml Welcome to Ask Ubuntu.

– chili555
Feb 2 at 21:30













Not sure how it could be a bug if you made a mistake in the configuration.

– Organic Marble
Feb 2 at 22:56





Not sure how it could be a bug if you made a mistake in the configuration.

– Organic Marble
Feb 2 at 22:56













It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

– Gravemind
Feb 3 at 6:50





It is definitely not expected, that you will lose all of your network interfaces, even if only one has a mistake in configuration.

– Gravemind
Feb 3 at 6:50










0






active

oldest

votes












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%2f1115071%2fafter-mistake-in-etc-network-interfaces-file-configuration-and-reboot-all-4-in%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f1115071%2fafter-mistake-in-etc-network-interfaces-file-configuration-and-reboot-all-4-in%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

How to change which sound is reproduced for terminal bell?

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

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents