sobota 8. januára 2022

creating bonding via dhcp

 CREATING BONDING


1) we need module: 


lsmod | grep -i bonding


modprobe bonding


[root@localhost ~]# lsmod  | grep -i bonding

bonding               152979  0

[root@localhost ~]#








2) create configuration file


/etc/sysconfig/network-scripts/ifcfg-bond0


DEVICE=bond0

TYPE=Bond

NAME=bond0

BONDING_MASTER=yes

BOOTPROTO=dhcp

ONBOOT=yes




3) vi /etc/sysconfig/network-scripts/ifcfg-enp0s3



[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3

TYPE=Ethernet

BOOTPROTO=none

DEVICE=enp0s3

ONBOOT=yes

HWADDR=xx:xx:xx:yy:yy:yy

MASTER=bond0

SLAVE=yes



4) vi /etc/sysconfig/network-scripts/ifcfg-enp0s8


[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3


TYPE=Ethernet

BOOTPROTO=none

DEVICE=enp0s8

ONBOOT=yes

HWADDR=xx:xx:xx:yy:yy:yy

MASTER=bond0

SLAVE=yes



5) restart network


systemctl restart network


6) check network


ip 


ifconfig

Žiadne komentáre:

Zverejnenie komentára