Posts

Showing posts with the label IP

[Network] Add/Delete Static Route in Windows Routing Table & TraceRoute an IP

Image
Adding Static Route in Routing Table Syntax of adding static route to routing table in cmd: route add -p destination_IP MASK subnet_mask   gateway_ip   metric_cost(optional) If you don't have a specific subnet_mask, then use 255.255.255.255. metric_cost is a cost relative to other costs in the routing table. Windows decides which route to take based on the metric_cost. Remember to trace route the destination_IP (explained later) after adding a static route to confirm the static route is working (that it does indeed go through your gateway_IP to reach your destination_IP). Removing Static Route in Routing Table Syntax of removing static route to routing table in cmd: route delete destination_IP Print Route To print your routing table, run this in cmd: route print For example, before you added any static route, in your 'route print' you will see none under persistent routes:  After you are done adding a static route, it'll look like this: ...

[Network] Static and Dynamic Routing

Routing Routing is the mechanism that informs the network the procedures to get to different IP networks. Routing is done via devices, known as routers. What's a Routing Table? According to howtogeek.com, "A routing routing table dictates where all packets go when they leave a system - whether that system is a physical router or a PC." Dynamic Route Most routers (including the one in your PC) use some form of dynamic routing, which means the router has the capability to figure out the best place to forward packets based on information from other routers. To see this in action, use the traceroute command to see the connections a packet makes as it reaches its destination. Use Case The use case of dynamic routing would be - imagine you have 100 routers, and you want to add 2 new different subnets. In this case, you will have to add 200 (2 x 100) static routing entries. Pros of using Dynamic Route Removes the likely of human error due to the repetitive n...