Friday, April 13, 2018

Cisco ASA – Active / Active Failover

Usually when I’m asked to setup Active/Active I cringe, not because its difficult, its simply because people assume active/active is better than active/standby. I hear comments like ‘we have paid for both firewalls lets use them’, or ‘I want to sweat both assets’.
The only real practical use cases I can think of for Active /Active are;
  • You have a multi-tenancy environment and want to offer your tenants failover firewall capability.
  • You have multiple LAN subnets and what to split them though different firewalls.
What Active/Active Wont Give You
Load balancing: It’s a firewall! If you want load balancing buy a load balancer! People assume because both firewalls are passing traffic, they must load balance, they don’t, in fact they don’t even pass traffic from the same subnet.
VPNS: Yes theres no VPNs with Active Active. (This is 100% the case up to an including version 9.0, after version 9.0 they have stopped saying it’s not supported, but don’t say it’s supported).

Deploy Cisco ASA in Active/Active Failover

Here’s what Im going to setup;
Active Active ASA
For a more ‘logical’ view heres what is actually being setup;
Logical Active Active ASA
1. Make sure the Licences are on the firewalls allow multiple contexts. and Active/Active, for 5510, 5512-X, and 5508-X that means Security Plus, for all other models a ‘base’ licence is required. (Note: This CANNOT be done on an ASA 5505 or 5506-X).
ciscoasa(config)# show version

Cisco Adaptive Security Appliance Software Version 8.4(2) 

——OUTPUT REMOVED FOR THE SAKE OF BREVITY—

Failover                          : Active/Active  perpetual
VPN-DES                           : Enabled        perpetual
VPN-3DES-AES                      : Disabled       perpetual
Security Contexts                 : 5              perpetual
GTP/GPRS                          : Disabled       perpetual

——OUTPUT REMOVED FOR THE SAKE OF BREVITY—

Configuration last modified by enable_15 at 08:04:40.249 UTC Wed Oct 14 2015
ciscoasa(config)#

2. Put the firewalls in Multiple context mode.
ciscoasa(config)# mode multiple 
WARNING: This command will change the behavior of the device
WARNING: This command will initiate a Reboot
Proceed with change mode? [confirm] 
Convert the system configuration? [confirm] 
!
The old running configuration file will be written to flash

Converting the configuration - this may take several minutes for a large configuration

The admin context configuration will be written to flash

