Showing posts with label Data Center. Show all posts
Showing posts with label Data Center. Show all posts

Thursday, 2 June 2016

Implement FC port channel, ISL, and trunking

You have been asked to help resolve a non-optimal Fibre Channel port channel between DC2-MDS-1 and DC2-N5K-2. The desired result is that port channel ID 22 is up at 8Gb/s between the two device and VSAN 1 and 200 are able to traverse through port-channel.


DC2-N5K-2(config)# vsan database

DC2-N5K-2(config-vsan-db)# vsan 200 name VSAN200

DC2-N5K-2(config-vsan-db)# exit

DC2-N5K-2(config)# int san-port-channel 22


DC2-N5K-2(config-if)# channel mode active DC2-N5K-2(config-if)# switchport mode e
DC2-N5K-2(config-if)# switchport trunk mode on DC2-N5K-2(config-if)#switchport speed auto DC2-N5K-2(config-if)# sw trunk allowed vsan 1
DC2-N5K-2(config-if)# sw trunk allowed vsan add 200 DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int fc1/31-32

DC2-N5K-2(config-if)# channel-group 22 force fc1/31 fc1/32 added to port-channel 22 and disabled
please do the same operation on the switch at the other end of the port-channel, then do "no shutdown" at both ends to bring it up
DC2-N5K-2(config-if)# no shutdown


DC2-MDS-1(config)# vsan database

DC2-MDS-1(config-vsan-db)# vsan 200 name VSAN200

DC2-MDS-1(config-vsan-db)#

DC2-MDS-1(config-vsan-db)# int port-channel 22 DC2-MDS-1(config-if)# channel mode active DC2-MDS-1(config-if)# switchport mode e
DC2-MDS-1(config-if)#switchport speed auto DC2-MDS-1(config-if)# sw trunk allowed vsan 1
DC2-MDS-1(config-if)# sw trunk allowed vsan add 200

DC2-MDS-1(config-if)# sw trunk mode on


DC2-MDS-1(config-if)# no shutdown DC2-MDS-1(config-if)#
DC2-MDS-1(config-if)# int fc1/15-16

DC2-MDS-1(config-if)# channel-group 22 force fc1/15 fc1/16 added to port-channel 22 and disabled
please do the same operation on the switch at the other end of the port-channel,






    1. - Implement Fibre Channel NPV and NPIV features



Configure the two Fibre Channel links between DC2-N5K-1 and DC2-MDS-1 to be two parallel non-trunking. NPV-NPIV links for VSAN 100. The customer demands that servers in VSAN 100 that these links distributed equally at all times, even in the event that one of the links goes down and comes back up

DC2-N5K-1(config)# vsan database

DC2-N5K-1(config-vsan-db)# vsan 100 name VSAN100

DC2-N5K-1(config-vsan-db)# exit DC2-N5K-1(config)# int fc1/31-32 DC2-N5K-1(config-if)# sw mode nP
DC2-N5K-1(config-if)# sw trunk mode off DC2-N5K-1(config-if)# no shutdown DC2-N5K-1(config-if)# exit
DC2-N5K-1(config)# npv auto-load-balance disruptive

Enabling this feature may flap the server interfaces whenever load is not in a balanced state. This process may result in traffic disruption. Do you want to proceed? (y/n): y DC2-N5K-1(config)#
DC2-N5K-1(config)# vsan database

DC2-N5K-1(config-vsan-db)# vsan 100 interface fc1/31 DC2-N5K-1(config-vsan-db)# vsan 100 interface fc1/32





    1. Implement FCoE NPV features



Switch name
ID
Port
DC2-N7K-2
2
E3/9-16
Create a logical device within DC2-N7K-2 that capable in FCoE functionality, use the following parameters





Initialize this logical device with the following parameters:

Mgmt IP:

10.1.1.27
Mgmt Gateway:

10.1.1.254
Telnet:

Enabled
Password:

cisco






