[opensuse] leap 15.1 how to stop/restart network service?
Hello: In openSUSE Leap 15.1 I configured network service using network manager (not wicked). It seems when I stop network service, the network is not disabled. See: When the network is on: # systemctl status network ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/NetworkManager.service.d └─NetworkManager-ovs.conf Active: active (running) since Tue 2019-08-27 01:05:10 CEST; 7min ago Docs: man:NetworkManager(8) Main PID: 2674 (NetworkManager) Tasks: 4 (limit: 4915) CGroup: /system.slice/NetworkManager.service ├─2674 /usr/sbin/NetworkManager --no-daemon └─2699 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/Netwo> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.2812] policy: set 'Wired connection 2' (eth1) a> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: nisdomainname: you must be root to change the domain name Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.4240] device (eth1): Activation: successful, de> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.4246] manager: startup complete Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.8252] dhcp6 (eth1): nameserver 'fe80::1' Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.8252] dhcp6 (eth1): state changed unknown -> bo> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: nisdomainname: you must be root to change the domain name Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.9718] dhcp6 (eth1): client pid 2705 exited with> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.9718] dhcp6 (eth1): state changed bound -> done Aug 27 01:05:11 linux-14wp NetworkManager[2674]: <info> [1566860711.5176] manager: NetworkManager state is now CONN> # ping opensuse.org PING opensuse.org(opensuse.org (2620:113:80c0:8::19)) 56 data bytes 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=1 ttl=54 time=52.1 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=2 ttl=54 time=52.2 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=3 ttl=54 time=51.9 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=4 ttl=54 time=51.6 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=5 ttl=54 time=51.9 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=6 ttl=54 time=51.8 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=7 ttl=54 time=51.7 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=8 ttl=54 time=52.2 ms ^C --- opensuse.org ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7011ms rtt min/avg/max/mdev = 51.699/51.987/52.256/0.254 ms Then I (suppose) disable the network: # systemctl stop network # systemctl status network ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/NetworkManager.service.d └─NetworkManager-ovs.conf Active: inactive (dead) since Tue 2019-08-27 01:15:17 CEST; 4s ago Docs: man:NetworkManager(8) Process: 2674 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=0/SUCCESS) Main PID: 2674 (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 4915) CGroup: /system.slice/NetworkManager.service └─2699 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/Netwo> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.8252] dhcp6 (eth1): state changed unknown -> bo> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: nisdomainname: you must be root to change the domain name Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.9718] dhcp6 (eth1): client pid 2705 exited with> Aug 27 01:05:10 linux-14wp NetworkManager[2674]: <info> [1566860710.9718] dhcp6 (eth1): state changed bound -> done Aug 27 01:05:11 linux-14wp NetworkManager[2674]: <info> [1566860711.5176] manager: NetworkManager state is now CONN> Aug 27 01:15:17 linux-14wp systemd[1]: Stopping Network Manager... Aug 27 01:15:17 linux-14wp NetworkManager[2674]: <info> [1566861317.6149] caught SIGTERM, shutting down normally. Aug 27 01:15:17 linux-14wp NetworkManager[2674]: <info> [1566861317.6156] manager: NetworkManager state is now CONN> Aug 27 01:15:17 linux-14wp NetworkManager[2674]: <info> [1566861317.6362] exiting (success) Aug 27 01:15:17 linux-14wp systemd[1]: Stopped Network Manager. nm-applet also indicates that the network is off (small red x in the applet icon). Still I can ping sites and can browse the internet: # ping opensuse.org PING opensuse.org(opensuse.org (2620:113:80c0:8::19)) 56 data bytes 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=1 ttl=54 time=52.2 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=2 ttl=54 time=52.3 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=3 ttl=54 time=52.3 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=4 ttl=54 time=52.0 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=5 ttl=54 time=51.9 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=6 ttl=54 time=52.1 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=7 ttl=54 time=51.7 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=8 ttl=54 time=52.4 ms ^C --- opensuse.org ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7009ms rtt min/avg/max/mdev = 51.754/52.161/52.463/0.361 ms What do I do wrong? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
27.08.2019 2:20, Istvan Gabor пишет:
Hello:
In openSUSE Leap 15.1 I configured network service using network manager (not wicked).
It seems when I stop network service, the network is not disabled. See:
When the network is on:
# systemctl status network ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/NetworkManager.service.d └─NetworkManager-ovs.conf Active: active (running) since Tue 2019-08-27 01:05:10 CEST; 7min ago Docs: man:NetworkManager(8) Main PID: 2674 (NetworkManager) Tasks: 4 (limit: 4915) CGroup: /system.slice/NetworkManager.service ├─2674 /usr/sbin/NetworkManager --no-daemon └─2699 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/Netwo>
...
# systemctl stop network
# systemctl status network ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/NetworkManager.service.d └─NetworkManager-ovs.conf Active: inactive (dead) since Tue 2019-08-27 01:15:17 CEST; 4s ago Docs: man:NetworkManager(8) Process: 2674 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=0/SUCCESS) Main PID: 2674 (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 4915) CGroup: /system.slice/NetworkManager.service └─2699 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/Netwo>
...
Still I can ping sites and can browse the internet:
# ping opensuse.org PING opensuse.org(opensuse.org (2620:113:80c0:8::19)) 56 data bytes 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=1 ttl=54 time=52.2 ms 64 bytes from opensuse.org (2620:113:80c0:8::19): icmp_seq=2 ttl=54 time=52.3 ms
...
What do I do wrong?
Probably nothing. I can partially reproduce it. In my case dhclient is stopped, but interface configuration and routes remain. I cannot find anything in documentation that describes it this way, but I believe I have seen somewhere statements that it is intended. You may have better luck asking on NetworkManager list. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
Istvan Gabor