The new running configuration file was written to flash
Security context mode: multiple 
3. Let it reboot.
4. Make sure the firewall is in routed mode, and multiple context mode, repeat on the other firewall.
ciscoasa> enable
Password: *********
ciscoasa# show mode
Security context mode: multiple 
ciscoasa# show firewall
Firewall mode: Router
ciscoasa#
5. Once ASA1 is backup give it a sensible hostname, and ensure all the physical interfaces (and any sub interfaces) are NOT shutdown, and add then to the relevant VLAN (they are shut down by default).
ciscoasa(config)# hostname PHYSICAL-ASA    
PHYSICAL-ASA(config)# interface gigabitEthernet 0
PHYSICAL-ASA(config-if)# no shut
PHYSICAL-ASA(config)# interface gigabitEthernet 0.1
PHYSICAL-ASA(config-subif)# no shut
PHYSICAL-ASA(config-subif)# vlan 800
PHYSICAL-ASA(config)# interface gigabitEthernet 0.2
PHYSICAL-ASA(config-subif)# no shut
PHYSICAL-ASA(config-subif)# vlan 900
PHYSICAL-ASA(config)# interface gigabitEthernet 1
PHYSICAL-ASA(config-if)# no shut
PHYSICAL-ASA(config-if)# interface gigabitEthernet 1.1
PHYSICAL-ASA(config-subif)# no shut
PHYSICAL-ASA(config-subif)# vlan 100
PHYSICAL-ASA(config-subif)# interface gigabitEthernet 1.2
PHYSICAL-ASA(config-subif)# no shut
PHYSICAL-ASA(config-subif)# vlan 200
PHYSICAL-ASA(config-subif)# exit
PHYSICAL-ASA(config)# exit
PHYSICAL-ASA# 
6. Failover link NEEDS to be configured and used by the SYTEM Context, so its configured here. (Note: I’m using the same physical interface for LAN and Stateful failover information).
PHYSICAL-ASA(config)# failover lan unit primary
PHYSICAL-ASA(config)# failover lan interface FAILOVER GigabitEthernet2
INFO: Non-failover interface config is cleared on GigabitEthernet2 and its sub-interfaces
PHYSICAL-ASA(config)# failover link FAILOVER GigabitEthernet2
PHYSICAL-ASA(config)# failover interface ip FAILOVER 172.16.1.1 255.255.255.0 standby 172.16.1.2
PHYSICAL-ASA(config)#
7. You can only have TWO failover groups (you can have many contexts, depending on the licence on your firewall).
PHYSICAL-ASA(config)# failover group 1
PHYSICAL-ASA(config-fover-group)# polltime interface msec 500 holdtime 5
PHYSICAL-ASA(config-fover-group)# primary 
PHYSICAL-ASA(config-fover-group)# preempt 100
PHYSICAL-ASA(config-fover-group)# exit
PHYSICAL-ASA(config)# failover group 2
PHYSICAL-ASA(config-fover-group)# polltime interface msec 500 holdtime 5
PHYSICAL-ASA(config-fover-group)# secondary 
PHYSICAL-ASA(config-fover-group)# preempt 200
Note: Unlike Active/Passive the ASA can preempt and ‘fail-back’ automatically.
8. Setup and assign your CONTEXTS (virtual firewalls), to these groups.
PHYSICAL-ASA(config)# admin-context admin    
PHYSICAL-ASA(config)# context admin
PHYSICAL-ASA(config-ctx)# config-url disk0:/admin.cfg

Cryptochecksum (changed): d9951253 3b82d2ce 840166f8 ccd3d7f1 
INFO: Context admin was created with URL disk0:/admin.cfg
INFO: Admin context will take some time to come up .... please wait.
PHYSICAL-ASA(config-ctx)# context vASA1
Creating context 'vASA1'... Done. (2)
PHYSICAL-ASA(config-ctx)# allocate-interface GigabitEthernet1.1 inside_vASA1
PHYSICAL-ASA(config-ctx)# allocate-interface GigabitEthernet0.1 outside_vASA1
PHYSICAL-ASA(config-ctx)# config-url disk0:/vASA1.cfg

WARNING: Could not fetch the URL disk0:/vASA1.cfg
INFO: Creating context with default config
PHYSICAL-ASA(config-ctx)# join-failover-group 1
PHYSICAL-ASA(config-ctx)# context vASA2
Creating context 'vASA2'... Done. (3)
PHYSICAL-ASA(config-ctx)# allocate-interface GigabitEthernet1.2 inside_vASA2 
PHYSICAL-ASA(config-ctx)# allocate-interface GigabitEthernet0.2 outside_vASA2
PHYSICAL-ASA(config-ctx)# config-url disk0:/vASA2.cfg                        

WARNING: Could not fetch the URL disk0:/vASA2.cfg
INFO: Creating context with default config
PHYSICAL-ASA(config-ctx)# join-failover-group 2
The following will show you a summary of the contexts.
PHYSICAL-ASA(config)# show run | b context
admin-context admin
context admin
  config-url disk0:/admin.cfg
!

context vASA1
  allocate-interface GigabitEthernet0.1 outside_vASA1 
  allocate-interface GigabitEthernet1.1 inside_vASA1 
  config-url disk0:/vASA1.cfg
  join-failover-group 1
!

context vASA2
  allocate-interface GigabitEthernet0.2 outside_vASA2 
  allocate-interface GigabitEthernet1.2 inside_vASA2 
  config-url disk0:/vASA2.cfg
  join-failover-group 2
!
10. Now configure vASA1.
PHYSICAL-ASA(config)# changeto context vASA1
PHYSICAL-ASA/vASA1(config)# interface outside_vASA 1
PHYSICAL-ASA/vASA1(config-if)# nameif outside
INFO: Security level for "outside" set to 0 by default.
PHYSICAL-ASA/vASA1(config-if)# ip address 123.123.123.123 255.255.255.0 standby 123.123.123.124
PHYSICAL-ASA/vASA1(config-if)# no shut
PHYSICAL-ASA/vASA1(config)# interface inside_vASA 1
PHYSICAL-ASA/vASA1(config-if)# nameif inside
INFO: Security level for "inside" set to 100 by default.
PHYSICAL-ASA/vASA1(config-if)# ip address 10.5.100.1 255.255.255.0 standby 10.5.200.2
PHYSICAL-ASA/vASA1(config-if)# no shut
PHYSICAL-ASA/vASA1(config-if)# exit
PHYSICAL-ASA/vASA1(config)# route outside 0.0.0.0 0.0.0.0 123.123.123.1
PHYSICAL-ASA/vASA1(config)# monitor-interface inside 
PHYSICAL-ASA/vASA1(config)# monitor-interface outside
PHYSICAL-ASA/vASA1(config)# object network obj_any
PHYSICAL-ASA/vASA1(config-network-object)# subnet 0.0.0.0 0.0.0.0
PHYSICAL-ASA/vASA1(config-network-object)# nat (inside,outside) dynamic interface
PHYSICAL-ASA/vASA1(config-network-object)# exit
PHYSICAL-ASA/vASA1(config)# exit
PHYSICAL-ASA/vASA1# 
11. Now configure vASA2.
PHYSICAL-ASA/vASA1(config)# changeto context vASA2
PHYSICAL-ASA/vASA2(config)# interface inside_vASA 2
PHYSICAL-ASA/vASA2(config-if)# nameif inside
INFO: Security level for "inside" set to 100 by default.       
PHYSICAL-ASA/vASA2(config-if)# ip address 10.6.200.1 255.255.255.0 standby 10.6.200.2
PHYSICAL-ASA/vASA2(config-if)# no shut              
PHYSICAL-ASA/vASA2(config)# interface outside_vASA 2
PHYSICAL-ASA/vASA2(config-if)# nameif outside
INFO: Security level for "outside" set to 0 by default.
PHYSICAL-ASA/vASA2(config-if)# ip address 120.120.120.120 255.255.255.0 standby 120.120.120.122
PHYSICAL-ASA/vASA2(config-if)# exit
PHYSICAL-ASA/vASA2(config)# route outside 0.0.0.0 0.0.0.0 120.120.120.1
PHYSICAL-ASA/vASA2(config)# object network obj_any
PHYSICAL-ASA/vASA2(config-network-object)# subnet 0.0.0.0 0.0.0.0
PHYSICAL-ASA/vASA2(config-network-object)# nat (inside,outside) dynamic interface
PHYSICAL-ASA/vASA2(config-network-object)# exit
PHYSICAL-ASA/vASA2(config)# 
12. Go back the the System context and save ALL the changes.
PHYSICAL-ASA/vASA2(config)# changeto system 
PHYSICAL-ASA(config)# wr mem all
Building configuration...
Saving context :           system : (000/003 Contexts saved) 
Cryptochecksum: e63d00e3 18224da1 be9d77c6 27c6e54d 

2109 bytes copied in 0.300 secs
Saving context :            admin : (001/003 Contexts saved) 
Cryptochecksum: f2f07827 f2784851 89925ac1 86c1e96f 

974 bytes copied in 0.330 secs
Saving context :            vASA1 : (002/003 Contexts saved) 
Cryptochecksum: 037e3a39 fe10e4d0 ff72d306 36fcf1ed 

1930 bytes copied in 0.330 secs
Saving context :            vASA2 : (003/003 Contexts saved) 
Cryptochecksum: e9024f22 53ad6316 70f7ccad 4394c81c 

1879 bytes copied in 0.230 secs
[OK]                                                         
PHYSICAL-ASA(config)# 
Note: Configuration on the main (physical) firewall is complete, the ‘failover’ configuration needs to now be setup on the second physical ASA.
13. On the ’Secondary’ Physical ASA.
ciscoasa# configure terminal 
ciscoasa(config)# interface gigabitEthernet 0
ciscoasa(config-if)# no shut
ciscoasa(config-if)# interface gigabitEthernet 0.1
ciscoasa(config-subif)# no shut
ciscoasa(config-subif)# vlan 800
ciscoasa(config-subif)# interface gigabitEthernet 0.2
ciscoasa(config-subif)# no shut
ciscoasa(config-subif)# vlan 900
ciscoasa(config-subif)# interface gigabitEthernet 1
ciscoasa(config-if)# no shut
ciscoasa(config-if)# interface gigabitEthernet 1.1
ciscoasa(config-subif)# no shut
ciscoasa(config-subif)# vlan 100
ciscoasa(config-subif)# interface gigabitEthernet 1.2
ciscoasa(config-subif)# no shut
ciscoasa(config-subif)# vlan 200
ciscoasa(config-subif)# exit
ciscoasa(config)# failover lan unit secondary 
ciscoasa(config)# failover lan interface FAILOVER GigabitEthernet2       
INFO: Non-failover interface config is cleared on GigabitEthernet2 and its sub-interfaces
ciscoasa(config)# failover link FAILOVER GigabitEthernet2                     
ciscoasa(config)# failover interface ip FAILOVER 172.16.1.1 255.255.255.0 standby 172.16.1.2
ciscoasa(config)# 
14. Remember failover is off by default, and we have not switched it on, this needs to be done on both of the physical ASA’s (primary and secondary). Note: Make sure the ‘failover’ interface is NOT in a shut down state first!
Secondary


ciscoasa(config)# interface GigabitEthernet2
ciscoasa(config)# no shut
ciscoasa(config)# failover
ciscoasa(config)# 

Primary

PHYSICAL-ASA(config)# int gigabitEthernet 2
PHYSICAL-ASA(config-if)# no shut
PHYSICAL-ASA(config)# failover
PHYSICAL-ASA(config)#
Note: If building in GNS3 sometimes you need to put a switch in the middle of the ‘backup link’ or the firewalls don’t detect each other!
17. Top Tip: Remember that you need to make the changes on the active firewall context in the correct failover group. Change the firewall prompt to show you all this information.
PHYSICAL-ASA# conf t
PHYSICAL-ASA(config)# prompt hostname context priority state
PHYSICAL-ASA/pri/act(config)# 

Testing Active/Active Failover

If you change to vASA1 (notice it’s active).
PHYSICAL-ASA/pri/act(config)# changeto context vASA1
PHYSICAL-ASA/vASA1/pri/act(config)# 
Now change to vASA2, (This ones in standby so DONT make changes here or they wont get replicated / saved).
PHYSICAL-ASA/vASA1/pri/act(config)# changeto context vASA2
PHYSICAL-ASA/vASA2/pri/stby(config)# 
Note: Moral of the story is you need to be aware what physical firewall you are on (primary or secondary) what mode you are in (active or standby) and what context you are in (vASA1 or vASA2). So in this example to make a change to vASA2 you would need to go to Secondary/Standby/vASA2 to edit the active firewall, (confusing eh! That’s why I change the firewall prompt).
Now you will want to test things, probably by pinging, don’t forget ICMP is not enabled by default an you will need to enable it, (in each context).
vASA1 (as specified above), make sure it says ‘act’ on the end of the prompt.

PHYSICAL-ASA/pri/act(config)# changeto context vASA1
PHYSICAL-ASA/vASA1/pri/act(config)# policy-map global_policy
PHYSICAL-ASA/vASA1/pri/act(config-pmap)# class inspection_default
PHYSICAL-ASA/vASA1/pri/act(config-pmap-c)# inspect icmp
PHYSICAL-ASA/vASA1/pri/act(config-pmap-c)# exit
PHYSICAL-ASA/vASA1/pri/act(config-pmap)# exit
PHYSICAL-ASA/vASA1/pri/act(config)# exit
PHYSICAL-ASA/vASA1/pri/act# 

vASA2 (as specified above), make sure it says ‘act’ on the end of the prompt.

PHYSICAL-ASA/sec/stby# changeto context vASA2
PHYSICAL-ASA/vASA2/sec/act# conf t
PHYSICAL-ASA/vASA2/sec/act(config)# policy-map global_policy
PHYSICAL-ASA/vASA2/sec/act(config-pmap)# class inspection_default
PHYSICAL-ASA/vASA2/sec/act(config-pmap-c)# inspect icmp
PHYSICAL-ASA/vASA2/sec/act(config-pmap-c)# exit
PHYSICAL-ASA/vASA2/sec/act(config-pmap)# exit
PHYSICAL-ASA/vASA2/sec/act(config)# exit

Sunday, February 11, 2018

ERROR: Cannot remove connected route

ERROR: Cannot remove connected route


firewall-asa(config)# no route INSIDE 192.168.0.0 255.255.255.0 172.16.0.5
ERROR: Cannot remove connected route
firewall-asa(config)#
The above error is caused when you try to route a directly connected interface to another subnet. In order to remove this route, you need to shutown the interface, then remove the route.
For example, if you have 172.16.0.0/24 assigned to your INSIDE interface, and 192.168.0.0/24 routed to an IP within 172.16.0.0, and you want to move 192.168.0.0/24 to a dedicated segment on the FW (say DMZ), you will run into this problem. You need to shutdown the INSIDE segment in order to remove the route.

firewall-asa(config)# interface Ethernet0/1
firewall-asa(config-subif)# shut
firewall-asa(config-subif)# exit
firewall-asa(config)#
firewall-asa(config)# no route INSIDE 192.168.0.0 255.255.255.0 172.16.0.5
firewall-asa(config)#
firewall-asa(config)# interface Ethernet0/1.100
firewall-asa(config-subif)# no shut
Problem solved.

Thursday, February 8, 2018

UCS Direct Attached Storage and FC Zoning Configuration Example

Introduction

This document provides a sample configuration of Direct Attached Storage (DAS) in the Cisco Unified Computer System (UCS); the configuration uses the graphical user interface (GUI) available in the UCS Manager (UCSM).
With the release of UCS version 2.1, it is now possible to connect the storage array directly to the Fabric Interconnect (FI) without any upstream storage area network (SAN) switch.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:
  • UCS and UCS Manager Knowledge
  • Storage Area Networking
  • Fiber Channel Zoning Concepts

Components Used

The information in this document is based on these software and hardware versions:
  • UCS setup with FI in fiber channel (FC) switch mode and with firmware version 2.1(1a) or later.
  • Storage array that supports UCS. Refer to UCS - Storage Interoperability Matrix for list of supported storage arrays.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

Refer to Cisco Technical Tips Conventions for information on document conventions.

Background Information

UCS with DAS Earlier than Version 2.1

In versions of UCS earlier than 2.1, you had the option to use DAS with UCS. However, you needed a SAN switch connected to the FI so the switch could push the zone database to the FI. That is, the UCS platform was not able to build a zone database. The topology was similar to this:



UCS with DAS in Version 2.1

With the release of Version 2.1, UCS now has the ability to build its own zone database. You can have DAS with UCS without the need for a SAN switch to push the zoning configuration. The topology now looks like this:

Configure

Configure Direct Attached Storage

The general process to configure DAS in UCS is:
  1. Configure FI in FC switch mode.
  2. Create required virtual SAN (VSAN).
  3. Set the port role in UCS.
  4. Check if the storage port worldwide port name (WWPN) is logged in to the fabric.
This assumes the physical cables are already connected between the storage array ports and the Fabric Interconnects.
Each of these steps is explained in detail in the next sections.

Configure FI in FC Switch Mode

If the FI is not already in FC switch mode, this procedure demonstrates how to change to that mode. You can still run End Host Mode for the Ethernet.
Note: This activity requires an FI reboot.
  1. In the UCSM, navigate to and click the Equipment tab.
  2. Expand Fabric Interconnects.
  3. Click Fabric Interconnect A.
  4. In the right pane, select Set FC Switching Mode.

  5. Repeat Steps 1-4 for Fabric B.

Create Required VSAN

This procedure demonstrates how to create the required VSANs in both FIs and how to enable zoning on the VSANs. Before you start this procedure, identify which VSAN ID you want to use for both fabrics.
Note: Storage VSANS should be created only under Storage Cloud and should not be allowed in the FC uplinks if any.
  1. In the UCSM, navigate to and click the SAN tab.
  2. Expand Storage Cloud.
  3. Expand Fabric A.
  4. Right-click VSANs, and select Create Storage VSAN.
  5. Enter a name for the VSAN.
  6. Select Enabled for FC Zoning.
  7. Select Fabric A.
  8. Enter the VSAN ID and a Fiber Channel over Ethernet (FCoE) VLAN ID for Fabric A. Make sure that FCoE VLAN ID is a VLAN ID that is not currently used in the network.

  9. Repeat Steps 1-8 for Fabric B.

Set the Port Role in UCS

This procedure demonstrates how to select the FI ports connected to the storage array and how to configure them as FC Storage Ports.
  1. In the UCSM, navigate to and click the Equipment tab.
  2. Expand Fabric Interconnects.
  3. Expand Fabric Interconnect A.
  4. Right-click the port connected to the storage array, and select Configure as FC Storage Port.
  5. Select the correct VSAN for this port in the right pane.

  6. Repeat steps 1-6 for Fabric B.
If the port is configured properly and is up in the storage array, the FC Storage port in UCS should come online.

Confirm StoragePort WWPN Is Logged in to the Fabric

This procedure ensures that the storage port WWPN is logged in to the fabric.
  1. Log in through the secure shell (SSH), or establish a Telnet connection to the UCS Virtual IP (VIP).
  2. Enter the connect nxos { a | b } command, where a | b represents FI A or FI B; in this example, the FI is A.
  3. Enter the show flogi database vsan vsan ID command, where vsan ID is the identifier for the VSAN; in this example, the identifier is 600.
This image is an example of output from these two commands. The storage port WWPN is now logged in to VSAN 600. Be sure to confirm the storage port login on both of the fabrics.

Configure FC Zoning

The general process to configure the server is:
  1. Create storage connection policy.
  2. Create a service profile.
  3. Associate the service profile with the server.
Each of these steps is explained in detail in the next sections.

Create Storage Connection Policy

This procedure demonstrates how to create the storage connection policy and the storage target WWPN.
Note: Cisco recommends that you create one policy for each fabric so the zoning is easy to understand.
  1. In the UCSM, navigate to and click the SAN tab.
  2. Expand Policies, expand Root, right-click Storage Connection Policies, and select Create Storage Connection Policy.



    The Create Storage Connection Policy window opens and allows you to define the storage target WWPN and the fabric details.
  3. Enter a Name for the storage connection policy.
  4. Select a Zoning Type from the three options:
    • None: Use this option when you do not have the zones created in the FI, but do have zones used from the upstream FC switch for a particular VSAN.
    • Single Initiator Single Target: Use this option when you have only one storage port connected to one fabric. In this example, there is one target connected to each fabric.
    • Single Initiator Multiple Targets: Use this option when you have more than one storage port connected to one fabric.
  5. Click the plus (+) sign next to the FC Target Endpoints section. The Create FC Target Endpoint window opens.
  6. Enter the WWPN of the FC target.
  7. Click the Path for the fabric.
  8. Select the VSAN ID from the drop-down list.

  9. Click OK in order to save the changes.

