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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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 11.2 : Adding new resources to a running zone online
  2. Resource management in solaris zones : Capped memory
  3. How to create Solaris 8 & 9 Branded Zones in Solaris 10
  4. How to configure additional IP address on the same interface in solaris zones
  5. How to Create a Datalink in Non-Global Zone from the Global Zone in Solaris 11
  6. Troubleshooting Oracle Solaris Zones (containers) installation issues
  7. Solaris 11 : How to verify whether I’m logged into a Kernel Zone?
  8. Examples of adding VxFS, ZFS, SVM, UFS, lofs, Raw volumes and disk devices to non-global zones.
  9. Resource management in solaris zones : CPU shares, capped CPU, Dedicated CPU assignment
  10. How to create a zone in solaris 11

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary