Posts

Ever wondered what is difference between SNMP and Syslog?

Image
SNMP is primarily a protocol for network management and monitoring. Using SNMP, admins can gather and manage information about network devices, track performance metrics, configure devices remotely, and receive notifications (traps) about specific events or conditions. There are two types of SNMP devices 1) SNMP Managed devices These are devices being managed using SNMP such as Routers, Switches, etc. 2) NMS (Network Management System/Status) These are devices/device managing the managed devices. This is an SNMP Server. For the purpose of demonstration, I will consider the following topology. Let's say, I want to get the system name, From the SNMP server, I am sending an SNMP GET message to the managed device to get its name. In the same you, you can send the SNMP SET message to change the system name. Notice that the Router name has been changed from R1 to R5 Syslog is primarily used for log management, troubleshooting, and security analysis. It enables admin...

What are different SSH Authentication Methods?

Image
  Have you ever tried to set up an ssh connection to Linux machines? Have you ever wondered how many ssh authentication methods you can use to get remote access to a Linux machine?   At the end of the blog post, you will have a great understanding of what are some of the ssh authentication methods that you can use to get remote access to a Linux Machine. For the purpose of demonstration, I will use the following topology. I have three Linux machines. Ubuntu-Workstation having IP address = 10.0.0.249 Ubuntu-Server having IP address = 10.0.2.15 CentOS-Workstation having an IP address = 10.0.2.16 Our main objective will be to get ssh remote access to Ubuntu-Server and CentOS- workstation from Ubuntu -orkstation. I will discuss Three SSH Authentication Methods. Password-Based Authentication Key-Based Authentication  with Passphrase Key-Based Authentication  without Passphrase Before starting make sure that the OpenSSH server is installed on all of these machines. Ubun...

Ping Fails But Traceroute works?

Image
Have you ever encountered a situation?  when you ping a device, it fails but when you traceroute to the same devices, it works. At the end of the blog post, you will have a great understanding of why this happens. In my previous blog post "But How Does Traceroute Works", I have explained in detail how does traceroute works. You can continue reading this blog post without reading my previous blog post but it will really help you out to read that blog post as well. Click  But How Does Traceroute Works?  to read my previous blog. For the purpose of demonstration, I will use the following topology. Figure 1 Throughout this blog post i will use the terms Source and Destination. Whereas  Source = Kali-Linux ( having ip address 192.168.10.105) Destination = Linux Server ( having ip address 192.168.30.105). Case 1 Linux Server  can receive ICMP echo request packets and can respond with ICMP echo replies when it receives ICMP echo request packets. ping -c 4 192.168.30.10...

But How Does Traceroute Work?

Image
What is Traceroute? So if you want to determine the HOP count ( total number of HOPs that packets travel through.)  from source to destination or in other words if you want to trace the path that packets take from source to destination you will use Traceroute .     Is It Traceroute Or Tracert ?  Though both Traceroute and Tracert do the same job, they work a bit differently. I will explain it later in detail. For the time being keep in mind that the Traceroute utility is available on Unix-like systems such as Linux and macOS , It is also available on Cisco IOS . Whereas Tracert utility   is available on Microsoft Windows. How does Traceroute work? To help you really understand this I would like to explain it in three different ways. Traceroute can be implemented using ICMP, UDP, and TCP. Traceroute over ICMP Traceroute over UDP Traceroute over TCP Before discussing all these, let us understand ICMP which will really help us understand this blog. ICMP stands for...