Linux/IPv4

From Wiki
< Linux
Revision as of 13:24, 4 December 2018 by Marcluer (talk | contribs)

/etc/network/interfaces

  • dhcp
iface eth0 inet dhcp
  • static
iface eth0 inet static
    address 192.168.0.97   
    netmask 255.255.255.0  
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1 10.10.0.2

netplan (Ubuntu 18.04+)