![]() | ![]() |
The destination is given as default, and the gateway address is the IP address or hostname of the router. In Solaris, you can effectively define static routes at boot time by simply creating the /etc/defaultrouter file on each machine, and putting the name of the default router in this file. If this file exists, the /etc/init.d/inetinit boot script will read the router name from this file and set up a default route. Furthermore, if a default route has been established, the /etc/init.d/inetinit script skips the invocation of routed and rdisc. You can specify either the IP address or the hostname of the router in /etc/defaultrouter. If you use the hostname, make sure to also include its IP address mapping in the /etc/hosts or /etc/inet/ipnodes file, because no name services are running at the time that the boot script is run. Note that the IPv6 protocol is designed to be dynamic in nature, therefore IPv6 heavily relies on router discovery. For Solaris hosts, in.ndpd is the only mechanism available to discover IPv6 routers. in.ndpd sends router solicitation messages and uses the router advertisement messages it receives to autoconfigure the IPv6 host. Although nothing in the IPv6 protocol precludes static routes from being defined, Solaris has chosen not to implement a mechanism to define static routes for IPv6.route add default 131.40.52.14 1
![]() | ![]() | ![]() |
A. IP Packet Routing | ![]() | B. NFS Problem Diagnosis |
Copyright © 2002 O'Reilly & Associates. All rights reserved.