Michelle Olson writes:
> No, the examples don't use IPv4 addresses with CIDR notation.

They should, though.

> Very few 
> of the IPv4 address examples use CIDR prefixes. I 
> should think that you could use CIDR prefixes in the 
> /etc/hostname.interface file, but I am not sure.

Yes, you can.  As noted before in this thread, the contents of that
file consists of just ifconfig(1M) command line options, and that man
page correctly documents what's possible:

     /sbin/ifconfig   interface   [address_family]   [   address
     [/prefix_length]     [dest_address]]   [   addif    address
[...]
         For both inet and inet6, the same  information  conveyed
         by  mask can be specified as a prefix_length attached to
         the address parameter.
[...]
     prefix_length

         For the IPv4 and IPv6 families  (inet  and  inet6),  the
         prefix_length  is  a  number between 0 and the number of
         bits in the address. For inet, the number of bits in the
         address  is  32;  for  inet6,  the number of bits in the
         address is 128. The prefix_length denotes the number  of
         leading set bits in the netmask.
[...]
     example% ifconfig eri0 addif 192.168.200.1/24 up

-- 
James Carlson, KISS Network                    <[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
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to