Bring interface up even if link is down (no carrier) The Next CEO of Stack OverflowHow do I regain my Ubuntu Linux login capability as well as gain full Internet interconnectivity?Modem Manager set bearer and connect automaticallyConfigure ipaddress with systemd-networkd without linkIncrease wireless interface link speedNetworkManager-configured dnsmasq failing to forward requestsHow to configure networking and internet access with the intel x553 networking chip?interface stops retrieving pages when static ip is setHow exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 interacting?Netplan disable default route on interfaceConfiguring netplan on ubuntu 18 properly
Why don't programming languages automatically manage the synchronous/asynchronous problem?
Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?
Does destroying a Lich's phylactery destroy the soul within it?
Aggressive Under-Indexing and no data for missing index
Defamation due to breach of confidentiality
Won the lottery - how do I keep the money?
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
Is it convenient to ask the journal's editor for two additional days to complete a review?
Reshaping json / reparing json inside shell script (remove trailing comma)
What flight has the highest ratio of timezone difference to flight time?
Decide between Polyglossia and Babel for LuaLaTeX in 2019
Is there an equivalent of cd - for cp or mv
Computationally populating tables with probability data
IC has pull-down resistors on SMBus lines?
Players Circumventing the limitations of Wish
From jafe to El-Guest
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
In the "Harry Potter and the Order of the Phoenix" videogame, what potion is used to sabotage Umbridge's speakers?
Yu-Gi-Oh cards in Python 3
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
New carbon wheel brake pads after use on aluminum wheel?
What was Carter Burkes job for "the company" in "Aliens"?
Is a distribution that is normal, but highly skewed, considered Gaussian?
Would a completely good Muggle be able to use a wand?
Bring interface up even if link is down (no carrier)
The Next CEO of Stack OverflowHow do I regain my Ubuntu Linux login capability as well as gain full Internet interconnectivity?Modem Manager set bearer and connect automaticallyConfigure ipaddress with systemd-networkd without linkIncrease wireless interface link speedNetworkManager-configured dnsmasq failing to forward requestsHow to configure networking and internet access with the intel x553 networking chip?interface stops retrieving pages when static ip is setHow exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 interacting?Netplan disable default route on interfaceConfiguring netplan on ubuntu 18 properly
My system is a Dell PowerEdge T140, running Ubuntu 18.04.2.
I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the host.
Is there a way to have netplan bring a statically-configured interface up, even if the link for that interface is down at boot time, and keep it up if if the link is lost at any given time? I haven't been able to do it yet, neither with NetworkManager nor with networkd as the renderer.
During my testing, I tried to force the network up with ip link set eno1 up, but it didn't work. However, e.g. ifconfig eno1 192.168.1.1 netmask 0xffffff00 does work, and possibly I could use it as a workaround (by doing something like adding that command to rc.local and forcing the broken service to restart).
The workaround solution, however, is very ugly, and it uses a tool (ifconfig) which is no longer in the default installation, so I'd rather avoid it, and stick to being as close to standard configurations as possible.
ubuntu network-interface networkmanager netplan
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
My system is a Dell PowerEdge T140, running Ubuntu 18.04.2.
I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the host.
Is there a way to have netplan bring a statically-configured interface up, even if the link for that interface is down at boot time, and keep it up if if the link is lost at any given time? I haven't been able to do it yet, neither with NetworkManager nor with networkd as the renderer.
During my testing, I tried to force the network up with ip link set eno1 up, but it didn't work. However, e.g. ifconfig eno1 192.168.1.1 netmask 0xffffff00 does work, and possibly I could use it as a workaround (by doing something like adding that command to rc.local and forcing the broken service to restart).
The workaround solution, however, is very ugly, and it uses a tool (ifconfig) which is no longer in the default installation, so I'd rather avoid it, and stick to being as close to standard configurations as possible.
ubuntu network-interface networkmanager netplan
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I know that with Debian if you configure a static interface in/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.
– wurtel
2 days ago
1
Related,ifconfigreplacement isip addr.command -v ifconfigandcommand -v ipwill tell you which one is available. I miss the old days whenhostname,ifconfig,cronand friends worked...
– jww
2 days ago
actually oneifconfigcommand setting an address should be replaced with two commands:ip addr add ...+ip link set ... up, because the up is implicit inifconfigin such case.
– A.B
2 days ago
1
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago
add a comment |
My system is a Dell PowerEdge T140, running Ubuntu 18.04.2.
I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the host.
Is there a way to have netplan bring a statically-configured interface up, even if the link for that interface is down at boot time, and keep it up if if the link is lost at any given time? I haven't been able to do it yet, neither with NetworkManager nor with networkd as the renderer.
During my testing, I tried to force the network up with ip link set eno1 up, but it didn't work. However, e.g. ifconfig eno1 192.168.1.1 netmask 0xffffff00 does work, and possibly I could use it as a workaround (by doing something like adding that command to rc.local and forcing the broken service to restart).
The workaround solution, however, is very ugly, and it uses a tool (ifconfig) which is no longer in the default installation, so I'd rather avoid it, and stick to being as close to standard configurations as possible.
ubuntu network-interface networkmanager netplan
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
My system is a Dell PowerEdge T140, running Ubuntu 18.04.2.
I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the host.
Is there a way to have netplan bring a statically-configured interface up, even if the link for that interface is down at boot time, and keep it up if if the link is lost at any given time? I haven't been able to do it yet, neither with NetworkManager nor with networkd as the renderer.
During my testing, I tried to force the network up with ip link set eno1 up, but it didn't work. However, e.g. ifconfig eno1 192.168.1.1 netmask 0xffffff00 does work, and possibly I could use it as a workaround (by doing something like adding that command to rc.local and forcing the broken service to restart).
The workaround solution, however, is very ugly, and it uses a tool (ifconfig) which is no longer in the default installation, so I'd rather avoid it, and stick to being as close to standard configurations as possible.
ubuntu network-interface networkmanager netplan
ubuntu network-interface networkmanager netplan
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
Paulo1205
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago
Paulo1205Paulo1205
1114
1114
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Paulo1205 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I know that with Debian if you configure a static interface in/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.
– wurtel
2 days ago
1
Related,ifconfigreplacement isip addr.command -v ifconfigandcommand -v ipwill tell you which one is available. I miss the old days whenhostname,ifconfig,cronand friends worked...
– jww
2 days ago
actually oneifconfigcommand setting an address should be replaced with two commands:ip addr add ...+ip link set ... up, because the up is implicit inifconfigin such case.
– A.B
2 days ago
1
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago
add a comment |
I know that with Debian if you configure a static interface in/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.
– wurtel
2 days ago
1
Related,ifconfigreplacement isip addr.command -v ifconfigandcommand -v ipwill tell you which one is available. I miss the old days whenhostname,ifconfig,cronand friends worked...
– jww
2 days ago
actually oneifconfigcommand setting an address should be replaced with two commands:ip addr add ...+ip link set ... up, because the up is implicit inifconfigin such case.
– A.B
2 days ago
1
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago
I know that with Debian if you configure a static interface in
/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.– wurtel
2 days ago
I know that with Debian if you configure a static interface in
/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.– wurtel
2 days ago
1
1
Related,
ifconfig replacement is ip addr. command -v ifconfig and command -v ip will tell you which one is available. I miss the old days when hostname, ifconfig, cron and friends worked...– jww
2 days ago
Related,
ifconfig replacement is ip addr. command -v ifconfig and command -v ip will tell you which one is available. I miss the old days when hostname, ifconfig, cron and friends worked...– jww
2 days ago
actually one
ifconfig command setting an address should be replaced with two commands: ip addr add ... + ip link set ... up, because the up is implicit in ifconfig in such case.– A.B
2 days ago
actually one
ifconfig command setting an address should be replaced with two commands: ip addr add ... + ip link set ... up, because the up is implicit in ifconfig in such case.– A.B
2 days ago
1
1
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago
add a comment |
0
active
oldest
votes
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
Paulo1205 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509446%2fbring-interface-up-even-if-link-is-down-no-carrier%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
Paulo1205 is a new contributor. Be nice, and check out our Code of Conduct.
Paulo1205 is a new contributor. Be nice, and check out our Code of Conduct.
Paulo1205 is a new contributor. Be nice, and check out our Code of Conduct.
Paulo1205 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509446%2fbring-interface-up-even-if-link-is-down-no-carrier%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

I know that with Debian if you configure a static interface in
/etc/network/interfaces, NetworkManager won't touch that interface, and you can then configure the IP address on that interface irrespective of the link being up or not. However perhaps Ubuntu is different.– wurtel
2 days ago
1
Related,
ifconfigreplacement isip addr.command -v ifconfigandcommand -v ipwill tell you which one is available. I miss the old days whenhostname,ifconfig,cronand friends worked...– jww
2 days ago
actually one
ifconfigcommand setting an address should be replaced with two commands:ip addr add ...+ip link set ... up, because the up is implicit inifconfigin such case.– A.B
2 days ago
1
possible explanation there: Why is Netplan/Networkd not bringing up a static ethernet interface?
– A.B
2 days ago
@A.B, yes... I think it is the right explanation. Thank you for the find (I did a lot of search before asking my question, but maybe not with the correct terms)! I'll try it as soon as I return home.
– Paulo1205
2 days ago