Bartels
(usa Ubuntu)
Enviado em 24/08/2021 - 16:00h
nada..
root@srv03:/home/server# vim /etc/netplan/*yaml
root@srv03:/home/server# cat /etc/netplan/*.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s3:
dhcp4: true
version: 2
#network:
# version: 2
# rederer: networkd
# ethernets:
# enp0s3:
# dhcp4: no
# bridges:
# br0:
# dhcp4: yes
# interface:
# -enp0s3
root@srv03:/home/server# netplan apply
Command 'netplan' not found, but can be installed with:
apt install netplan.io
apt install netplan
root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:5c:4d:58 brd ff:ff:ff:ff:ff:ff
root@srv03:/home/server# apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@srv03:/home/server# apt update
Err:1
http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2
http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:3
http://br.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:4
http://br.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:5
http://br.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:6
http://br.archive.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch
http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@srv03:/home/server#
depois do boot
root@srv03:/home/server# netplan apply
Command 'netplan' not found, but can be installed with:
apt install netplan.io
apt install netplan
root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:5c:4d:58 brd ff:ff:ff:ff:ff:ff
root@srv03:/home/server# apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@srv03:/home/server# apt update
Err:1
http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2
http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:3
http://br.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:4
http://br.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:5
http://br.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:6
http://br.archive.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch
http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch
http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@srv03:/home/server#
root@srv03:/home/server# cd /etc/netplan/
root@srv03:/etc/netplan# ls
50-cloud-init.yaml
root@srv03:/etc/netplan#