Interfaces de red antiguo

Creación de red en init.d

Fichero configuración

archivo /etc/network/interfaces

Configuración

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
allow-hotplug enp0s3
ifaces enp0s3 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
iface enp0s3 inet6 static
address fd4e:a32c:3873:9e59:0004::254
netmask 80
gateway fd4e:a32c:3873:9e59:0004::1
Segunda Ip
auto eth1:0
iface eth1:0 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8

Creación de red en systemd Ex: CentOS

Ficheros

/etc/sysconfig/network-scripts/ifcfg-eno1

Configuración

HWADDR=00:0C:29:5B:08:A2
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
USERCTL=no
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno1
UUID=8c6eefa2-0d7b-4559-9870-2953290dc988
ONBOOT=yes
               IPADDR=192.168.1.70
               NETMASK=255.255.255.0
               GATEWAY=192.168.1.1
               DNS1=192.168.1.1
               DNS2=8.8.8.8
               DOMAIN=rheltest.lan

Revision #1
Created 29 November 2023 00:48:00 by adminROM
Updated 29 November 2023 00:48:09 by adminROM