systemd networkd is restarted after systemctl stop Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern) Come Celebrate our 10 Year Anniversary!systemd: stop all uninstalled unitssystemd-networkd and direct routesDo systemd unit files have to be reloaded when modified?Systemd Networkd [Match] Rule Multiple MatchesSystemd Networkd MAC Address generation for VLAN Interfacessystemd - automatically start/restart specific systemd service after another service is started/restartedIn systemd, what's the difference between After= and Requires=?systemd-networkd equivilent of “ip rule add…”Is there a way to automatically add network interfaces to systemd-networkd and/or netplan?systemd script segfaulting when using systemctl
Has a Nobel Peace laureate ever been accused of war crimes?
What's called a person who works as someone who puts products on shelves in stores?
What is /etc/mtab in Linux?
Where to find documentation for `whois` command options?
Married in secret, can marital status in passport be changed at a later date?
How do I deal with an erroneously large refund?
Arriving in Atlanta (after US Preclearance in Dublin). Will I go through TSA security in Atlanta to transfer to a connecting flight?
SQL Server placement of master database files vs resource database files
What do you call an IPA symbol that lacks a name (e.g. ɲ)?
Is it OK if I do not take the receipt in Germany?
How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?
Why would the Overseers waste their stock of slaves on the Game?
Why doesn't the university give past final exams' answers?
/bin/ls sorts differently than just ls
Co-worker works way more than he should
What is the numbering system used for the DSN dishes?
Will temporary Dex penalties prevent you from getting the benefits of the "Two Weapon Fighting" feat if your Dex score falls below the prerequisite?
How to keep bees out of canned beverages?
When speaking, how do you change your mind mid-sentence?
Coin Game with infinite paradox
Marquee sign letters
Are these square matrices always diagonalisable?
Why is water being consumed when my shutoff valve is closed?
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
systemd networkd is restarted after systemctl stop
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
Come Celebrate our 10 Year Anniversary!systemd: stop all uninstalled unitssystemd-networkd and direct routesDo systemd unit files have to be reloaded when modified?Systemd Networkd [Match] Rule Multiple MatchesSystemd Networkd MAC Address generation for VLAN Interfacessystemd - automatically start/restart specific systemd service after another service is started/restartedIn systemd, what's the difference between After= and Requires=?systemd-networkd equivilent of “ip rule add…”Is there a way to automatically add network interfaces to systemd-networkd and/or netplan?systemd script segfaulting when using systemctl
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't change the bond configuration.
What I want to do next is stop networkd, delete the bond and then start networkd again. The problem is that networkd is started as soon as I delete the bond. This is also reproducible via systemctl - /lib/systemd/systemd-networkd is started after the interface is deleted.
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 76864 2376 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
systemd+ 30 0.0 0.0 71968 1296 ? Ss 05:54 0:00 /lib/systemd/systemd-networkd
root 33 0.3 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 43 0.0 0.0 34400 2848 pts/0 R+ 05:55 0:00 ps aux
root@63cece1df328:/# systemctl stop systemd-networkd
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4408 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 47 0.0 0.0 34400 2868 pts/0 R+ 05:56 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
5: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff
root@63cece1df328:/# ip link del mgmt
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4912 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
systemd+ 50 1.0 0.0 71968 5964 ? Ss 05:57 0:00 /lib/systemd/systemd-networkd
root 51 0.0 0.0 34400 2924 pts/0 R+ 05:57 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
13: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1514 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff```
systemd systemd-networkd
New contributor
add a comment |
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't change the bond configuration.
What I want to do next is stop networkd, delete the bond and then start networkd again. The problem is that networkd is started as soon as I delete the bond. This is also reproducible via systemctl - /lib/systemd/systemd-networkd is started after the interface is deleted.
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 76864 2376 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
systemd+ 30 0.0 0.0 71968 1296 ? Ss 05:54 0:00 /lib/systemd/systemd-networkd
root 33 0.3 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 43 0.0 0.0 34400 2848 pts/0 R+ 05:55 0:00 ps aux
root@63cece1df328:/# systemctl stop systemd-networkd
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4408 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 47 0.0 0.0 34400 2868 pts/0 R+ 05:56 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
5: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff
root@63cece1df328:/# ip link del mgmt
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4912 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
systemd+ 50 1.0 0.0 71968 5964 ? Ss 05:57 0:00 /lib/systemd/systemd-networkd
root 51 0.0 0.0 34400 2924 pts/0 R+ 05:57 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
13: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1514 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff```
systemd systemd-networkd
New contributor
add a comment |
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't change the bond configuration.
What I want to do next is stop networkd, delete the bond and then start networkd again. The problem is that networkd is started as soon as I delete the bond. This is also reproducible via systemctl - /lib/systemd/systemd-networkd is started after the interface is deleted.
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 76864 2376 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
systemd+ 30 0.0 0.0 71968 1296 ? Ss 05:54 0:00 /lib/systemd/systemd-networkd
root 33 0.3 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 43 0.0 0.0 34400 2848 pts/0 R+ 05:55 0:00 ps aux
root@63cece1df328:/# systemctl stop systemd-networkd
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4408 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 47 0.0 0.0 34400 2868 pts/0 R+ 05:56 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
5: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff
root@63cece1df328:/# ip link del mgmt
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4912 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
systemd+ 50 1.0 0.0 71968 5964 ? Ss 05:57 0:00 /lib/systemd/systemd-networkd
root 51 0.0 0.0 34400 2924 pts/0 R+ 05:57 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
13: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1514 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff```
systemd systemd-networkd
New contributor
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't change the bond configuration.
What I want to do next is stop networkd, delete the bond and then start networkd again. The problem is that networkd is started as soon as I delete the bond. This is also reproducible via systemctl - /lib/systemd/systemd-networkd is started after the interface is deleted.
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 76864 2376 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
systemd+ 30 0.0 0.0 71968 1296 ? Ss 05:54 0:00 /lib/systemd/systemd-networkd
root 33 0.3 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 43 0.0 0.0 34400 2848 pts/0 R+ 05:55 0:00 ps aux
root@63cece1df328:/# systemctl stop systemd-networkd
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4408 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
root 47 0.0 0.0 34400 2868 pts/0 R+ 05:56 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
5: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff
root@63cece1df328:/# ip link del mgmt
root@63cece1df328:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 76864 4912 ? Ss 05:54 0:00 /lib/systemd/systemd
root 21 0.0 0.0 70120 6452 ? S<s 05:54 0:00 /lib/systemd/systemd-journald
root 22 0.0 0.0 24824 368 ? Ss 05:54 0:00 /usr/bin/socat TCP-LISTEN:7272,reuseadd
message+ 29 0.0 0.0 49928 508 ? Ss 05:54 0:00 /usr/bin/dbus-daemon --system --address
root 33 0.0 0.0 18508 3424 pts/0 Ss 05:55 0:00 bash
systemd+ 50 1.0 0.0 71968 5964 ? Ss 05:57 0:00 /lib/systemd/systemd-networkd
root 51 0.0 0.0 34400 2924 pts/0 R+ 05:57 0:00 ps aux
root@63cece1df328:/# ip link show mgmt
13: mgmt: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1514 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether fe:df:a1:cf:82:39 brd ff:ff:ff:ff:ff:ff```
systemd systemd-networkd
systemd systemd-networkd
New contributor
New contributor
New contributor
asked Apr 17 at 9:57
barisdadbarisdad
1062
1062
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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
);
);
barisdad 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%2fserverfault.com%2fquestions%2f963445%2fsystemd-networkd-is-restarted-after-systemctl-stop%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
barisdad is a new contributor. Be nice, and check out our Code of Conduct.
barisdad is a new contributor. Be nice, and check out our Code of Conduct.
barisdad is a new contributor. Be nice, and check out our Code of Conduct.
barisdad is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f963445%2fsystemd-networkd-is-restarted-after-systemctl-stop%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