Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Google   


Solaris route command

News See Also Recommended Links Humor Etc

The Solaris route command enables manual manipulation of the route table. The syntax of the command is somewhat complicated:

route [-fn] add|delete|get [net|host|default] destination gateway

With keywords add and delete the default for optional [net|host|default] troika is host.

Here are some examples that might help to learn the intricacies of the command: 

Note 1: The metric between two machines increases by one each time a new router (gateway) is encountered in the path. RIP automatically chooses the path with the lowest metric. The metric information for a path is kept in the kernel's routing table in cache.

Note 2: When deleting entries from or flushing the routing table, the process in. routed stops listening for RIP broadcasts but continues listening for RDISC advertisements. This freezes the current table. The appropriate process must be manually restarted to have it continue listening for RIP broadcasts.

Specifing default route with /etc/defaultrouter

A default route is a route table entry that allows a host to define default routers to use if no other specific route is available. The default routers must be reliable. There is no need to define every reachable network. All indirectly connected packet destinations go to the default router.

A default router is identified by entries in /etc/defaultrouter.  It contains hostname or IP address entries that correspond to one or more routers. Upon rebooting, this prevents the startup script (/etc/rc2.d/S69inet) from launching the in.routed and in.rdisc dynamic router processes. Default route table entries may also be added by the in.rdisc daemon.

Advantages of default routing are:

Disadvantages of default routing:

Quiz

Q1. Which command will manipulate the routing table ?

 A: route

 Q2: Command to add a route to server1 via router1:

 A: route add host server1 router1

Q3. Which command will add a route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route add net 128.251.0.0 128.144.1.254

Q4. Which command would delete a route to host server1 via router1 ?

 A: route delete host server1 router1

Q5. Which command will delete the route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route delete net 128.251.0.0 128.144.1.254

Q6. Which command will remove all entries from the routing table ?

 A: route flush

Q7. Which command allows you to monitor the routing requests that are not getting resolved from the routing table ?

 A7: route monitor

Q8. Which script starts the in.named daemon ?

A:  Depend on the Solaris version:

 

...

Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

Last modified: February 28, 2008