Sunday, April 21, 2013

CCIE DC: FCoE NPV

Hi Guys!

Final blog post for tonight I have spent lots of time this weekend working super hard on my study!

So let's check out FCoE NPV, first a quick word of advice: Make sure when switching fibre channel modes (NPV vs FC Switching) make sure you completely write erase before you switch modes.

Without further adue, let's look at the config!

First thing's first, let's turn on the FCoE NPV Feature on the switch that is going to be on the actual switch performing NPV:

feature fcoe-npv

On the FC switch that will act as our core and WILL participate in the FC as a FC Forwarder, we need to turn on NPIV

feature npiv


As usual with FCoE, let's create our VSAN's and our VLAN's

vsan database
  vsan 10

!
vlan 10
  fcoe vsan 10

!

Next, we configure our ethernet interface that faces up towards the core, we can do this on both our core switch and our NPV Switch



interface Ethernet1/10
  switchport mode trunk
  switchport trunk allowed vlan 10,20
!


Next, let's configure our VFC Interface:


interface vfc1
  bind interface Ethernet1/10
  switchport mode NP
  switchport trunk mode on
  no shutdown



This is now ready on our NPV side, on our Core switch the config is only slightly diffirent:


interface vfc1
  bind interface Ethernet1/10
  switchport trunk allowed vsan 10
  no shutdown

As you can see on the upstream switch our core switch just has this configured as an F Port.


Now finally, we need to make each of them realise that the port is a member of the VSAN:

vsan database
  vsan 10 interface vfc1


Now we can check to see if the vfc interface is up on our NPV Switch:

switch# show int vfc1
vfc1 is trunking (Not all VSANs UP on the trunk)
    Bound interface is Ethernet1/10
    Hardware is Ethernet
    Port WWN is 20:00:54:7f:ee:af:1c:bf
    Admin port mode is NP, trunk mode is on
    snmp link state traps are enabled
    Port mode is TNP
    Port vsan is 10
    Trunk vsans (admin allowed and active) (1,10)
    Trunk vsans (up)                       (10)



Success! the next step is to get our server facing interface going, for the sake of brevity i will show all the configuration for this at once:

switch# show run int vfc2

interface vfc2
  bind interface Ethernet1/1
  switchport trunk mode on
  no shutdown

!

interface Ethernet1/1
  switchport mode trunk
  switchport trunk allowed vlan 10,20
  spanning-tree port type edge trunk

!

vsan database
  vsan 10 interface vfc2

Let's check the server facing interface:

switch# show int vfc2
vfc2 is trunking (Not all VSANs UP on the trunk)
    Bound interface is Ethernet1/1
    Hardware is Ethernet
    Port WWN is 20:01:54:7f:ee:af:1c:bf
    Admin port mode is F, trunk mode is on
    snmp link state traps are enabled
    Port mode is TF
    Port vsan is 10
    Trunk vsans (admin allowed and active) (1,10)
    Trunk vsans (up)                       (10)

!

Success! Let's check the NPV flogi table which is very useful.


switch# show npv flogi-table
--------------------------------------------------------------------------------
SERVER                                                                  EXTERNAL INTERFACE VSAN FCID             PORT NAME               NODE NAME       INTERFACE
--------------------------------------------------------------------------------
vfc2      10   0xd80002 20:00:a4:4c:11:13:8c:d1 10:00:a4:4c:11:13:8c:d1 vfc1


Very Useful output showing us that the port vfc2 is logged in and is using vfc1 for its external interface.


The show npv command is actually quite powerful:


switch# show npv ?
  external-interface-usage  Show external interface usage by server interfaces
  flogi-table               Show information about FLOGI sessions
  internal                  Show internal NPV information
  status                    Show NPV status
  traffic-map               Show information about Traffic Map



In particular, i found the following command VERY helpful:

in parti


switch# show npv internal events

1) Event:E_DEBUG, length:94, at 270505 usecs after Sun Apr 21 10:39:22 2013
    [538976288] E(10,vfc1) Received GMAL Response from core switch with Core Switch Inet Addr: 10.1.1.15



2) Event:E_DEBUG, length:252, at 270497 usecs after Sun Apr 21 10:39:22 2013
    [538976288] E(10,vfc1) npivp_get_ext_intf_fsm(1466): Is Core VF Capable: TRU
E
, Is Phy Login Done: TRUE, Is Port Channel: FALSE RID: { Type: Ext-If-VSAN(8),
IfIndex: vfc1(0x1e000000), UCD: 0, VSAN: 10, PWWN: 00:00:00:00:00:00:00:00 }, St
ate NPIVP_EXT_IF_ST_UP
This, along with show npv internal errors is really helpful in troubleshooting upstream issues.


If for example the upstream switch was not enabled for NPIV, I would see the following output in this command:




11) Event:E_DEBUG, length:98, at 464269 usecs after Sun Apr 21 10:41:22 2013
    [112] E(10,vfc1) FC Upstream switch is not NPIV enabled. Bringing down the external interface: vfc1



