• 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

How to Create a Datalink in Non-Global Zone from the Global Zone in Solaris 11

by admin

Network virtualization is the process of combining hardware network resources and software network resources into a single administrative unit. The goal of network virtualization is to provide systems and users with efficient, controlled, and secure sharing of the networking resources. The end product of network virtualization is the virtual network.

Starting from Oracle Solaris 11.2, you can create datalinks in nonglobal zones from the global zone. This feature enables administrators to dynamically create VNICs, VLANs, and IP-over- InfiniBand partitions directly in the nonglobal zone’s namespace from the global zone. Link names are specified as [zonename]/[linkname] and the links are created directly in the specified nonglobal zone.

The example below shows how to create a VNIC v1 in nonglobal zones zone1 and zone2 from the global zone. The zone1/net0 and zone2/net0 are automatically created VNICs for zone1 and zone2, respectively.

# dladm create-vnic -t -l net1 zone1/v1 
# dladm create-vnic -t -l net1 zone2/v1
# dladm show-link -Z
LINK           ZONE         CLASS     MTU      STATE       OVER 
net1           global       phys      1500     unknown     -- 
net0           global       phys      1500     up          -- 
zone1/net0     zone1        vnic      1500     up          net0 
zone2/net0     zone2        vnic      1500     up          net0 
zone1/v1       zone1        vnic      1500     up          net1 
zone2/v1       zone2        vnic      1500     up          net1

Accessing a Virtual Network Configuration

Shown below are useful commands for accessing your virtual network configuration. The first command (dladm show-link) shows you how to list all the links configured in your system. This includes VNICs and etherstubs. The next command (dladm show-vnic) shows you how to list the VNIC links. The last command (dladm show-etherstub) shows you how to list the etherstubs.

# dladm show-link
LINK     CLASS       MTU      STATE       OVER  
net1     phys        1500     unknown     -- 
net2     phys        1500     unknown     -- 
net0     phys        1500     up          -- 
net3     phys        1500     unknown     --
stub0    etherstub   9000     unknown     --
vnic0    vnic        9000     up          stub0
vnic1    vnic        9000     up          stub0
vnic2    vnic        9000     up          stub0
# dladm show-vnic
LINK     OVER      SPEED    MACADDRESS          MACADDRTYPE     VIDS
vnic0    stub0     40000    2:8:20:61:47:f6     random          0
vnic1    stub0     40000    2:8:20:81:e5:95     random          0 
vnic2    stub0     40000    2:8:20:e9:10:18     random          0
# dladm show-etherstub
LINK 
stub0
Beginners Guide to Configuring network virtualization features in Solaris 11

Filed Under: Solaris, Solaris 11, Zones

Some more articles you might also be interested in …

  1. How to Check and Analyze Memory Usage in Solaris
  2. Solaris : Non-root user can’t run prtdiag command
  3. Script to reset the iostat errors counters (hard/soft/trn) without reboot
  4. The ultimate Solaris Volume Manager (SVM) interview questions
  5. Solaris ZFS : How to import 2 pools that have the same names
  6. Script to label multiple disks in Solaris
  7. Managing boot environments in Solaris 11
  8. How to enable or disable telnet in Solaris 10
  9. Resource management in solaris zones : CPU shares, capped CPU, Dedicated CPU assignment
  10. How to Configure iSCSI targets on Solaris 10

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright