Routing Question: Download Questions PDF
How to Add Static Routes?
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 184.108.40.206 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 220.127.116.11 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 Question||Next Question|
|How to Set a defaultrouter?||How to Use in.rdisc?|