> Are you sure it's this file, since I don't see this
> file in /etc.
> I've only found the directory /etc/default
Yes , The file does not exist until you create it.
This has always been a Feature in Solaris.
Either you deploy the Route Discover Protocol in.rdisc(1M)
or the RIP protocol in.routed(1M)
OR you just preprogram the default route in the /etc/defaultrouter
file.
That saves you from building a SMF XML file to run a
"route add network default 192.168.0.1 1 "
script every time the system boots.
# man defaultrouter
Reformatting page. Please Wait... done
File Formats defaultrouter(4)
NAME
defaultrouter - configuration file for default router(s)
SYNOPSIS
/etc/defaultrouter
DESCRIPTION
The /etc/defaultrouter file specifies a IPv4 host's default
router(s).
The format of the file is as follows:
IP_address
...
The /etc/defaultrouter file can contain the IP addresses or
hostnames of one or more default routers, with each entry on
its own line. If you use hostnames, each hostname must also
be listed in the local /etc/hosts file, because no name ser-
vices are running at the time that defaultrouter is read.
Lines beginning with the ``#'' character are treated as com-
ments.
The default routes listed in this file replace those added
by the kernel during diskless booting. An empty
/etc/defaultrouter file will cause the default route added
by the kernel to be deleted.
Use of a default route, whether received from a DHCP server
or from /etc/defaultrouter, prevents a machine from acting
as an IPv4 router. You can use routeadm(1M) to override this
behavior.
FILES
/etc/defaultrouter Configuration file containing the
hostnames or IP addresses of one or
more default routers.
SEE ALSO
in.rdisc(1M), in.routed(1M), routeadm(1M), hosts(4)
SunOS 5.11 Last change: 17 Aug 2004 1
#
This message posted from opensolaris.org