CONTROLLING YOUR NETWORK ROUTES

Rishabh Jain
5 min readMar 22, 2021

Hola! technical people here is some amazing setup of networking in which one will be able to control their network setup in the system. It is an amazing setup in which will consist of three systems named as server a, server b and server c in which server a, server b can connect and vice versa, server a and server c can connect and vice versa but server b and server c cannot connect to each other.

So, let us start to create the setup. There are some steps that one has to follow and one will be able to control the routes of the system.

If you are very new to networking then one can take reference from the blog mentioned below.

Here we are having three Linux systems with us as shown below.

Now, here in the photo shown below there are IPs of the three Systems which are named as

  1. System- A or server a
  2. System- B or server b
  3. System- C or server c

Now from here we will start to create the setup proposed above.

STEP-1 DELETE THE ROUTE 0.0.0.0 FROM SYSTEM A, B & C AS SHOWN BELOW.

SYSTEM- A

To see list of routes use route -n as shown below.

After that delete the route 0.0.0.0 from the route table as shown below.

SYSTEM- B

To see list of routes use route -n as shown below.

After that delete the route 0.0.0.0 from the route table as shown below.

SYSTEM- C

To see list of routes use route -n as shown below.

After that delete the route 0.0.0.0 from the route table as shown below.

STEP- 2 CHANGE THE IP NETWORK NAME OF SYSTEM B & C AS SHOWN BELOW.

SYSTEM- B

There is a command in Linux to change the Network Name as shown below.

To check whether the IP Network Name is changed or not just check the IP of the system as shown below.

SYSTEM- C

There is a command in Linux to change the Network Name as shown below.

To check whether the IP Network Name is changed or not just check the IP of the system as shown below.

STEP- 3 ADD A NETWORK ROUTE FOR SYSTEM- A IN BOTH SYSTEM B & C AS SHOWN BELOW.

SYSTEM- B

You can now list the route table as shown below.

SYSTEM- C

You can now list the route table as shown below.

STEP- 4 NOW IN SYSTEM- A ADD THE IP ROUTE OF SYSTEM- B & C AS SHOWN BELOW.

SYSTEM- A

Add the IP of System- B as shown below.

You can now list the route table as shown below.

Add the IP of System- C as shown below.

You can now list the route table as shown below.

Now the whole proposed setup is ready. One can use the Ping Command to check the Connectivity between the systems as shown below.

SYSTEM- A & SYSTEM- B CONNECTIVITY

SYSTEM- A & SYSTEM- C CONNECTIVITY

SYSTEM- B & SYSTEM- C CONNECTIVITY

Now the whole Topology is created and tested. That’s all for this blog.

HOPE YOU LEARNED AND ENJOYED CREATING THE SETUP. THANK YOU!!

--

--

Rishabh Jain

I am a tech enthusiast, researcher and an integration seeker. I love to explore and learn about the right technology and right concepts from its foundation.