[No audio]
NIC information. What is the NIC? NIC
stands for network interface card. That
is something that is attached to your
computer, your desktop or your laptop.
If you look at the back of your laptop,
you will see the little port where you
connect the the Ethernet 5 or 6,
cat 5 or 6 cable to it. That's the
card installed in your computer, and the
port that is associated or attached
to the card, that port is called NIC.
In Linux or in computer world, it's
called NIC. An example to find the
information about the NIC is that you
run a command ethtool, followed by the
name of your NIC. And how do you find
out the name of your NIC? Think it,
think about how do you find out the
information about your NIC, you run the
command ifconfig, that will give you all
the interfaces of your computer. If you
run ifconfig you will see other NICs as
well, what are those? Well, there is one
of the NIC that you will see that shows
up is lo. lo stands for loopback device
is a special interface that your
computer uses to commnicate within
itself. It works as a diagnostic and
troubleshooting and to connect servers
running on the local machine. So it's
like you could say a private
communication within itself. Then you
have another NIC that you probably will
see in your machine, if it's a virtual
machine, it's virb0. This stands for
Virtual Bridge 0 interface, is used
for NAT, NAT stands for network address
translation. The virtual environment
sometimes use it to connect to outside
network. So I don't want you to really
focus on virb0, or even lo because
you will be seeing this but there is not
not main function of this. The only
function of the interface that is used
to communicate to other computers is a
different the third interface, which is
usually labeled as if it's Oracle
Virtual, it's enp, or if it's a regular
server, you're probably gonna see eth
0, 1, 2, or so on. So we will run this
command ethtool in our environment, and
see how we could get the information
about our interface. So we'll go into
our Linux machine. And this time, I want
to log into my system using our console.
So the console or you could use PuTTY
session to if you want to. So let's see
if I have a PuTTY session. I'll just
execute the PuTTY session right here.
But in order for me to run PuTTY
session, I need the IP address. How do I
find the IP address? How do we find it?
ifconfig. Now you should be comfortable
enough to run this command all the time.
ifconfig, I'll put more because if it's
if it doesn't fit on the screen, it will
give me one page at a time. And
the IP address that I have for my
interface is this 192.168.1.12.
[No audio]
I log in as myself, and in order for me to
run the ethtool command I have to be root.
[No audio]
So I am root. Let's clear the
screen. Let's get rid of this one.
Minimize it since we already have the
PuTTY. Let's make a little bigger, and
now we'll talk about the interfaces.
Again how do we check our interfaces?
ifconfig, as you can see, we have the main
interface right here, which is the one
that is used to communicate to other
computers or outside world, and it has
ip assigned. The next one is lo which I have
already explained. And the third one is
virbr0 already explained in my
slide. I want to get information of vrbr0,
so let's say ethtool and virbr0,
and it will say, Link detected: no,
so forget that. Then next one we want to
do is ethtool lo. Link detected: yes,
but there's not much information that's
out there because it's the system's its
own interface so we don't have to worry
about that. The one that we have to be
concerned with is ethtool enp0s3.
Where do I get that?
Right from here. See this interface,
this is the name of my interface. So I
will run ethtool, followed by the name
of my interface, and I'll hit enter. Once
I hit Enter, I have right here my
command output start from right here.
This is what it's telling me that
setting for interface, it's supported ports
is TP, Supported link modes, it
supports 10, which is 10 mg, 100 mg,
and 1000 mg, what is 1000 mg, it's
one gig. So my interface supports one
gig of traffic. Nowadays, if you're
running your computer on a very high
speed network computer, you will see 10
gig right here. So a few things that you
do have to get out of this command ethtool
is one, whether it's
link mode is 1000 or 10,00. Second, you have
to know of course the Speed is 1000
megabytes, which is the same as this
one, then you need to know it's Duplex
is a Full, Half duplex. These are the
things you have to provide to your
network administrator because when your
computer is connected to a switch, and
switch has to be configured for your
port to allow the traffic to come in and
leave your server, your system your
network administrator will ask you for
that information. So be ready for that,
and remember the command to find that
information is ethtool, and the last
one is Link detected, that your
interface link is up, it's active, it's not
down. If you are troubleshooting it, you
can find it. If you see no here then it
means there's something wrong with your
network card. Alright, try these
commands, run man command on ethtool,
and try with different options that is
given and see what are the options that gives
you the exact information that you are looking for.
[No audio]