How to Reconfigure a Zone to Use a VNIC
This procedure refers to the second zone in the virtual network. The zone already exists, but its current configuration prevents it from becoming a part of the virtual network. Specifically, the zone's IP type is a shared type and its current interface is net0. Both of these configurations must be changed.
- Become an administrator.For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
- Create the VNIC.where vid refers to the VLAN ID that you assign to the VNIC. Specify the VLAN ID only if you want to create the VNIC as a VLAN.Do not configure the VNIC's interface yet. You will perform this step later in this procedure.
- Change the zone's IP type from shared to exclusive.
- Change the zone's interface to use a VNIC.
- Verify and commit the changes you have implemented and then exit the zone.
- Reboot the zone.
- Log in to the zone.
- Configure the VNIC with a valid IP address.If you are assigning a static address to the VNIC, you would type the following:where address can use CIDR notation.
- From the global zone, add the address information to the /etc/hosts file.
Example 2-3 Reconfiguring a Zone Configuration to Use a VNIC
In this example, zone2 already exists as a shared zone. The zone also uses the primary interface of the system rather than a virtual link. You need to modify zone2 to use vnic2. To use vnic2, zone2's IP type must first be changed to exclusive. Note that some of the output is truncated to focus on the relevant information that relates to virtual networks.
參考資料
https://docs.oracle.com/cd/E26502_01/html/E28992/ggiyq.html#gicom
沒有留言:
張貼留言