/etc/default/grub

GRUB_CMDLINE_LINUX=" netcfg/do_not_use_netplan=true "


#apt install ifupdown net-tools resolvconf

/etc/network/interfaces

auto lo
iface lo inet loopback

auto enp5s0
allow-hotplug enp5s0
iface enp5s0 inet dhcp

hwaddress ether xx:xx:xx:xx:xx:xx #если нужно поменять MAC адрес

auto enp6s0
allow-hotplug enp6s0
iface enp6s0 inet static
address 192.168.10.1/24
netmask 255.255.255.0
gateway 192.168.10.1

/etc/resolv.conf

nameserver 8.8.8.8

Отключаем нежелательные службы

#systemctl stop systemd-networkd.socket systemd-networkd systemd-networkd-dispatcher systemd-networkd-wait-online systemd-resolved
#systemctl disable systemd-networkd.socket systemd-networkd systemd-networkd-dispatcher systemd-networkd-wait-online systemd-resolved
#systemctl mask systemd-networkd.socket systemd-networkd systemd-networkd-dispatcher systemd-networkd-wait-online systemd-resolved

Удаляем netplan

#apt-get --assume-yes purge netplan netplan.io

#update-grub

#rm -rf /etc/netplan/

#reboot

Как то так.

Добавить комментарий