Solaris 10: how to setup a netmask while creating a zone

Remco Lengers 23 mei 2008
0 people like this post

Here’s how to setup a netmask while creating a zone:

# zonecfg -z testzone

testzone: No such zone configured

Use ‘create’ to begin configuring a new zone.

zonecfg:testzone> create

zonecfg:testzone> set zonepath=/zones/testzone

zonecfg:testzone> set autoboot=true

zonecfg:testzone> add net

zonecfg:testzone:net> set physical=hme0

zonecfg:testzone:net> set address=

zonecfg:testzone:net> end

zonecfg:testzone> verify

zonecfg:testzone> exit


If you want to set a non default netmask you can replace that the following:

zonecfg:testzone:net> set address=

Now you have set the netmark to be

There are various online tools to help you calculate the netmask number

Category: Computing
  • 0
  • 740

Leave your comment

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.