Solaris 10: set subnet mask in zone
There isn’t a netmask setting available when creating a zone and the /etc/netmasks file isn’t consulted when plumbing up zone interfaces. This recipe describes how to force a netmask when creating a zone.
To configure an IP address of 10.1.1.12 with a class C subnet mask (255.255.255.0, a 24 bit mask) on physical interface bge0, use these commands when running zonecfg to create the zone (substitute your IP address, netmask length, and physical interface as appropriate):
zonecfg:testzone>add net
zonecfg:testzone:net>set physical=bge0
zonecfg:testzone:net>set address=10.1.1.12/24
zonecfg:testzone:net>end
. . .
This configuration is only necessary when using a non-standard netmask.





