Monitor Network Bandwidth Utilization


If you are a system administrator, often getting issues on diagnose TCP and UDP network related issues. To solve this, the various way to monitor the network bandwidth and traffic, here we are going to see simple diagnose tools called IPTraf and Iftop.

Before installing please make sure your EPEL repository is installed.

Install IPTraf

[root@server.local ~]# yum install iptraf

Now enter the below command to see the network traffic on each interface

[root@server.local ~]# iptraf

Install IFTop

[root@server.local ~]# yum install iftop

[root@server.local ~]# iftop

Connecting Windows machine from CentOS


rdesktop (Remote Desktop) is the package used to connect the windows machine from linux server. Its used RDP ( Remote Desktop Protocol) with 3389 port.

Step 1: Install rdesktop

[root@server.local ~]#yum install rdesktop

Step 2: How to connect remote windows machine

[root@server.local ~]#rdesktop -u admin winhost1

[root@server.local ~]#rdesktop -u admin 192.168.1.10

After that enter the admin password to login into the windows machine.

Hope you are connected the windows host.

Enable Wake-on-LAN


Wake-on-LAN also called as WOL. The WOL having feature of switching on a computer that is connected to a network by means of special network message called a magic packet.

This magic packet contains the MAC address of the destination computer.

If the client computer has a network interface card that support WOL then the system wakes up.

Client Side

Step 1: Install required packages

[root@client.local ~]#yum install ethtool
[root@client.local ~]#ethtool -s eth0 wol g

[root@client.local ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
# add at the last line
ETHTOOL_OPTS="wol g"

[root@client.local ~]#ifconfig eth0 | grep HWaddr | awk '{print $5}'
00:10:5A:44:12:B5

[root@client.local ~]#init 0

Server Side

Step 1: Install required packages

[root@server.local ~]#yum install net-tools

Step 2: Wake-On client machine

[root@server.local ~]#ether-wake 00:10:5A:44:12:B5

where,

00:10:5A:44:12:B5 MAC address of client machine