Чер 122019
Debian
vi /etc/network/interfaces
iface eth0 inet static address ip_addr netmask 255.255.255.255 gateway gw_ip_addr pointopoint gw_ip_addr
CentOS
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=mac_address ONBOOT=yes BOOTPROTO=static SCOPE="peer gw_ip_addr" IPADDR=ip_addr
/etc/sysconfig/network-scripts/route-eth0
ADDRESS0=0.0.0.0 NETMASK0=0.0.0.0 GATEWAY0=