📖
Isu's Wiki
  • Welcome to Isu's Wiki
  • Linux
    • SSH Automatic Login
    • Nginx HTTPS
    • Nginx Login Page
    • OpenVPN Server
    • PPTP Client Settings
    • LVM Allocation
    • Partition and Mount
    • Vagrant and VirtualBox
    • Bind9 SRV Record
    • Git Two Remote
    • ESXi Nvidia - 525.89.02
    • Install Qemu
    • Recover network (no netplan, iproute2)
  • Kubernetes
    • Kubernetes Reset
    • x509 Certificate Renewal
  • LaTeX
    • Code Snippet with Box in LaTeX
  • Go
    • [gRPC] Generate .pb.go from .proto
  • eBPF
    • [Kprobe] Get Argument Values
    • [Cilium] TroubleShooting
    • [Python] Install BCC
  • MicroStack
    • [Microstack] Add Image
    • [Microstack] Quota Manage
    • [Microstack] Security Group
    • [Microstack] Overcommit Resources
  • CentOS
    • Change Interface Name
    • Install Vagrant with vagrant-libvirt
  • OpenStack
    • [Nova] noVNC not working
    • [Basic] OpenStack Installation
    • [Magnum] TroubleShooting
Powered by GitBook
On this page
  • 1. Check networkctl
  • 2. Update systemd
  • 3. Restart networkd
  • 4. (Optional) recover netplan and iproute2
  1. Linux

Recover network (no netplan, iproute2)

Recover network of a machine where netplan and iproute2 package disappeared

1. Check networkctl

networkctl status ens18 # change ens18

2. Update systemd

sudo mkdir -p /etc/systemd/network
sudo nano /etc/systemd/network/20-wired.network

Modify the network config

[Match]
Name=ens18

[Network]
Address=10.130.0.162/24
Gateway=10.130.0.1
DNS=8.8.8.8
DNS=8.8.4.4
#DHCP=yes # for dhcp

3. Restart networkd

sudo systemctl restart systemd-networkd
networkctl status ens18

If network works, continue 4.

4. (Optional) recover netplan and iproute2

sudo apt-get install netplan.io -y
sudo apt-get install iproute2 -y

Apply netplan

sudo netplan apply
PreviousInstall QemuNextKubernetes Reset

Last updated 4 months ago