Hello, everyone, since we are on a network configuration, part of the Linux, we'll talk about Nick
bonding, where exactly the nick bonding is.
Just to let you know, Nick, bonding is one of the very important and critical aspect in the next network
configuration.
And this type of questions are asked oftentime interview.
So let's see, a neck and neck stands for network interface card that is attaches to your computer.
So if you look at your laptop or behind your PC, you will see a little port in there and that port
is your neck.
What Nick?
Vision network interface.
Card bonding is also known as network bonding.
It can be defined as the aggregation or combination of multiple nick into a single bond interface.
Its main purpose is to provide high reliability and redundancy.
So let's look at our picture.
We have this for Nick cards on our computer.
So what we do in Nick bonding is we take two ports, we combine them together.
And the reason we combine them, because what if one port dies, we still have another port.
So this is for the redundancy.
So another way to make two ports redundant or to have the high availability is you combine them together.
If a port is one gig and the other port is one gig, you combine them together to aggregate them and
get the throughput off to gig.
This is achieved for high reliability and link aggregation.
So Nick, bonding procedure is that you type model bonding, which is to get the configuration of your
driver info, to get the information of your bonding.
Then you create a file called If Config Bonds Zero.
You added the first Ethernet one, you added the second Ethernet and you combine them and point 2.0,
if you have Nick one file, you create another Nick to file for the second nick and then you create
a third file called Banzer.
You point your Nick one and Nick to files two word bond zero.
And then what do you do at the end?
You restart the network of your computer system.
Command is system ctrl restart network.
So without further ado, I will log into my system and I'll tell you exactly how Nick bonding can be
done.
And before we start to switch shoebox, I want you to take it snapshot.
The reason I'm taking this snapshot is so we could we could revert back to a state, which is where
it is right now after we do all the configuration.
So click on right here.
You see snapshot, click on Snapshot.
And right here says take click on the take, leave the snapshot.
No one as a name default and click.
OK, now it has taken the snapshot.
Now I want you to click on Setting.
Go to network, click on Network Adapter to check, enable network adapter and select Bridgid Adapter.
Now we will have to nix on a computer, which is one here, adapter one and adapt to two.
If you want more adapters, we could go to adapter three and four and check on and they will never accept
it.
But we will work only adapter one and adopted to it this time.
And I want you to look OK.
So once the setting is done, go ahead and click on start.
Go ahead and log in as yourself.
OK, when you have the desktop, right, click on your desktop and open up your terminal.
I would like to make.
The cause of the Terminal A. Baker.
OK, go ahead and type of config and do more on the output.
And here you will see now we we have two network interfaces.
One is an ENP zero S3, and the second one is EPSO.
So eight ENPI zero as eight is the one that we just added to our commercial box.
Now what we want to do is we wanted to combine these two, three and eight together and make a bond
out of these two interfaces
become root.
First,
let's clear the screen.
Now I will open up a document that I have that has all the commands and configuration in my document.
This document is also added as part of your handouts.
So before you do this exercise, I want you to also open up this document from your hand out, have
it side by side while you do the configuration of bonding.
So I have already opened this document.
OK, so now it says, just follow the directions, it says add a new neck if it does not exist, install
bonding driver mod pub and bonding, you will need to install this if you don't have bonding enabled.
But let's say if you do have it or not, some do mod info bonding and I want you to do more on it.
And once you do more and if you get the output and description says Internet child bonding driver version
three, that's the one that means you already have the driver installed, which is the mod probe.
And then so you don't have to worry about installing it so you can move on to the next step.
OK, the next step is to create a new file called ICFTU Dash Fonzo right here.
And I have to create this file in this directory in this path.
So if I copy and paste is not going to work, so I have to type it so that I go back into a machine
and I'll do the I atse sas config network
scripts cfg dash one zero.
Now, you are in V.I. mode, had I to insert and I want you to start typing exactly what is written
in there, please make sure don't make a mistake
type as bond.
Name of this bond is Bond zero
bonding master meaning who is the master of this bonding is it's a self.
So yes, it's a boot Proteau.
So when you type none are static, it means the same things or type none on board.
Yes.
IP address.
I'm sorry, there's a mistake.
It should be just IP, ADT or the IP that I have picked is 190 to the 168 one dot 80 because I have
already typed this IP before.
And I know this IP does not exist.
Nobody has taken it.
But if you are to confirm if this IP is not taken, you could just go into.
You could open up another terminal and you're paying one nine to one sixty eight thousand eighty and
you will see you and you are not getting a response back on that IP.
So, I mean, it's.
Not taken, so I'll use IP, I'm assigning the static IP network to five five two five five two five
five zero.
Gateway Gateway is the IP address of your modem and then bonding underscore options equal Hmoud five
picking mode five.
And what exactly Morlot five is or me mind is.
This is the speed and the state.
I have also included that in my document exactly what these options mean and I want you to review them
and you will know exactly what it means.
So now you could just save and exit the file.
OK, once you have that sense of bonding options, detail can be found here.
You see right here it has all the options be packed.
If you remember, we picked option five, which is transmit load balancing.
You can read about it.
And then am, I am, and which is a monitoring, am I monitoring frequency in milliseconds, we picked
hundred.
OK, so next step is.
It says, added the first NIC file, which is and piezo as three, so I am in the directly I'll go into.
This conflict will just drag this a little more so you could see it a little better, says confecting
network script.
And in this directory I already have a file called SKG and PDU, a street movie.
And now I have here I said delete the entire content.
So how do you delete it in the VCR?
You would keep doing DTT until you go to the bottom.
You are at the bottom and says no lines in buffer.
That's good.
Now hit enter.
So hit insert you have you probably have to hit insert a couple of times to get it.
So now keep typing what exactly.
It's in there.
So type the net
for none device.
S&P zero three.
On board, yes, you want to have that hardware address?
This is a new one.
Now, this is the Mac address of your E and PS your.
S3, So what is my hardware Mac address?
You have to open up another term in the back, drag it and then just type F config and do more and you
will see the PS4 S3 has a Mac address of this.
So what I will do is I'll try this a little bit on top of the I don't window in the bar in the back.
And now I could type the address, zero eight zero zero two seven three three.
Zero zero eight.
They're the.
Twenty eight verified two seven three zero.
Twenty eight years and then it enters M. It's asking you who's your master?
The Master is born zero, which is the other file that we created before that hit Enter Slave.
Are you a slave?
Meaning this interface, is it a slave?
Let's say yes to check again.
Would Proteau would we miss one.
Oh no we did not.
It's their type.
Would Proteau device on both hardware address which is a Mac address.
Master is bonza and slaves.
This can now save an exit.
OK, now follow.
The directions.
OK, now it says, create the second big file for S&P zero eight, I could create a second one or I
could just copy this S&P zero as three and change the name and Mac address.
It would be easier to just copy ENP or three and I name it CFG Dash in the street and take up replace
three with eight notes copied now by CFG and PS4 s eight now in zero eight.
Now you have to change this third line says device zero three with eight.
Yes, yes.
And now the Mac address would be different.
Go back to your other command that is open back it up and you will see here the Mac address for ENPI
zero eight is this one.
So once you have it highlighted, drag it down so you can see it and now change it.
It has it has changed after the three octet so zero D seventeen nine be OK Bonza Maestre is the bonds
zero slave.
Yes, I am a slave for Bonzo.
Then like quit and save the file.
The file is saved.
Now I want to restart service system ctrl restart the network service network restart hit enter by running
if config do the more on it and you will see now the IP that I have assigned or says make a 180 to one
sixty eight one point eighty its master and the other ports sorry.
Other next gen P zero as three and it's eight.
You see here, right here says you are slave and slave.
So I signed as given one eight to 161 to eighty.
I'm going to take this IP, plug it into my position and see if I could connect to it one day to one
sixty eight.
One eighty eight enter.
Yes, I could connect.
This is just a key warning sign.
You could just accept it to save it and log in
and.
Yes, there you go.
So now you know that your interface is combined together to and pointing it to bonds or any other instructions
that we have.
We could go down.
We could also see here, it's telling me that I could verify the setting.
By doing that simple neck bonding and bond, you and I do that, I should not have let me make this
bigger.
And now you'll see her when I did the cat, you see, it says currently active slave.
Is this one?
It is load balancing slave interfaces this and second slave interfaces this.
Now, once it is done, I want you to revert back to your original VM.
So just close it powered off close and says Power off the machine.
You power it off.
Now go to your Oracle virtual machine right here and first once wait for it to power off, then goal
setting and then come to network computer network data to uncheck the one we checked before.
Click OK, now it should not have the second adapter, but I want you to click now to the snapshot one
and click on Restore.
This is going to restore to the original state where we had it before here.
It would create another snapshot of your current state, which I don't want you to do.
So uncheck this box and click restore.
Now it is restored to exactly the same way where it was before we started this lesson.
All right, guys, I hope you enjoyed it.
And please try it on.
This is this this is one of the topic is very important.
You will be working on a physical machines most of the time when you have to do no bonding.