Networking, setup star topology network system

Networking is the process by which IT resources are connected for transfer data among each other frequently without getting any error .

There are five types of topologies in networking

  1. Mesh topology
  2. Bus topology
  3. Star topology
  4. Ring topology
  5. Hybrid topology

Basics requirements of networking between two systems:

  1. There should be physical connection between two computers
  2. There should be network card in both computers and allocated IP address
  3. If both computers are in same network then switch is required , but when both computers are in different network then router is required for networking .
  4. For setup connection between two computers ,Routing table is necessary . it allows to create packet for transfer data .

For setup connection between two computers , it is necessary to create net packet, in net packets two sections are available , header and payloads . In header information of data is mentioned , source IP and destination IP is also mentioned ,data is available in payload.

So in this task i am creating a network topology setup in such a way system A can ping to system B and system C but system B and system C can’t ping to each other using routing table.

This star topology , i have created using routing table. In networking, routing table has important role for setup connection between two systems . When all requirements are full filled for setup connection but there is no any rule created in routing table then net packets will not be created and without net packets two systems can’t ping to each other .

route -n 

Above command is used to check the rule created in routing table

So Here i am using three OS with IP 192.168.2.2 , 192.168.2.5 and 192.168.2.9 . All three system’s netmask is 255.255.255.252 . These three systems are in different network .

The system have IP address 192.168.2.2 is set as center system

Step 1:

I have created routing table in center system for allowing create net packet for systems having IP address 192.168.2.5 and 192.168.2.9 using below command

route add -net 192.168.2.4 netmask 255.255.255.252 enp0s3 
route add -net 192.168.2.8 netmask 255.255.255.252 enp0s3

Step 2:

After done all the above steps i have created routing rule in system which have IP address 192.168.2.5 as this system can ping to system which have IP address 192.168.2.2 but can’t ping to system have IP address 192.168.2.9

I have used below command

route add -net 192.168.2.0 netmask 255.255.255.252 enp0s3 

Then try below command to check that it is pinging to 192.168.2.2 or not .

ping 192.168.2.2

I checked also that this system is not pinging to system have IP address 192.168.2.9

Step 3:

After all the above steps , i run below command to add routing rule in system have IP address 192.168.2.9 by using below command

route add -net 192.168.2.0 netmask 255.255.255.252 enp0s3 

Above command will create a routing table which will allow to create net packet for system have IP address 192.168.2.2 .

After adding routing rule , i have checked that system is pinging or not using below command

ping 192.168.2.2

--

--

--

enthusiastic for new technologies

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Building Micro-services in Go using Keycloak for Authorisation

Parsing HTTP Params in Python Heroku Starter App

How to run Bird BGP daemon on Kubernetes cluster as Static Pod

Abstract Classes in C++

Edit Images on the Command Line With GraphicsMagick

Comparator and Comparable (Sorting) in Java

Model-As-A-Service and managing them via Supervisor and Nginx

How to create an image gallery with CSS Grid

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dhiraj Kumar

Dhiraj Kumar

enthusiastic for new technologies

More from Medium

Configuring infinispan persistence for a table with MySQL as database

Integrating Mailchimp APIs in your project

x86 Linux Bind TCP Shellcode

Running sctest on MSF’s linux/x86/shell_bind_tcp shellcode

BGP- Prevent Transit AS using Prefix List