вторник, 4 февраля 2020 г.

Удаление netplan ubuntu 18.04

# mcedit /etc/default/grub
GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true"

# update-grub
# apt update && apt install net-tools ifupdown -y

# mcedit /etc/network/interfaces

# для примера

auto lo
iface lo inet loopback

auto ens3
iface ens3 inet dhcp

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 192.168.0.254 8.8.8.8


# rm -rf /etc/netplan/*.yaml
# reboot

Включение rc.local ubuntu 18.04

# mcedit /etc/systemd/system/rc-local.service

[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target

# mcedit /etc/rc.local

#!/bin/sh -e

exit 0

# chmod +x /etc/rc.local
# systemctl enable rc-local
# systemctl start rc-local.service

не стартует dnsmasq ubuntu 18.04

Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

# systemctl disable systemd-resolved
# rm /etc/resolv.conf
# mcedit /etc/resolv.conf

nameserver 8.8.8.8

Отключение ipv6 ubuntu 18.04

# mcedit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

# update-grub