Check Network Utilization Linux




Now we will discuss how to view network information on Linux. Some of the information that can be obtained is the interface card information, ip address, service is running and the user is active.

See interface card
To view the intergace card you can use a linux command diterminal you:
ifconfig |grep "HWaddr"

see the IP and network configuration

Static IP
To manually set the interace, simply open the file
/etc/network/interface



Dynamic IP
Dynamic IP is the ip of the DHCP server. If you embuka file /etc/network/interface you will not find ip address there. To see the ip, gateway and dns, use the command ifconfig, route -n, dan cat /etc/resolv.conf in a sequence like the following example

$ ifconfig wlan0|grep inet
inet addr:192.168.55.101  Bcast:192.168.55.255  Mask:255.255.255.0
inet6 addr: fe80::222:43ff:fe8b:43a3/64 Scope:Link
candra@candra-ubuntu:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.55.1    0.0.0.0         UG    0      0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.55.0    0.0.0.0         255.255.255.0   U     9      0        0 wlan0
candra@candra-ubuntu:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4

See service is running
Linux server usually runs many services. The service is called also with service or deamon. To view the service that is running, use the command
nmap localhost

Later you'll see what service is running

See active users
Linux is a multiuser OS mulitasking at once, hence in one server can log a lot of users (usually use telnet or SSH). If we want to see the active user. use the command who It used to be when I was in College, one server in use by dozens of students to learn the operating system or computer network. Of course by utilizing the remote login by using the puTTY tool.

 
Next
Previous
Click here for Comments

0 comments: