VLANs. Cisco UCS Manager CLI
Cisco UCS Manager CLI is a command-line interface that provides a comprehensive set of commands to manage all aspects of the Cisco Unified Computing System. This includes configuring the fabric interconnects, ports, port channels, communication services, authentication, organizations, role-based access control, DNS servers, system-related policies, licenses, virtual interfaces, VLANs, LAN pin groups, MAC pools, quality of service, network-related policies, upstream disjoint layer-2 networks, named VSANs, SAN pin groups, WWN pools, storage-related policies, server-related pools, server-related policies, server boot, service profiles, storage profiles, and power management.
Advertisement
Advertisement
C H A P T E R
15
VLANs
•
•
•
VLAN Port Limitations, page 237
•
Configuring Named VLANs, page 239
•
Configuring Private VLANs, page 244
•
•
Viewing the VLAN Port Count, page 251
•
VLAN Port Count Optimization, page 251
•
•
Named VLANs
A named VLAN creates a connection to a specific external LAN. The VLAN isolates traffic to that external
LAN, including broadcast traffic.
The name that you assign to a VLAN ID adds a layer of abstraction that allows you to globally update all servers associated with service profiles that use the named VLAN. You do not need to reconfigure the servers individually to maintain communication with the external LAN.
You can create more than one named VLAN with the same VLAN ID. For example, if servers that host business services for HR and Finance need to access the same external LAN, you can create VLANs named
HR and Finance with the same VLAN ID. Then, if the network is reconfigured and Finance is assigned to a different LAN, you only have to change the VLAN ID for the named VLAN for Finance.
In a cluster configuration, you can configure a named VLAN to be accessible only to one fabric interconnect or to both fabric interconnects.
Cisco UCS Manager CLI Configuration Guide, Release 2.2
235
VLANs
Private VLANs
Guidelines for VLAN IDs
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
VLAN 4048 is user configurable. However, Cisco UCS Manager uses VLAN 4048 for the following default values. If you want to assign 4048 to a VLAN, you must reconfigure these values:
• After an upgrade to Cisco UCS, Release 2.0—The FCoE storage port native VLAN uses VLAN 4048 by default. If the default FCoE VSAN was set to use VLAN 1 before the upgrade, you must change it to a VLAN ID that is not used or reserved. For example, consider changing the default to 4049 if that
VLAN ID is not in use.
• After a fresh install of Cisco UCS, Release 2.0—The FCoE VLAN for the default VSAN uses VLAN
4048 by default. The FCoE storage port native VLAN uses VLAN 4049.
The VLAN name is case sensitive.
Private VLANs
A private VLAN (PVLAN) partitions the Ethernet broadcast domain of a VLAN into subdomains, and allows you to isolate some ports. Each subdomain in a PVLAN includes a primary VLAN and one or more secondary
VLANs. All secondary VLANs in a PVLAN must share the same primary VLAN. The secondary VLAN ID differentiates one subdomain from another.
Isolated and Community VLANs
All secondary VLANs in a Cisco UCS domain can be Isolated or Community VLANs.
Note
You cannot configure an isolated VLAN to use with a regular VLAN.
Ports on Isolated VLANs
Communications on an isolated VLAN can only use the associated port in the primary VLAN. These ports are isolated ports and are not configurable in Cisco UCS Manager. A primary VLAN can have only one isolated VLAN, but multiple isolated ports on the same isolated VLAN are allowed. These isolated ports cannot communicate with each other. The isolated ports can communicate only with a regular trunk port or promiscuous port that allows the isolated VLAN.
An isolated port is a host port that belongs to an isolated secondary VLAN. This port has complete isolation from other ports within the same private VLAN domain. PVLANs block all traffic to isolated ports except traffic from promiscuous ports. Traffic received from an isolated port is forwarded only to promiscuous ports.
236
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
VLAN Port Limitations
You can have more than one isolated port in a specified isolated VLAN. Each port is completely isolated from all other ports in the isolated VLAN.
Guidelines for Uplink Ports
When you create PVLANs, use the following guidelines:
• The uplink Ethernet port channel cannot be in promiscuous mode.
• Each primary VLAN can have only one isolated VLAN.
• VIFs on VNTAG adapters can have only one isolated VLAN.
Guidelines for VLAN IDs
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
VLAN 4048 is user configurable. However, Cisco UCS Manager uses VLAN 4048 for the following default values. If you want to assign 4048 to a VLAN, you must reconfigure these values:
• After an upgrade to Cisco UCS, Release 2.0—The FCoE storage port native VLAN uses VLAN 4048 by default. If the default FCoE VSAN was set to use VLAN 1 before the upgrade, you must change it to a VLAN ID that is not used or reserved. For example, consider changing the default to 4049 if that
VLAN ID is not in use.
• After a fresh install of Cisco UCS, Release 2.0—The FCoE VLAN for the default VSAN uses VLAN
4048 by default. The FCoE storage port native VLAN uses VLAN 4049.
The VLAN name is case sensitive.
VLAN Port Limitations
Cisco UCS Manager limits the number of VLAN port instances that you can configure under border and server domains on a fabric interconnect.
Types of Ports Included in the VLAN Port Count
The following types of ports are counted in the VLAN port calculation:
• Border uplink Ethernet ports
• Border uplink Ether-channel member ports
• FCoE ports in a SAN cloud
Cisco UCS Manager CLI Configuration Guide, Release 2.2
237
VLANs
VLAN Port Limitations
• Ethernet ports in a NAS cloud
• Static and dynamic vNICs created through service profiles
• VM vNICs created as part of a port profile in a hypervisor in hypervisor domain
Based on the number of VLANs configured for these ports, Cisco UCS Manager tracks the cumulative count of VLAN port instances and enforces the VLAN port limit during validation. Cisco UCS Manager reserves some pre-defined VLAN port resources for control traffic. These include management VLANs configured under HIF and NIF ports.
VLAN Port Limit Enforcement
Cisco UCS Manager validates VLAN port availability during the following operations:
• Configuring and unconfiguring border ports and border port channels
• Adding or removing VLANs from a cloud
• Configuring or unconfiguring SAN or NAS ports
• Associating or disassociating service profiles that contain configuration changes
• Configuring or unconfiguring VLANs under vNICs or vHBAs
• Receiving creation or deletion notifications from a VMWare vNIC and from an ESX hypervisor
Note
This is outside the control of the Cisco UCS Manager.
• Fabric interconnect reboot
• Cisco UCS Manager upgrade or downgrade
Cisco UCS Manager strictly enforces the VLAN port limit on service profile operations. If Cisco UCS Manager detects that the VLAN port limit is exceeded, the service profile configuration fails during deployment.
Exceeding the VLAN port count in a border domain is less disruptive. When the VLAN port count is exceeded in a border domain Cisco UCS Manager changes the allocation status to Exceeded. To change the status back to Available, complete one of the following actions:
• Unconfigure one or more border ports
• Remove VLANs from the LAN cloud
• Unconfigure one or more vNICs or vHBAs
238
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Configuring Named VLANs
Configuring Named VLANs
Creating a Named VLAN Accessible to Both Fabric Interconnects (Uplink
Ethernet Mode)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink # create vlan
vlan-name vlan-id
Purpose
Enters Ethernet uplink mode.
Creates a named VLAN, specifies the VLAN name and
VLAN ID, and enters Ethernet uplink VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-uplink/fabric/vlan # set
sharing {isolated | none | primary}
Sets the sharing for the specified VLAN.
This can be one of the following:
• isolated —This is a secondary VLAN associated with a primary VLAN. This VLAN is private.
• none —This VLAN does not have any secondary or private VLANs.
• primary —This VLAN can have one or more secondary VLANs.
UCS-A /eth-uplink/vlan #
commit-buffer
Commits the transaction to the system configuration.
The following example creates a named VLAN for both fabric interconnects, names the VLAN accounting, assigns the VLAN ID 2112, sets the sharing to none, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan accounting 2112
UCS-A /eth-uplink/vlan* #
set sharing none
Cisco UCS Manager CLI Configuration Guide, Release 2.2
239
VLANs
Creating a Named VLAN Accessible to Both Fabric Interconnects (Ethernet Storage Mode)
UCS-A /eth-uplink/vlan* #
commit-buffer
UCS-A /eth-uplink/vlan #
Creating a Named VLAN Accessible to Both Fabric Interconnects (Ethernet
Storage Mode)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Command or Action
UCS-A# scope eth-storage
UCS-A /eth-storage # create vlan
vlan-name vlan-id
UCS-A /eth-storage/vlan # create
member-port {a | b} slot-id port-id
UCS-A /eth-storage/vlan/member-port #
commit-buffer
Purpose
Enters Ethernet storage mode.
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet storage VLAN mode.
The VLAN name is case sensitive.
Creates a member port for the specified VLAN on the specified fabric.
Commits the transaction to the system configuration.
The following example creates a named VLAN for both fabric interconnects, names the VLAN accounting, assigns the VLAN ID 2112, creates a member port on slot 2, port 20, and commits the transaction:
UCS-A#
scope eth-storage
UCS-A /eth-storage #
create vlan accounting 2112
UCS-A /eth-storage/vlan* #
create member-port a 2 20
UCS-A /eth-storage/vlan/member-port* #
commit-buffer
UCS-A /eth-storage/vlan/member-port #
240
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Creating a Named VLAN Accessible to One Fabric Interconnect (Uplink Ethernet Mode)
Creating a Named VLAN Accessible to One Fabric Interconnect (Uplink Ethernet
Mode)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-uplink
Purpose
Enters Ethernet uplink mode.
UCS-A /eth-uplink # scope fabric
{a | b}
Enters Ethernet uplink fabric interconnect mode for the specified fabric interconnect (A or B).
UCS-A /eth-uplink/fabric # create
vlan vlan-name vlan-id
Creates a named VLAN, specifies the VLAN name and
VLAN ID, and enters Ethernet uplink fabric interconnect
VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-uplink/fabric/vlan # set
sharing {isolated | none | primary}
Sets the sharing for the specified VLAN.
This can be one of the following:
• isolated —This is a secondary VLAN associated with a primary VLAN. This VLAN is private.
• none —This VLAN does not have any secondary or private VLANs.
• primary —This VLAN can have one or more secondary VLANs.
UCS-A /eth-uplink/fabric/vlan #
commit-buffer
Commits the transaction to the system configuration.
The following example creates a named VLAN for fabric interconnect A, names the VLAN finance, assigns the VLAN ID 3955, sets the sharing to none, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
scope fabric a
UCS-A /eth-uplink/fabric #
create vlan finance 3955
Cisco UCS Manager CLI Configuration Guide, Release 2.2
241
VLANs
Creating a Named VLAN Accessible to One Fabric Interconnect (Ethernet Storage Mode)
UCS-A /eth-uplink/fabric/vlan* #
set sharing none
UCS-A /eth-uplink/fabric/vlan* #
commit-buffer
UCS-A /eth-uplink/fabric/vlan #
Creating a Named VLAN Accessible to One Fabric Interconnect (Ethernet
Storage Mode)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-storage
Purpose
Enters Ethernet storage mode.
UCS-A /eth-storage # scope fabric {a |
b}
Enters Ethernet storage fabric interconnect mode for the specified fabric interconnect.
UCS-A /eth-storage/fabric # create vlan
vlan-name vlan-id
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet storage fabric interconnect VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-storage/vlan # create
member-port {a | b} slot-id port-id
Creates a member port for the specified VLAN on the specified fabric.
UCS-A
/eth-storage/fabric/vlan/member-port #
commit-buffer
Commits the transaction to the system configuration.
The following example creates a named VLAN for fabric interconnect A, names the VLAN finance, assigns the VLAN ID 3955, creates a member port on slot 2, port 20, and commits the transaction:
UCS-A#
scope eth-storage
UCS-A /eth-storage #
scope fabric a
UCS-A /eth-storage/fabric #
create vlan finance 3955
UCS-A /eth-storage/fabric/vlan* #
create member-port a 2 20
UCS-A /eth-storage/fabric/vlan/member-port* #
commit-buffer
UCS-A /eth-storage/fabric/vlan/member-port #
242
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Deleting a Named VLAN
Deleting a Named VLAN
If Cisco UCS Manager includes a named VLAN with the same VLAN ID as the one you delete, the VLAN is not removed from the fabric interconnect configuration until all named VLANs with that ID are deleted.
If you are deleting a private primary VLAN, ensure that you reassign the secondary VLANs to another working primary VLAN.
Before You Begin
Before you delete a VLAN from a fabric interconnect, ensure that the VLAN was removed from all vNICs and vNIC templates.
Note
If you delete a VLAN that is assigned to a vNIC or vNIC template, the vNIC might allow that VLAN to flap.
Procedure
Step 1
Step 2
Step 3
Step 4
Command or Action
UCS-A# scope eth-uplink
Purpose
Enters Ethernet uplink mode.
UCS-A /eth-uplink # scope fabric{a |
b}
(Optional)
Enters Ethernet uplink fabric mode. Use this command when you want to delete a named VLAN only from the specified fabric (a or b).
UCS-A /eth-uplink # delete vlan
vlan-name
UCS-A /eth-uplink # commit-buffer
Deletes the specified named VLAN.
Commits the transaction to the system configuration.
The following example deletes a named VLAN accessible to both fabric interconnects and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
delete vlan accounting
UCS-A /eth-uplink* #
commit-buffer
UCS-A /eth-uplink #
The following example deletes a named VLAN accessible to one fabric interconnect and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
scope fabric a
UCS-A /eth-uplink/fabric #
delete vlan finance
UCS-A /eth-uplink/fabric* #
commit-buffer
UCS-A /eth-uplink/fabric #
Cisco UCS Manager CLI Configuration Guide, Release 2.2
243
VLANs
Configuring Private VLANs
Configuring Private VLANs
Creating a Primary VLAN for a Private VLAN (Accessible to Both Fabric
Interconnects)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Command or Action
UCS-A# scope eth-uplink
Purpose
Enters Ethernet uplink mode.
UCS-A /eth-uplink # create vlan
vlan-name vlan-id
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet uplink VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-uplink/vlan # set sharing
primary
Sets the VLAN as the primary VLAN.
UCS-A /eth-uplink/vlan # commit-buffer Commits the transaction to the system configuration.
The following example creates a named VLAN for both fabric interconnects, names the VLAN accounting, assigns the VLAN ID 2112, makes this VLAN the primary VLAN, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan accounting 2112
UCS-A /eth-uplink/vlan* #
set sharing primary
UCS-A /eth-uplink/vlan* #
commit-buffer
UCS-A /eth-uplink/vlan #
244
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Creating a Primary VLAN for a Private VLAN (Accessible to One Fabric Interconnect)
Creating a Primary VLAN for a Private VLAN (Accessible to One Fabric
Interconnect)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink # scope fabric {a |
b}
Purpose
Enters Ethernet uplink mode.
Enters Ethernet uplink fabric interconnect mode for the specified fabric interconnect.
UCS-A /eth-uplink/fabric # create vlan
vlan-name vlan-id
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet uplink fabric interconnect VLAN mode.
The VLAN name is case sensitive.
Sets the VLAN as the primary VLAN.
UCS-A /eth-uplink/fabric/vlan # set
sharing primary
UCS-A /eth-uplink/fabric/vlan #
commit-buffer
Commits the transaction to the system configuration.
The following example creates a named VLAN for fabric interconnect A, names the VLAN finance, assigns the VLAN ID 3955, makes this VLAN the primary VLAN, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
scope fabric a
UCS-A /eth-uplink/fabric #
create vlan finance 3955
UCS-A /eth-uplink/fabric/vlan* #
set sharing primary
UCS-A /eth-uplink/fabric/vlan* #
commit-buffer
UCS-A /eth-uplink/fabric/vlan #
Cisco UCS Manager CLI Configuration Guide, Release 2.2
245
VLANs
Creating a Secondary VLAN for a Private VLAN (Accessible to Both Fabric Interconnects)
Creating a Secondary VLAN for a Private VLAN (Accessible to Both Fabric
Interconnects)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink # create vlan
vlan-name vlan-id
Purpose
Enters Ethernet uplink mode.
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet uplink VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-uplink/vlan # set sharing
isolated
UCS-A /eth-uplink/vlan # set
pubnwname primary-vlan-name
Sets the VLAN as the secondary VLAN.
Specifies the primary VLAN to be associated with this secondary VLAN.
UCS-A /eth-uplink/vlan # commit-buffer Commits the transaction to the system configuration.
The following example creates a named VLAN for both fabric interconnects, names the VLAN accounting, assigns the VLAN ID 2112, makes this VLAN the secondary VLAN, associates the secondary VLAN with the primary VLAN, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan accounting 2112
UCS-A /eth-uplink/vlan* #
set sharing isolated
UCS-A /eth-uplink/vlan* #
set pubnwname pvlan1000
UCS-A /eth-uplink/vlan* #
commit-buffer
UCS-A /eth-uplink/vlan #
246
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Creating a Secondary VLAN for a Private VLAN (Accessible to One Fabric Interconnect)
Creating a Secondary VLAN for a Private VLAN (Accessible to One Fabric
Interconnect)
Important
You cannot create VLANs with IDs from 4030 to 4047. This range of VLAN IDs is reserved.
The VLAN IDs you specify must also be supported on the switch that you are using. For example, on
Cisco Nexus 5000 Series switches, the VLAN ID range from 3968 to 4029 is reserved. Before you specify the VLAN IDs in Cisco UCS Manager, make sure that the same VLAN IDs are available on your switch.
VLANs in the LAN cloud and FCoE VLANs in the SAN cloud must have different IDs. Using the same
ID for a VLAN and an FCoE VLAN in a VSAN results in a critical fault and traffic disruption for all vNICs and uplink ports using that VLAN. Ethernet traffic is dropped on any VLAN which has an ID that overlaps with an FCoE VLAN ID.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Command or Action
UCS-A# scope eth-uplink
Purpose
Enters Ethernet uplink mode.
UCS-A /eth-uplink # scope fabric {a | b} Enters Ethernet uplink fabric interconnect mode for the specified fabric interconnect (A or B).
UCS-A /eth-uplink/fabric # create vlan
vlan-name vlan-id
Creates a named VLAN, specifies the VLAN name and VLAN ID, and enters Ethernet uplink fabric interconnect VLAN mode.
The VLAN name is case sensitive.
UCS-A /eth-uplink/vlan # set sharing
isolated
UCS-A /eth-uplink/vlan # set
pubnwname primary-vlan-name
UCS-A
/eth-uplink/fabric/vlan/member-port #
commit-buffer
Sets the VLAN as the secondary VLAN.
Specifies the primary VLAN to be associated with this secondary VLAN.
Commits the transaction to the system configuration.
The following example creates a named VLAN for fabric interconnect A, names the VLAN finance, assigns the VLAN ID 3955, makes this VLAN the secondary VLAN, associates the secondary VLAN with the primary
VLAN, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
scope fabric a
UCS-A /eth-uplink/fabric #
create vlan finance 3955
UCS-A /eth-uplink/fabric/vlan* #
set sharing isolated
UCS-A /eth-uplink/fabric/vlan* #
set pubnwname pvlan1000
UCS-A /eth-uplink/fabric/vlan* #
commit-buffer
UCS-A /eth-uplink/fabric/vlan #
Cisco UCS Manager CLI Configuration Guide, Release 2.2
247
VLANs
Community VLANs
Community VLANs
Cisco UCS Manager supports Community VLANs in UCS Fabric Interconnects. Community ports communicate with each other and with promiscuous ports. Community ports have Layer 2 isolation from all other ports in other communities, or isolated ports within the PVLAN. Broadcasts are transmitted between the community ports associated with the PVLAN only and the other promiscuous ports. A promiscuous port can communicate with all interfaces, including the isolated and community ports within a PVLAN.
Creating a Community VLAN
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-uplink.
Purpose
Enters Ethernet uplink mode.
UCS-A# /eth-uplink/ # create vlan ID .
Create a VLAN with the specified VLAN
ID.
.
UCS-A# /eth-uplink/ vlan # set sharing Type Specifies the vlan type.
UCS-A# /eth-uplink/ vlan # set pubnwname
Name .
Specifies the primary vlan association.
UCS-A# /eth-uplink/ vlan # commit-buffer.
Commits the transaction to the system configuration.
The following example shows how to create a Community VLAN:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan vlan203 203
UCS-A /eth-uplink/vlan* #
set sharing community
UCS-A /eth-uplink/vlan* #
set pubname vlan200
UCS-A /eth-uplink/vlan* #
commit-buffer
UCS-A /eth-uplink/vlan* #
exit
UCS-A /vlan-group #
Allowing Community VLANs on vNICs
Procedure
Step 1
Command or Action
UCS-A# scope org org-name
Purpose
Enters the organization mode for the specified organization. To enter the root organization mode, enter / as the org-name.
248
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Allowing PVLAN on Promiscuous Access or Trunk Port
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A /org # scope service-profile
profile-name
Purpose
Commits the transaction to the system configuration.
UCS-A /org/service-profile # scope vnic
vnic-name
UCS-A /org/service-profile/vnic # create
eth-if community-vlan-name
Enters command mode for the specified vNIC.
Allows the community VLAN to access the specified vNIC.
UCS-A /org/service-profile/vnic #
commit-buffer
Commits the transaction to the system configuration.
The following example shows how to assign the community VLAN cVLAN101 to the vNIC vnic_1 and commits the transaction.
UCS-A#
scope org /
UCS-A /org #
scope service-profile GSP1
UCS-A /org/service-profile #
scope vnic vnic_1
UCS-A /org/service-profile/vnic #
create eth-if cVLAN101
UCS-A /org/service-profile/vnic* #
commit-buffer
Allowing PVLAN on Promiscuous Access or Trunk Port
For a promiscuous access port, the isolated and community VLANs must be associated to the same primary
VLAN.
For a promiscuous trunk port, isolated and community VLANs belonging to different primary VLANs are allowed, as well as regular VLANs.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Command or Action
UCS-A # scope eth-storage
UCS-A /eth-storage/vlan # exit
UCS-A /eth-storage # scope vlan
comm-vlan-name
Purpose
Enters Ethernet storage mode.
UCS-A /eth-storage # scope vlan
iso-vlan-name
UCS-A /eth-storage/vlan # create
member-port fabric slot- num port- num
Enters the specified isolated VLAN.
Creates the member port for the specified fabric, assigns the slot number and port number, and enters member port configuration scope.
UCS-A /eth-storage/vlan/member-port # exit Returns to VLAN mode.
Returns to Ethernet storage mode.
Enters the specified community VLAN.
Cisco UCS Manager CLI Configuration Guide, Release 2.2
249
VLANs
Deleting a Community VLAN
Step 7
Step 8
Command or Action
UCS-A /eth-storage/vlan # create
member-port fabric slot- num port- num
UCS-A /eth-storage/vlan/member-port #
commit-buffer
Purpose
Creates the member port for the specified fabric, assigns the slot number and port number, and enters member port configuration scope.
Commits the transaction to the system configuration.
The following example shows how to assign the isolated and community associated with the same primary
VLAN to the same appliance port and commits the transaction.
UCS-A#
scope eth-storage
UCS-A /eth-storage #
scope vlan isovlan501
UCS-A /eth-storage/vlan #
create member-port a 1 2
UCS-A /eth-storage/vlan/member-port* #
exit
UCS-A /eth-storage/vlan* #
exit
UCS-A /eth-storage* #
scope vlan cvlan502
UCS-A /eth-storage/vlan* #
create member-port a 1 2
UCS-A /eth-storage/vlan/member-port* #
commit-buffer
UCS-A /eth-storage/vlan/member-port #
Deleting a Community VLAN
If Cisco UCS Manager includes a named VLAN with the same VLAN ID as the one you delete, the VLAN is not removed from the fabric interconnect configuration until all named VLANs with that ID are deleted.
If you are deleting a private primary VLAN, ensure that you reassign the secondary VLANs to another working primary VLAN.
Before You Begin
Before you delete a VLAN from a fabric interconnect, ensure that the VLAN was removed from all vNICs and vNIC templates.
Note
If you delete a VLAN that is assigned to a vNIC or vNIC template, the vNIC might allow that VLAN to flap.
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink # scope fabric{a |
b}
Purpose
Enters Ethernet uplink mode.
(Optional)
Enters Ethernet uplink fabric mode. Use this command when you want to delete a named VLAN only from the specified fabric (a or b).
250
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Viewing the VLAN Port Count
Step 3
Step 4
Command or Action Purpose
UCS-A /eth-uplink # delete community
vlan vlan-name
Deletes the specified community VLAN.
UCS-A /eth-uplink # commit-buffer Commits the transaction to the system configuration.
The following example deletes a Community VLAN and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
delete commnity vlan vlan203
UCS-A /eth-uplink* #
commit-buffer
UCS-A /eth-uplink #
Viewing the VLAN Port Count
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope fabric-interconnect {a | b}
UCS-A /fabric-interconnect # show
vlan-port-count
Purpose
Enters fabric interconnect mode for the specified fabric interconnect.
Displays the VLAN port count.
The following example displays the VLAN port count for fabric interconnect A:
UCS-A#
scope fabric-interconnect a
UCS-A /fabric-interconnect #
show vlan-port-count
VLAN-Port Count:
VLAN-Port Limit
----------
6000
Access VLAN-Port Count
---------------
3
Border VLAN-Port Count
----------------
0
Alloc Status
----------
Available
VLAN Port Count Optimization
VLAN port count optimization enables mapping the state of multiple VLANs into a single internal state.
When you enable the VLAN port count optimization, Cisco UCS Manager logically groups VLANs based on the port VLAN membership. This grouping increases the port VLAN count limit. VLAN port count optimization also compresses the VLAN state and reduces the CPU load on the fabric interconnect. This reduction in the CPU load enables you to deploy more VLANs over more vNICs. Optimizing VLAN port count does not change any of the existing VLAN configuration on the vNICs.
VLAN port count optimization is disabled by default. You can enable or disable the option based on your requirements.
Cisco UCS Manager CLI Configuration Guide, Release 2.2
251
VLANs
Enabling Port VLAN Count Optimization
Important
• Enabling VLAN port count optimization increases the number of available VLAN ports for use. If the port VLAN count exceeds the maximum number of VLANs in a non-optimized state, you cannot disable the VLAN port count optimization.
• VLAN port count optimization is not supported in Cisco UCS 6100 Series fabric interconnect.
Enabling Port VLAN Count Optimization
Procedure
Step 1
Step 2
Step 3
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink# set
vlan-port-count-optimization enable
UCS-A /eth-uplink* # commit-buffer
Purpose
Enters Ethernet uplink mode.
Enables the vlan for port VLAN count optimization.
Commits the transaction to the system configuration.
The following example shows how to enable VLAN port count optimization:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
set vlan-port-count-optimization enable
UCS-A /eth-uplink* #
commit-buffer
UCS-A /eth-uplink#
Disabling Port VLAN Count Optimization
If you have more Port VLAN count than that is allowed in the non port VLAN port count optimization state, you cannot disable the optimization.
Procedure
Step 1
Step 2
Step 3
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink# set
vlan-port-count-optimization disable
UCS-A /eth-uplink # commit-buffer
Purpose
Enters Ethernet uplink mode.
Disables the port VLAN count optimization.
Commits the transaction to the system configuration.
252
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Viewing the Port VLAN Count Optimization Groups
The following example shows how to disable VLAN port count optimization:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
set vlan-port-count-optimization disable
UCS-A /eth-uplink* #
commit-buffer
UCS-A /eth-uplink#
Viewing the Port VLAN Count Optimization Groups
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope eth-uplink
UCS-A /eth-uplink# show
vlan-port-count-optimization group
Purpose
Enters Ethernet uplink mode.
Displays the vlan for port VLAN count optimization groups.
The following example shows port VLAN count optimization group in fabric a and b:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
show vlan-port-count-optimization group
VLAN Port Count Optimization Group:
Fabric ID Group ID VLAN ID
--------------
A 5
-------
6
A
A
B
B
5
5
10
10
7
8
100
101
VLAN Groups
VLAN groups allow you to group VLANs on Ethernet uplink ports, by function or by VLANs that belong to a specific network. You can define VLAN membership and apply the membership to multiple Ethernet uplink ports on the fabric interconnect.
Note
Cisco UCS Manager supports a maximum of 200 VLAN Groups. If Cisco UCS Manager determines that you create more than 200 VLAN groups, the system disables VLAN compression.
You can configure inband and out-of-band (OOB) VLAN groups to use to access the Cisco Integrated
Management Interface (CIMC) on blade and rack servers. Cisco UCS Manager supports OOB IPv4 and inband
IPv4 and IPv6 VLAN groups for use with the uplink interfaces or uplink port channels.
After you assign a VLAN to a VLAN group, any changes to the VLAN group are applied to all Ethernet uplink ports that are configured with the VLAN group. The VLAN group also enables you to identify VLAN overlaps between disjoint VLANs.
You can configure uplink ports under a VLAN group. When you configure an uplink port for a VLAN group, that uplink port will support all the VLANs that are part of the associated VLAN groups and individual VLANs that are associated with the uplink using LAN Uplinks Manager, if any. Further, any uplink that is not selected for association with that VLAN group will stop supporting the VLANs that are part of that VLAN group.
Cisco UCS Manager CLI Configuration Guide, Release 2.2
253
VLANs
Creating a VLAN Group
You can create VLAN groups from the LAN Cloud or from the LAN Uplinks Manager.
Creating a VLAN Group
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
UCS-A# scope eth-uplink.
Purpose
Enters Ethernet uplink mode.
The VLAN Group name is case sensitive.
UCS-A# /eth-uplink/ #create
vlan-groupName .
Create a VLAN group with the specified name.
This name can be between 1 and 32 alphanumeric characters. You cannot use spaces or any special characters other than - (hyphen), _ (underscore), :
(colon), and . (period), and you cannot change this name after the object is saved.
UCS-A# /eth-uplink/ vlan-group#create member-vlanID .
Adds the specified VLANs to the created VLAN group.
UCS-A# /eth-uplink/vlan-group
#create member-port
[member-port-channel] .
UCS-A#/vlan-group* #
commit-buffer.
Assigns the uplink Ethernet ports to the VLAN group.
Commits the transaction to the system configuration.
The following example shows how to create a VLAN group:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan-group eng
UCS-A /eth-uplink/vlan-group* #
create member-vlan 3
UCS-A /eth-uplink/vlan-group* #
commit-buffer
UCS-A /vlan-group #
Creating an Inband VLAN Group
Configure inband VLAN groups to provide access to remote users via an inband service profile.
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope eth uplink
UCS-A /eth-uplink # create vlan-group
inband-vlan-name
Purpose
Enters Ethernet uplink configuration mode.
Creates a VLAN group with the specified name and enters VLAN group configuration mode.
254
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Deleting a VLAN Group
Step 3
Step 4
Step 5
Step 6
Command or Action Purpose
UCS-A /eth-uplink/vlan-group # create
member-vlaninband-vlan-nameinband-vlan-id
Adds the specified VLAN to the VLAN group and enters VLAN group member configuration mode.
UCS-A /eth-uplink/vlan-group/member-vlan #
exit
Exits VLAN group member configuration mode.
UCS-A /eth-uplink/vlan-group # create
member-portfabricslot-numport-num
Creates the member port for the specified fabric, assigns the slot number, and port number and enters member port configuration.
UCS-A /eth-uplink/vlan-group/member-port #
commit-buffer
Commits the transaction.
The example below creates a VLAN group named inband-vlan-group, creates a member of the group named
Inband_VLAN and assigns VLAN ID 888, creates member ports for Fabric A and Fabric B, and commits the transaction:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
create vlan-group inband-vlan-group
UCS-A /eth-uplink/vlan-group* #
create member-vlan Inband_VLAN 888
UCS-A /eth-uplink/vlan-group/member-vlan* #
exit
UCS-A /eth-uplink/vlan-group* #
create member-port a 1 23
UCS-A /eth-uplink/vlan-group/member-port* #
exit
UCS-A /eth-uplink/vlan-group* #
create member-port b 1 23
UCS-A /eth-uplink/vlan-group/member-port* #
commit-buffer
UCS-A /eth-uplink/vlan-group/member-port #
exit
UCS-A /eth-uplink/vlan-group #
exit
What to Do Next
Assign the inband VLAN group to an inband service profile.
Deleting a VLAN Group
Procedure
Step 1
Step 2
Step 3
Command or Action
UCS-A# scope eth-uplink.
UCS-A# /eth-uplink/ #delete
vlan-groupName .
UCS-A#/eth-uplink* # commit-buffer.
Purpose
Enters Ethernet uplink mode.
Deletes the specified VLAN group.
Commits the transaction to the system configuration.
Cisco UCS Manager CLI Configuration Guide, Release 2.2
255
VLANs
Viewing VLAN Groups
The following example shows how to delete a VLAN group:
UCS-A#
scope eth-uplink
UCS-A /eth-uplink #
delete vlan-group eng
UCS-A /eth-uplink* #
commit-buffer
UCS-A /eth-uplink #
Viewing VLAN Groups
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope org
UCS-A /org # show vlan-group
Purpose
Enters Cisco UCS Manager organization.
Displays the available groups in the organization.
The following example shows the available VLAN groups in the root org:
UCS-A#
scope org
UCS-A# /org/#
show vlan-group
VLAN Group:
Name
---eng hr finance
VLAN Permissions
VLAN permissions restrict access to VLANs based on specified organizations and on the service profile organizations to which the VLANs belong. VLAN permissions also restrict the set of VLANs that you can assign to service profile vNICs. VLAN permissions is an optional feature and is disabled by default. You can enable or disable the feature based on your requirements. If you disable the feature, all of the VLANs are globally accessible to all organizations.
Note
If you enable the org permission in LAN > LAN Cloud > Global Policies > Org Permissions, when you create a VLAN, the Permitted Orgs for VLAN(s) option displays in the Create VLANs dialog box.
If you do not enable the Org Permissions, the Permitted Orgs for VLAN(s) option does not display.
Enabling the org permission allows you to specify the organizations for the VLAN. When you specify the organizations, the VLAN becomes available to that specific organization and all of the sub organizations below the structure. Users from other organizations cannot access this VLAN. You can also modify the VLAN permission anytime based on changes to your VLAN access requirements.
256
Cisco UCS Manager CLI Configuration Guide, Release 2.2
VLANs
Creating VLAN Permissions
Caution
When you assign the VLAN org permission to an organization at the root level, all sub organizations can access the VLANs. After assigning the org permission at the root level, and you change the permission for a VLAN that belongs to a sub organization, that VLAN becomes unavailable to the root level organization.
Creating VLAN Permissions
Procedure
Step 1
Step 2
Step 3
Command or Action
UCS-A# scope org.
UCS-A# /org/ #create
vlan-permitVLAN permission name.
UCS-A#/org* # commit-buffer.
Purpose
Enters the Cisco UCS Manager VLAN organization.
Creates the specified VLAN permission and assigns
VLAN access permission to the organization.
Commits the transaction to the system configuration.
The following example shows how to create a VLAN permission for an organization:
UCS-A#
scope org
UCS-A /org #
create vlan-permit dev
UCS-A /org* #
commit-buffer
UCS-A /org #
Deleting a VLAN Permission
Procedure
Step 1
Step 2
Step 3
Command or Action
UCS-A# scope org.
Purpose
Enters the Cisco UCS Manager VLAN organization.
UCS-A# /org/ #delete vlan-permitVLAN
permission name.
UCS-A#/org* # commit-buffer.
Deletes the access permission to the VLAN.
Commits the transaction to the system configuration.
The following example shows how to delete a VLAN permission from an organization:
UCS-A#
scope org
UCS-A /org #
delete vlan-permit dev
UCS-A /org* #
commit-buffer
UCS-A /org #
Cisco UCS Manager CLI Configuration Guide, Release 2.2
257
Viewing VLAN Permissions
Viewing VLAN Permissions
Procedure
Step 1
Step 2
Command or Action
UCS-A# scope org
UCS-A /org # show vlan-permit
Purpose
Enters Cisco UCS Manager organization.
Displays the available permissions in the organization.
The following example shows the VLAN groups that have permission to access this VLAN:
UCS-A#
scope org
UCS-A# /org/#
show vlan-permit
VLAN Group:
Name
---eng hr finance
VLANs
258
Cisco UCS Manager CLI Configuration Guide, Release 2.2
Download
Advertisement
Key features
Manages all aspects of Cisco Unified Computing System
Provides a comprehensive set of commands
Supports both standalone and cluster configurations
Offers a wide range of features for configuring network connectivity and storage
Includes advanced features for managing user accounts and roles
Provides detailed information about the system's configuration and status
Supports both IPv4 and IPv6 addressing
Offers a variety of tools for troubleshooting problems
Provides a secure and reliable way to manage the Cisco Unified Computing System
Frequently asked questions
You can configure a blade server to use a static IP address, a static IPv6 address, or the management IP pool. Refer to chapter 27 in the viewed document for instructions.
There are two main types of service profiles: service profiles that override server identity and service profiles that inherit server identity. Refer to chapter 31 in the viewed document for more information.
Cisco UCS offers several options for managing power, including power capping, power policies, and power groups. Refer to chapter 33 in the viewed document for instructions.
Cisco UCS Manager supports both Cisco UCS Manager-based and switch-based Fibre Channel zoning. Refer to chapter 25 in the viewed document for instructions.
Cisco UCS supports a variety of boot methods, including LAN boot, SAN boot, iSCSI boot, local device boot, and virtual media boot. Refer to chapter 29 in the viewed document for detailed instructions.