Configurazione rete ubuntu 18.04
Da Wiki-itsos.
obiettico: configurare l'interfaccia di rete di un sistema ubuntu 18.04 Server
punto di partenza: macchina virtuale con ubuntu 18.04 server installato. macchina host: windows 10 reale
passi da svolgere:
La configurazione manuale è possibile editando il file /etc/netplan/xxx.yaml
Esempio DHCP di conf xxx.yaml: network:
ethernets: enp0s3: addresses: [] dhcp4: true version: 2
Esempio STATIC conf xxx.yaml: network:
ethernets: enp0s3: addresses: [192.168.1.224/24] gateway4: 192.168.1.1 nameservers: addresses: [8.8.8.8,8.8.4.4] dhcp4: no version: 2
Ecco il riassunto di alcuni comandi per configurare l'interfaccia di rete
Ubuntu 16 | Ubuntu 18 | |
---|---|---|
ifconfig | ip address | |
check dns server | systemd-resolve --status | |
/etc/init.d/networking restart | netplan apply | |
noute -n | ip route |