====== Настройка сети в Linux ======

===== Deb base =====
**///etc/network/interfaces//**
<code bash>source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address IP/MASK
        gateway GW
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers DNS1 DNS2
        # dns-search sale-dedic.eu
</code>

===== RPM base =====
**///etc/sysconfig/network-scripts/ifcfg-name//**
<code bash>
DEVICE=ens32
BOOTPROTO=static
IPADDR=IP
NETMASK=MASK
GATEWAY=GW
DNS1=DNS1
DNS2=DNS2
ONBOOT=yes
</code>