DC2-N7K-1(config)# install feature-set fcoe DC2-N7K-1(config)# license fcoe module 3 DC2-N7K-1(config)# system qos
DC2-N7K-1(config-sys-qos)# service-policy type network-qos default-nq-7e-policy DC2-N7K-1(config)#no vdc DC2-N7K-2
DC2-N7K-1(config)# vdc DC2-N7K-2 type storage id 2 DC2-N7K-1(config-vdc)# limit-resource module-type f1 DC2-N7K-1(config-vdc)# allocate interface e3/9-16
DC2-N7K-1(config-vdc)# allocate fcoe-vlan-range 100,200 DC2-N7K-1(config-vdc)#exit
DC2-N7K-1(config)# port-channel load-balance src-dst ip-l4port module 3




DC2-N7K-1# switchto vdc Dc2-n7K-2

---- System Admin Account Setup ----

Do you want to enforce secure password standard (yes/no) [y]: n Enter the password for "admin":
Confirm the password for "admin":



---- Basic System Configuration Dialog VDC: 2 ----



DC2-N7K-2# conf t

DC2-N7K-2(config)# feature telnet DC2-N7K-2(config)# int mgmt 0
DC2-N7K-2(config-if)# ip address 10.1.1.27/24 DC2-N7K-2(config-if)# no shutdown
DC2-N7K-2(config-if)# exit

DC2-N7K-2(config)# ip route 0.0.0.0 0.0.0.0 10.1.1.254

DC2-N7K-2(config)# end DC2-N7K-2# switchback
============================================================

DC2-N5K-1(config)# vlan 100

DC2-N5K-1(config-vlan)# fcoe vsan 100 DC2-N5K-1(config-vlan)# int e1/13-14
DC2-N5K-1(config-if-range)# channel-group 11 mode active DC2-N5K-1(config-if-range)# no shutdown
DC2-N5K-1(config-if-range)# int port-channel 11 DC2-N5K-1(config-if)# switchport
DC2-N5K-1(config-if)# sw mode trunk

DC2-N5K-1(config-if)# sw trunk allowed vlan 100

DC2-N5K-1(config-if)# spanning-tree port type edge trunk


DC2-N5K-1(config-if)# no shutdown DC2-N5K-1(config-if)# exit
DC2-N5K-1(config)# int vfc 11

DC2-N5K-1(config-if)# bind interface port-channel 11 DC2-N5K-1(config-if)# sw mode nP
DC2-N5K-1(config-if)# sw trunk allowed vsan 100 DC2-N5K-1(config-if)# no shutdown
DC2-N5K-1(config-if)# exit

DC2-N5K-1(config)# port-channel load-balance ethernet source-dest-port



DC2-N7K-2(config)# feature-set fcoe DC2-N7K-2(config)# feature telnet DC2-N7K-2(config)# feature lldp DC2-N7K-2(config)# feature npiv
DC2-N7K-2(config)# feature fport-channel-trunk DC2-N7K-2(config)# feature lacp


DC2-N7K-2(config)# vsan database

DC2-N7K-2(config-vsan-db)# vsan 100 name VSAN100

DC2-N7K-2(config-vsan-db)# vsan 200 name VSAN200

DC2-N7K-2(config-vsan-db)# vlan 100 DC2-N7K-2(config-vlan)# fcoe vsan 100 DC2-N7K-2(config-vlan)# vlan 200
DC2-N7K-2(config-vlan)# fcoe vsan 200 DC2-N7K-2(config-vlan)#
DC2-N7K-2(config-vlan)# int e3/13-14

DC2-N7K-2(config-if-range)# channel-group 11 mode active DC2-N7K-2(config-if-range)# no shutdown
DC2-N7K-2(config-if-range)# int port-channel 11


DC2-N7K-2(config-if)# sw

DC2-N7K-2(config-if)# switchport DC2-N7K-2(config-if)# sw mode trunk
DC2-N7K-2(config-if)# sw trunk allowed vlan 100 DC2-N7K-2(config-if)# no shutdown
DC2-N7K-2(config-if)# int vfc-port-channel 11