Create Service Profile

This procedure demonstrates how to create a regular service profile with additional zoning configuration.
  1. In the UCSM, navigate to and click the Servers tab.
  2. Expand Servers, right-click Service Profiles, and select Create Service Profile(expert).
  3. Enter a name for the service profile, and select the unique identifier (UUID) pool that you already created. Click Next.
  4. In the Networking section, create the required number of virtual network interface controllers (vNICs). Click Next.
  5. In the Storage section, create the required number of virtual host bus adapters (vHBAs), and make sure that you place them in the correct VSAN for storage connectivity. This example uses VSAN 600. Click Next.
  6. In the Zoning section (which is new in UCSM 2.1), select the vHBA and the Storage Connection Policy mapping in order to define the zoning. Under Select vHBA Initiators, click vHBA. Under the Select vHBA Initiator Groups section, click the plus (+) sign in order to open a new window.
  7. Enter a Name for the Initiator Group, select the Storage Connection Policy you created previously, and click OK.



    The Zoning window appears.
  8. In the left pane, click the vHBA to add to the initiator group. In the right pane, click the vHBA Initiator Group you created. Then, click the Add To button between the panes in order to add that vHBA to that Initiator Group. The vHBA becomes part of the Initiator Group and is zoned with the Storage Target mentioned in the Storage Connection Policy.

    Note: You can add multiple vHBAs under one vHBA initiator group. You can also create different initiator groups for the different fabrics in order to ease management.

  9. Click Next from the Zoning section, and complete the other sections in the service profile.

Associate Service Profile with the Server

This procedure demonstrates how to associate the service profile with the server, which initiates the creation of zones and the zoneset.
  1. Right-click the service profile you just created, and click Change Service Profile Association.
  2. Select Select Existing Server from the drop-down list.
  3. Select the appropriate server, and click OK. The server then reboots.

Verify

Use this section to confirm that your zone creation and zoneset activation work properly.
The Cisco CLI Analyzer (registered customers only) supports certain show commands. Use the Cisco CLI Analyzer in order to view an analysis of show command output.

Verify from GUI

This procedure describes how to verify the zone configuration and zoneset activation from the GUI.
  1. In the UCSM, navigate to and click the Servers tab.
  2. Expand Servers and Service Profiles.
  3. Navigate to and click the service profile you created previously.
  4. Click the FC Zones tab in the right pane.
In this image, the initiator and target WWPN are in the same zone. The zone Admin State is Applied, and the Oper State is Active, which means the zone is part of the current active zoneset.
Note: The zone name is automatically created; you do not have any control over the name. In this example, the naming convention is ClusterName_FabricID_ZoneID_ServiceProfileName_InitiatorName.

Verify from CLI

This procedure connects to the NXOS shell of the UCS and verifies the zoning from the command-line interface.
  1. Log in through the secure shell (SSH) to the UCS VIP.
  2. Enter the connect nxos { a | b } command, where a | b represents FI A or FI B; in this example, the FI is A.
  3. Enter the show zoneset active vsan vsan ID command, where vsan ID is the identifier for the VSAN; in this example, the identifier is 600.
This image is an example of output from these two commands.
If the proper logical unit number (LUN) masking is done from the storage side, the LUN is now visible in the server OS.

Troubleshoot

This section provides information you can use to troubleshoot your configuration.
If you have created the service profile, but cannot see the zones under the FC Zones tab, use this troubleshooting checklist:
  • Is the zoning enabled on the intended VSAN?
  • Is the service profile associated? Zones are created only when the service profile is associated with the server.
  • Is the correct storage connection policy selected under vHBA initiator groups?
  • Is the correct VHBA added to the correct vHBA initiator group?
  • Is the correct VSAN selected for the vHBAs?
  • Are the correct VSAN and fabric selected under the storage connection policy?

Related Information