CCIE DC: static fibre channel routing

Did you know you can statically route in fibre channel?

You can, here is an example:

Switch2# show fspf database

FSPF Link State Database for VSAN 1 Domain 0x01(1)
LSR Type                = 1
Advertising domain ID   = 0x01(1)
LSR Age                 = 1006
LSR Incarnation number  = 0x80000009
LSR Checksum            = 0xc422
Number of links         = 2
 NbrDomainId      IfIndex   NbrIfIndex    Link Type         Cost
-----------------------------------------------------------------------------
     0x02(2) 0x0001000d     0x0001000d               1          500
     0x02(2) 0x00010123     0x00010123               1         1000


In this example I have two links between my switches, and each of them is available as paths, but the lowest cost link will be chosen, which in this case happens to be Fc1/14:
Switch2# show fspf internal route vsan 1

FSPF Unicast Routes
---------------------------
 VSAN Number  Dest Domain   Route Cost    Next hops
-----------------------------------------------
           1      0x01(1)          500       fc1/14


Let's say for one particular switch or host I want to use the other link, I just configure a static route and even specify a mask like I would on normal IP


config)# fcroute 0x10000 0xff0000 interface fc2/36 domain 1 metric 10  vsan 1

 This now changes the route to use a static route:


Switch2(config)# show fcroute unicast host 0x010001 0xffffff vsan 1

D:direct  R:remote  P:permanent  V:volatile  A:active  N:non-active
                                                          # Next
Protocol  VSAN       FC ID/Mask        RCtl/Mask    Flags  Hops  Cost
--------  ----    -------- --------    ---- ----    -----  ----  ----
static    1       0x010000 0xff0000    0x00 0x00    D P A  1     10
    fc2/36  Domain  0x01(1)

fspf      1       0x010000 0xff0000    0x00 0x00    D P N  1     500
    fc1/14  Domain  0x01(1)



Switch2(config)# show fcroute unicast host 0x010000 0xffffff vsan 1

D:direct  R:remote  P:permanent  V:volatile  A:active  N:non-active
                                                          # Next
Protocol  VSAN       FC ID/Mask        RCtl/Mask    Flags  Hops  Cost
--------  ----    -------- --------    ---- ----    -----  ----  ----
static    1       0x010000 0xff0000    0x00 0x00    D P A  1     10
    fc2/36  Domain  0x01(1)
fspf      1       0x010000 0xff0000    0x00 0x00    D P N  1     500
    fc1/14  Domain  0x01(1)



2 comments:

Popular old posts.