DC2-N7K-2(config-if)# bind interface port-channel 11 DC2-N7K-2(config-if)# sw mode f
DC2-N7K-2(config-if)# sw trunk mode on

DC2-N7K-2(config-if)# sw trunk allowed vsan 100

Warning: This command will remove all VSANs currently being trunked and trunk only the specified VSANs.
Do you want to continue? (y/n) [n] y DC2-N7K-2(config-if)# no shutdown DC2-N7K-2(config-if)#




Configure FEX

DC2-N5K-1(config-if)# channel-group 103 DC2-N5K-1(config-if)# no shutdown
DC2-N5K-1(config-if)# int port-channel 103

DC2-N5K-1(config-if)# switchport mode fex-fabric DC2-N5K-1(config-if)# fex associate 

103
DC2-N5K-1(config-if)# vpc 103


DC2-N5K-1(config-if)# no shutdown DC2-N5K-1(config-if)# int e1/27-28
DC2-N5K-1(config-if)# channel-group 104 DC2-N5K-1(config-if)# no sh
DC2-N5K-1(config-if)# int port-channel 104 DC2-N5K-1(config-if)# sw mode fex-fabric DC2-N5K-1(config-if)# fex associate 104 DC2-N5K-1(config-if)# vpc 104
DC2-N5K-1(config-if)# no shutdown



DC2-N5K-2(config)# feature fex DC2-N5K-2(config)# int e1/27-28
DC2-N5K-2(config-if)# channel-group 103 DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int port-channel 103 DC2-N5K-2(config-if)# sw mode fex-fabric DC2-N5K-2(config-if)# fex associate 103 DC2-N5K-2(config-if)# vpc 103
DC2-N5K-2(config-if)# no shutdown DC2-N5K-2(config-if)# int e1/17-18
DC2-N5K-2(config-if)# channel-group 104 DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int port-channel 104 DC2-N5K-2(config-if)# sw mode fex-fabric DC2-N5K-2(config-if)# fex associate 104 DC2-N5K-2(config-if)# vpc 104
DC2-N5K-2(config-if)# no shutdown


Description: C:\Users\WanJinzhou\AppData\Roaming\Tencent\Users\200756582\QQ\WinTemp\RichOle\VL@TG~L}YEDWUR3[P9CG1TU.png


Configure vPC+ to Cisco UCS

In DC2, Configure vPC domain 20 between DC2-N5K-1 and DC2-N5K-2 Perform these tasks:
1.Make sure that N5K-1 is always the vPC primary switch. 2.Use port channel ID 200 for the vPC peer link.
3.Do not add any new Layer 3 interfaces. 4.Use switch ID value 70.
5.Use port channel ID 10 toward Fabric Interconnect A (FI-A) 6.Use port channel ID 20 toward Fabric Interconnect B (FI-B)
  1. Port channels to Cisco UCS should be configured as IEEE 802.1Q trunk interfaces that allow only VLANs 30, 40, 70, and 71.
  2. Make sure that port channels 10 and 20 come up without waiting for the standard forward-time delay.
  3. In few months, our server team will connect a single-leg server on VLAN 300 that is connected to N5K-2. Make sure that the interface does not go down in a dual-active scenario.
  4. Make sure the vPC peer devices are the primary devices on LACP and use

priority value 2500.
DC2-N5K-1(config)# feature vpc DC2-N5K-1(config)# feature lacp DC2-N5K-1(config)# vpc domain 20
DC2-N5K-1(config-vpc-domain)# role priority 1

DC2-N5K-1(config-vpc-domain)# system-priority 2500 DC2-N5K-1(config-vpc-domain)# fabricpath switch-id 70
Configuring fabricpath switch id will flap vPCs. Continue (yes/no)? [no] yes

DC2-N5K-1(config-vpc-domain)# peer-kee    des 10.1.1.42 so 10.1.1.41 vrf management DC2-N5K-1(config)# int port-channel 200
DC2-N5K-1(config-if)# vpc peer-link DC2-N5K-1(config-if)# no shutdown DC2-N5K-1(config)# int e1/6
DC2-N5K-1(config-if)# channel-group 10 mode active DC2-N5K-1(config-if)# no shutdown
DC2-N5K-1(config-if)# int port-channel 10 DC2-N5K-1(config-if)# switchport
DC2-N5K-1(config-if)# sw mode trunk

DC2-N5K-1(config-if)# sw trunk allowed vlan 30,40,70,71 DC2-N5K-1(config-if)# spanning-tree port type edge trunk DC2-N5K-1(config-if)# vpc 10
DC2-N5K-1(config-if)# no shutdown



DC2-N5K-1(config-if)# int e1/7

DC2-N5K-1(config-if)# channel-group 20 mode active DC2-N5K-1(config-if)# no shutdown
DC2-N5K-1(config-if)# int port-channel 20 DC2-N5K-1(config-if)# switchport
DC2-N5K-1(config-if)# sw mode trunk


DC2-N5K-1(config-if)# sw trunk allowed vlan 30,40,70,71 DC2-N5K-1(config-if)# spanning-tree port type edge trunk DC2-N5K-1(config-if)# vpc 20
DC2-N5K-1(config-if)# no shutdown



DC2-N5K-2(config)#vlan 300 DC2-N5K-2(config)# feature vpc DC2-N5K-2(config)# feature lacp
DC2-N5K-2(config)# vpc domain 20

DC2-N5K-2(config-vpc-domain)# system-priority 2500 DC2-N5K-2(config-vpc-domain)# fabricpath switch-id 70
DC2-N5K-2(config-vpc-domain)# dual-active exclude interface-vlan 300

DC2-N5K-2(config-vpc-domain)# peer-kee de 10.1.1.41 so 10.1.1.42 vrf management DC2-N5K-2(config-vpc-domain)# int port-channel 200
DC2-N5K-2(config-if)# vpc peer-link DC2-N5K-2(config-if)# no shutdown


DC2-N5K-2(config)# int e1/7

DC2-N5K-2(config-if)# channel-group 10 mode active DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int port-channel 10 DC2-N5K-2(config-if)# switchport
DC2-N5K-2(config-if)# sw mode trun

DC2-N5K-2(config-if)# sw trunk allowed vlan 30,40,70,71 DC2-N5K-2(config-if)# spanning-tree port type edge trunk DC2-N5K-2(config-if)# vpc 10
DC2-N5K-2(config-if)# no shutdown


DC2-N5K-2(config-if)# int e1/6

DC2-N5K-2(config-if)# channel-group 20 mode active DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int port-channel 20 DC2-N5K-2(config-if)# switchport
DC2-N5K-2(config-if)# sw mode trunk

Configure Fabric Path

DC2-N7K-3(config-if)# sw trunk allowed vlan 90,4001,4002 DC2-N7K-3(config-if)# no shutdown

the port channel. Use any number for the port channel

  1. Configure switch ID 30, 40, 50, and 60 on DC2-N7K-3, DC2-N7K-4, DC2-N5K-1, and DC2-N5K-2 respectively
  2. Allow 20 seconds to detect any switch ID conflicts in the FabricPath domain. 6.Make sure that only two equal cost paths are selected in the FabricPath domain
7.Make sure that DC2-N7K-3 and DC2-N7K-4 use DC2-N5K-1 and DC2-N5K-2 as equal
cost paths.


DC2-N7K-3(config)# fabricpath switch-id 30


DC2-N7K-3(config)# fabricpath timers linkup-delay 20 DC2-N7K-3(config)# fabricpath domain default
DC2-N7K-3(config-fabricpath-isis)# maximum-paths 2


DC2-N7K-3(config-fabricpath-isis)# root-priority 255 DC2-N7K-3(config-fabricpath-isis)# exit
DC2-N7K-3(config)# int e3/21,e3/22,e3/23,e3/24 DC2-N7K-3(config-if-range)# switchport
DC2-N7K-3(config-if-range)# sw mode fabricpath DC2-N7K-3(config-if-range)# no shutdown
DC2-N7K-3(config-if-range)# exit DC2-N7K-3(config)# int e3/22,e3/24
DC2-N7K-3(config-if-range)# fabricpath isis metric 80

DC2-N7K-4(config)# fabricpath switch-id 40


DC2-N7K-4(config)# fabricpath timers linkup-delay 20


DC2-N7K-4(config)# fabricpath domain default


DC2-N7K-4(config-fabricpath-isis)# maximum-paths 2


DC2-N7K-4(config-fabricpath-isis)# root-priority 254 DC2-N7K-4(config-fabricpath-isis)# exit
DC2-N7K-4(config)# int e3/29,e3/30,e3/31,e3/32 DC2-N7K-4(config-if-range)# switchport
DC2-N7K-4(config-if-range)# sw mode fabricpath DC2-N7K-4(config-if-range)# no shutdown
DC2-N7K-4(config-if-range)# exit


DC2-N7K-4(config-if-range)# int e3/30,e3/32


DC2-N7K-4(config-if-range)# fabricpath isis metric 80
DC2-N5K-1(config)#feature lacp

DC2-N5K-1(config)# fabricpath switch-id 50

DC2-N5K-1(config)# fabricpath timers linkup-delay 20 DC2-N5K-1(config)# fabricpath domain default
DC2-N5K-1(config-fabricpath-isis)# maximum-paths 2 DC2-N5K-1(config-fabricpath-isis)# exit
DC2-N5K-1(config)# int e1/10-11


DC2-N5K-1(config-if-range)# channel-group 200 mode active DC2-N5K-1(config-if-range)# no shutdown
DC2-N5K-1(config-if-range)# int port-channel 200 DC2-N5K-1(config-if)# switchport
DC2-N5K-1(config-if)# sw mode fabricpath DC2-N5K-1(config-if)# no shutdown
DC2-N5K-1(config-if)# int e1/2,e1/4
DC2-N5K-2(config)#feature lacp

DC2-N5K-2(config)# fabricpath switch-id 60


DC2-N5K-2(config)# fabricpath timers linkup-delay 20 DC2-N5K-2(config)# fabricpath domain default
DC2-N5K-2(config-fabricpath-isis)# maximum-paths 2 DC2-N5K-2(config-fabricpath-isis)# exit
DC2-N5K-2(config-fabricpath-isis)# int e1/10-11


DC2-N5K-2(config-if-range)# channel-group 200 mode active DC2-N5K-2(config-if-range)# no shutdown
DC2-N5K-2(config-if-range)# int port-channel 200 DC2-N5K-2(config-if)# switchport
DC2-N5K-2(config-if)# sw mode fabricpath DC2-N5K-2(config-if)# no shutdown
DC2-N5K-2(config-if)# int e1/1-4





DC2-N5K-1(config-if-range)# int e1/1,e1/2,e1/3,e1/4 DC2-N5K-1(config-if-range)# switchport
DC2-N5K-1(config-if-range)# sw mode fabricpath DC2-N5K-1(config-if-range)# no shutdown
DC2-N5K-1(config-if-range)# int e1/2,e1/4
DC2-N5K-1(config-if-range)# fabricpath isis metric 80 DC2-N5K-1(config-if-range)# exit

DC2-N5K-2(config-if-range)# switchport


DC2-N5K-2(config-if-range)# sw mode fabricpath DC2-N5K-2(config-if-range)# no shutdown
DC2-N5K-2(config-if-range)# int e1/2,e1/4


DC2-N5K-2(config-if-range)# fabricpath isis metric 80 DC2-N5K-2(config-if-range)# no shutdown
DC2-N5K-2(config-if-range)# end