Author Archives: admin

Bonding Installation Instructions

Bonding is a combination of many links of network cards in the server for higher speed as well as a backup plan when a network card has a problem.

Install Bonding 

Step 1: install Bonding by command

modprobe –first-time bonding

Step 2: Check the successful installation of Bonding using the command

lsmod | grep “bonding”

Step 3: Create a configuration file for bond0 with the command

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

Step 4: Configure the file ifcfg-bond0

+ Mode =  0 : balance-rr
+ mode = 1 : active – backup
+ mode = 2 : balance – xor
+ mode = 3 : broadcast
+ mode = 4 : 802.3ad
+ mode = 5 : balance – tlb
+ mode = 6 : balance – alb

Step 5: There are 2 network cards, respectively ens33 ens36, configure the ens33 network card to enter the configuration file using the command

vi / etc / sysconfig / network-scripts / ifcfg-ens33

Step 6: Configure the ens33 . network card

DEVICE = ens33

TYPE = Ethernet

ONBOOT = yes

BOOTPROTO = none

NM_CONTROLLED = no

MASTER = bond0

SLAVE = yes

Step 7: Go to the ens36 network card configuration file using the command

vi / etc / sysconfig / network-scripts / ifcfg-ens36

Step 8: Configure the ens36 . network card

DEVICE = ens36

TYPE = Ethernet

ONBOOT = yes

BOOTPROTO = yes

NM_CONTROLLED = no

MASTER = bond0

SLAVE = yes

Step 9: Restart the network service with the command

service network restart

Step 10: Check the installed bonding with the command

cat / proc / net / bonding / bond0

Conclusion

We have just completed the basic installation and use of bonding steps, here we can provide network redundancy options for the server, or load balance for the network, depending on usage needs.

Thank you for reading.

Bé Snake

SSH Installation Instructions

SSH is remote connection protocol default connection port is 22 with alternative encryption telnet

SSH Installation Instructions

Step 1: To install ssh use command

yum install – y openssh openssh-server openssh-client openssl-libs

Step 2: Start the service using the command

systemctl start sshd

Step 3: Want ssh to run after starting the server use the command

systemctl cho phép sshd

Step 4: To allow external connections to the server use the command to turn on the firewall to allow port 22 of the public zone in (if the server uses a firewall)

firewall-cmd –zone = public –add-port = 22 / tcp

Step 5: Check ssh using command

systemctl status sshd

Conclusion

We have just completed the SSH installation instructions, here we can follow the next article to use Pair key to connect to ssh .

Thank you for reading.

Bé Snake