Thursday, July 20, 2023
HomeNetworkingDetailed rationalization of three static routing circumstances – Router Swap Weblog

Detailed rationalization of three static routing circumstances – Router Swap Weblog


Hey everybody, not too long ago many individuals have requested how two routers on completely different community segments can talk with one another. Presently we have to configure static routing to resolve this downside. Though the bridging operate of routers is extra frequent in residence networks, in initiatives, the configuration of static routing is extra frequent, primarily used to resolve the mutual entry between routers in several community segments. For some pals, there could also be some doubts in regards to the particular configuration of static routing. Let’s take a deeper look as we speak.

On this article, we’ll undergo three related examples to resolve static routing configurations. This text entails a number of technical content material, however it is usually very sensible. It is strongly recommended that you just learn it rigorously.

Case 1: What’s a static route?

When a router is linked to a different router, and the 2 routers are linked to completely different community segments, to ensure that the 2 community segments to speak, we have to configure static routing.

Case 2: How you can configure static routing?

Assume that an enterprise accesses the Web by means of a router R1 and has a neighborhood space community LAN1. For enterprise wants, they added a router R2 and added a brand new LAN section LAN2. With a view to permit PC1 in LAN1 and PC2 in LAN2 to speak with one another, we will make the next settings:

Set the gateway of PC1 to be the LAN interface of R1.

Set PC2’s gateway to R2’s LAN interface.

Set the gateway of R2’s WAN interface to R1’s LAN interface.

Specify a static route on R1, in order that the information packets whose vacation spot IP is the 192.168.1.x community section are forwarded to R2.

Case 3: Clear up the configuration of static routing once more

Suppose there are two community segments as follows:

PC A: 192.168.0.165 255.255.255.0   PCB B: 192.168.0.148 255.255.255.0

Within the above diagram, PC A and PC B belong to completely different community segments. On this case, B can ping A, however A can’t ping B. The reason being that after the IP of PC B passes by means of the NAT (community handle translation) of the router, the exterior show is 192.168.0.148, and PC A doesn’t know the actual existence of PC B.

To make PC A capable of ping PC B, we have to inform PC A find out how to entry PC B, we will add a static route on PC A:

Enter the next command on the command immediate (or terminal):

route -p add vacation spot handle masks subnet masks gateway handle

The which means of this command is that if you wish to discover the “vacation spot handle”, ship the information packet by means of the “gateway handle”. The place -p means everlasting impact.

So, primarily based on the instance above, the directive ought to seem like this:route -p add 192.168.19.0 masks 255.255.255.0 192.168.0.148

Right here 192.168.19.0 signifies that the route is relevant to all IP addresses beneath the 192.168.19 community section. After the addition is full, you should use the route print command to test whether or not the addition is profitable. (Be aware that beneath Home windows 10 it’s essential to run Command Immediate as administrator so as to add static routes).

Conclusion:

Transcend the boundaries of the community and expertise the final word connection! Click on to enter the Router-switch.com now to buy probably the most superior routers, switches and community tools, in order that your community expertise will be upgraded immediately!

Examine Extra Router-switch Merchandise:

H3C Switches

Cisco Routers

Aruba Switches

Learn Extra:

Be a part of Router Swap Weblog as a Visitor Author and Columnist!

Cisco C9200L-24P-4G-E: How you can Energy Your Community with Reducing-Edge Expertise

H3C: The Gentle of IT Illuminates the Way forward for Transferring Companies



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments