Июн 122019
 

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=
 Posted by at 01:39

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)