Ouvrir :
/etc/netplan/01-netcfg.yaml
Ajouter :
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses: [192.168.1.10/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1,8.8.8.8]
util01@station01:~$ sudo netplan apply
@ip du bridge : 192.168.1.3
util01@station01:~$ ssh util05@192.168.1.3
util05@192.168.1.3's password:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-43-generic x86_64)
...
Last login: Sun Jan 27 13:21:25 2019 from 192.168.1.20
~