12 comments:

  1. These posts are awesome - keep them coming :)

    ReplyDelete
  2. hi Peter, I have a question related to NPV, in the CCIE DC lab, we need to enable NPV mode in N5k after doing many config with N5k. It need to be reloaded, so how we deal with this one in the practical CCIE DC Exam?

    ReplyDelete
    Replies
    1. When you enable the FCoE NPV using the feature "fcoe-npv" command, a write erase reload does not occur. Unlike, enabling "FCoE" and then "NPV" as separate features.

      Delete
    2. Yep, true, you don't have to reload the switch after configuring "feature fcoe-npv"... However, if you are coming from a FCoE configuration where you previously had the switch with "feature fcoe", you have to first remove the feature "no feature fcoe" and then RELOAD!

      I've tested it myself. I tried to only delete the FCoE config: vfcs, fcoe vlan, the actual vsan and then removed "feature fcoe", then enabled "feature fcoe-npv" without reloading. I then entered again all the FCoE required config for NPV, but there my NP port never came up. I double-checked all the config, reentered it, but nothing, I then removed the feature fcoe, reloaded and then enter the exact same config I had entered before for fcoe-npv and NOW the NP port came up.

      Why? I have no idea, but it will save you a lot of time if you just reload the switch after removing feature fcoe.

      Delete
  3. hi

    what if their is already a config on the switch if i enable NPIV and those ports are connected to HP VC it will erase the config on cisco so how can i restore zoning config

    ReplyDelete
  4. "show npv status" is also a great troubleshooting command. Many times it tells you exactly what's wrong. Here's the troubleshooting guide for NPV:
    http://www.cisco.com/en/US/products/ps5989/prod_troubleshooting_guide_chapter09186a00808c82f1.html

    "show int vfc1" and "show int vfc1 trunk vsan" are always a great help.

    ReplyDelete
  5. Dear.I am very honored to introduce a external hard drive cnet products to you,it is very useful and free,and professional technical support.THANK YOU !

    ReplyDelete
  6. Trung tâm đào tạo kế toán thực hành Tại cầu giấy
    Trung tâm đào tạo kế toán thực hành Tại từ liêm
    Trung tâm đào tạo kế toán thực hành Tại thanh xuân
    Trung tâm đào tạo kế toán thực hành Tại hà đông
    Trung tâm đào tạo kế toán thực hành Tại long biên
    Trung tâm đào tạo kế toán thực hành Tại nguyễn chính thanh đống đa
    Trung tâm đào tạo kế toán thực hành Tại minh khai hai bà trưng
    Trung tâm đào tạo kế toán thực hành Tại bắc ninh
    Trung tâm đào tạo kế toán thực hành Tại hải phòng
    Trung tâm đào tạo kế toán thực hành Tại tphcm
    Trung tâm đào tạo kế toán thực hành Tại quận 3
    Trung tâm đào tạo kế toán thực hành Tại thủ đức
    Trung tâm đào tạo kế toán thực hành Tại đà nẵng
    Trung tâm đào tạo kế toán thực hành Tại biên hòa
    Trung tâm đào tạo kế toán thực hành Tại đồng nai
    Trung tâm đào tạo kế toán thực hành Tại nam định
    Trung tâm đào tạo kế toán thực hành Tại thái bình
    Trung tâm đào tạo kế toán thực hành Tại bắc giang
    Trung tâm đào tạo kế toán thực hành Tại vĩnh phúc
    Trung tâm đào tạo kế toán thực hành Tại thái nguyên
    Trung tâm đào tạo kế toán thực hành Tại quảng ninh
    Trung tâm đào tạo kế toán thực hành Tại hải dương
    Trung tâm đào tạo kế toán thực hành Tại hưng yên
    Trung tâm đào tạo kế toán thực hành Tại hà nam
    Trung tâm đào tạo kế toán thực hành Tại ninh bình
    Trung tâm đào tạo kế toán thực hành Tại nghệ an
    Trung tâm đào tạo kế toán thực hành Tại vũng tàu

    ReplyDelete
  7. شركتنا من المتميزون في اعمال الاصلاح بدون هدم او تكسير من خلال شركة ركن البيت التي تقدم الكثير والكثير في عمل اللازم وتصحيح الاخطاء التي تسببها تسريبات المياه فنحن مثلا

    شركة كشف تسربات المياه بجدة تقدم خدمة لعمل الاصلاح بدون اي خراب ونقدم النصيحة للعملاء بالابتعاد عن الاعمال التي تؤدي الي هذا الخراب فتعاملك مع شركة كشف تسربات بجدة لديها الخبرة الكافية تساعدك في الحفاظ علي منزلك كما اننا نتمكن في اننا سوف نرتقي بخدمة لاننا نقوم بالعمل السليم لها كما يوجد لدينا خدمات العوازل التي تمنع التسريبات من الاسقف لكم والحوائط والخزانات من خلال شركة تسمي الاولي في مجالها لذلك نحن نقدم شركة عزل خزانات بالرياض التي تعتبر في عل الخزانات الارضية من الداخل بواسطة مواد متميزة كما نقدم لكم شركة عزل اسطح بالرياض لعمل العوازل التي تمنع جميع التسريبات في الاسقف

    ReplyDelete