Routing Question:

Download Job Interview Questions and Answers PDF

How to Add Static Routes?

Routing Interview Question
Routing Interview Question

Answer:

At any time, you can add static routes to your machine via the route command. The standard syntax for adding a network route is: route add net "remote-network-ip gateway-ip" 'hop-metric-count' On Solaris 2.6: route add -net "remote-network-ip gateway-ip" -netmask route add -host "host-ip local-intrf-ip" -interface remote-network-ip is the network you are adding a route to, gateway-ip is the ip address of the gateway that leads to that remote-network. hop-count is an integer which identifies the number of gateways that you must go through to get to the remote-network. A network that is directly connected to your machine would have a hop count of 0 (ie, the 150.101.16.0 net in the example below). A remote-network that is directly connected to a gateway-machine that is, in turn, on the same network as your machine would have a hop count of 1 (ie, the 150.101.17.0 net in the example below). Static routes are rarely added for remote-networks with a hop count greater than 1.

Download Routing Interview Questions And Answers PDF

Previous QuestionNext Question
How to Set a defaultrouter?How to Use in.rdisc?