CentOS/RHEL

Static IP Address

You will find your network configuration files inside /etc/sysconfig/network-scripts/ifcfg-*

Example for static IP address configuration:

/etc/sysonfig/network-scripts/ifcfg-enp3s0
DEVICE=enp3s0
ONBOOT=yes
IPADDR=82.103.128.15
NETMASK=255.255.255.192
GATEWAY=82.103.128.1

Bonding

Bonding can be configured to achieve Link Aggregation, where multiple network interfaces work as one to provide load balancing and redundancy.

Bonding configuration example:

/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR=82.103.128.15
PREFIX=26
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=4 miimon=100"

mode=4 enables 802.3ad Link Aggregation. For this to work, Link Aggregation has to be configured on the connecting ports on the switch.

Bonding configuration example for physical NICs enp2s0f0 and enp2s0f1:

/etc/sysconfig/network-scripts/ifcfg-enp2s0f0
DEVICE=enp2s0f0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
SLAVE=yes
MASTER=bond0
/etc/sysconfig/network-scripts/ifcfg-enp2s0f1
DEVICE=enp2s0f1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
SLAVE=yes
MASTER=bond0

VLAN Interface

VLAN interface configuration example /etc/sysconfig/network-scripts/ifcfg-vlan-enp3s0.10

VLAN=yes
TYPE=Vlan
NAME=vlan-enp3s0.10
DEVICE=enp3s0.10
PHYSDEV=enp3s0
VLAN_ID=10
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.255.0.1
PREFIX=31