1. chroot
-
Enter the following commands at a Command Line.
systemd-nspawn -D $target cat /etc/debian_version ping 8.8.8.8 ping www.google.com ls -al /etc/resolv.conf cat /etc/resolv.conf logout systemd-nspawn --boot -D $target # Log in as user "smru" with password "live". ping 8.8.8.8 ping www.google.com ls -al /etc/resolv.conf cat /etc/resolv.conf systemctl --type=service systemctl --all --type=service ### sudo systemctl restart systemd-networkd sudo cp -a /etc/systemd/resolved.conf /etc/systemd/resolved.conf.org echo "DNS=10.10.1.1" | sudo tee -a /etc/systemd/resolved.conf diff /etc/systemd/resolved.conf.org /etc/systemd/resolved.conf sudo systemctl restart systemd-resolved ls -al /etc/resolv.conf cat /etc/resolv.conf ping 8.8.8.8 ping www.google.com sudo poweroff ### logout ### # Type "Ctrl+]]]" to exit container.
2. Information
-
Enter the following commands at a Command Line.
# Show a list of currently running services. systemctl --type=service systemctl cat wpa_supplicant@wlan0.service cat /etc/systemd/network/20-wired.network cat /etc/systemd/network/25-wireless.network cat /etc/systemd/resolved.conf
3. Restart
-
Enter the following commands at a Command Line.
sudo systemctl daemon-reload sudo systemctl restart systemd-networkd sudo systemctl restart systemd-resolved