NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Monday, 18 February 2019

Add a Static TCP/IP Route to the Windows Routing Table

What is routing table:

In computer networking a routing table, or routing information base (RIB), is a data table stored in a router or a networked computer that lists the routes to particular network destinations, and in some cases, metrics (distances) associated with those routes. The routing table contains information about the topology of the network immediately around it. The construction of routing tables is the primary goal of routing protocols. Static routes are entries made in a routing table by non-automatic means and which are fixed rather than being the result of some network topology "discovery" procedure. 

How To Check windows Routing Table:

  • Run as Administrator CMD
  • Then Type Route Print 

  •  Now Add A Route Manually 
  •  route ADD destination_network MASK subnet_mask  gateway_ip metric_cost
  • route -p add 101.50.64.229 mask 255.255.255.255 172.21.48.1
  • -p if you’re just adding one or two static routes that you don’t expect to change often, you can instead just add the -p option to the command to make the route persistent. A persistent route stays in place even when Windows starts up. Using the same command we used earlier, you could make that route persistent with the following modification

 
  • What is the Scenario in our case we add a router with 101.50.64.229 mask 255.255.255.255 172.21.48.1
Explanation :In our case as we configure a route with a local PC Gateway 172.21.48.1 and subnet mask 255.255.255.255 will be only router traffic to 101.50.64.224 no other traffic will be router from this Gateway because we have an other Default router with 0.0.0.0 0.0.0.0 with Gateway 172.16.0.1.
What ever traffic come from this network 172.21.48.1 255.255.255.255 will be router to 101.50.64.224
there is no need to configure Multi Gateway on NIC Just configure IP and subnet mask as we did.
  • 172.21.48.3  is NIC IP what ever traffic in or out will b use the local gateway 172.21.48.1 and router traffic only to 101.50.64.224 and there is no Multi gateway conflict for traffic.

Remove a Static Route from Windows:

  •  route delete destination_network
  •  route delete 101.50.64.229


 

 

 

 

No comments:

Post a Comment