Tek Kinfe writes:
> How do I configure an unplumbed network interface on a Solaris machine so 
> that it has a non-routable static IP address and a defined default gateway?

You can configure the interface at run time like this:

# ifconfig $NAME plumb $ADDRESS/$LEN broadcast + up

For example:

# ifconfig hme0 plumb 10.0.0.1/24 broadcast + up

See ifconfig(1M) for details.  You can put that information into an
/etc/hostname.$NAME file to make it occur at boot time:

# echo 10.0.0.1/24 > /etc/hostname.hme0

Note that a default router isn't defined by the interface itself.  You
can configure static routes using the /usr/sbin/route command (see
route(1M)), and can make it permanent (so that it is put in place at
boot time) by using the "-p" option.

You can also put static default routes into the /etc/defaultrouter
file.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to