• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris zones : How to set netmasks

by admin

Question : How to set certain netmask for a non global zone ?

Answer :
To define a certain netmask for a non global zone, use zonecfg command. The network address is one of:

  1. a valid IPv4 address, optionally followed by “/” and a prefix length.
  2. a valid IPv6 address, which must be followed by “/” and a prefix length.

Steps to follow
1. On the global zone, enter the zone configuration mode :

global_zone # zonecfg -z zone01
       zonecfg:zone01> add net
       zonecfg:zone01:net> set address=192.168.0.10/24
       zonecfg:zone01:net> set physical=eri0
       zonecfg:zone01:net> end
       zonecfg:zone01> exit

2. Verify the zone configuration :

global_zone # zonecfg -z zone02 info

3. To check and verify the settings you can use ifconfig within the non global zone :

zone01 # ifconfig -a

Filed Under: Zones

Some more articles you might also be interested in …

  1. Solaris Zones : How To Change The Number Of CPUs Using Dynamic Resource Pools
  2. How to delegate NTP service to non-global zone in Solaris
  3. Troubleshooting Oracle Solaris Zones (containers) installation issues
  4. Examples of adding VxFS, ZFS, SVM, UFS, lofs, Raw volumes and disk devices to non-global zones.
  5. How to Create a Datalink in Non-Global Zone from the Global Zone in Solaris 11
  6. How to configure additional IP address on the same interface in solaris zones
  7. How to provide unique hostid for a non global zone
  8. How to configure Solaris Zone to access a CDROM
  9. How to create Solaris 8 & 9 Branded Zones in Solaris 10
  10. Resource management in solaris zones : Capped memory

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright