Showing posts with label nexus. Show all posts
Showing posts with label nexus. Show all posts
# vPC on Nexus 2000
Topology
- Double vPC between N7K and N5K.
- Single-homed or dual-homed between N5K and N2K (FEX).
Single-homed
- The 2148 is not capable of doing a standard port-channel.
- The 2148 is capable of doing a vPC of two ports (each one on a different FEX).
- The 2248 is capable of doing a standard port-channel.
- The 2248 is capable of doing a vPC of two or more ports.
Dual-homed
- The 2148 is not capable of doing a standard port-channel.
- The 2148 is not capable of doing a vPC.
- The 2248 is capable of doing a standard port-channel.
- The 2248 is not capable of doing a vPC.
Dual-homed - Enhanced vPC
- Supported from NX-OS 5.1(3)N1(1) and Nexus 5548P, 5548UP or 5596UP devices.
- The 2248 is capable of doing a standard port-channel.
- The 2248 is capable of doing a vPC of two or more ports.
Notes
- The 2148 and 2248 provide 48 x 1Gbps copper ports and 4 x 10 Gbps SFP+ ports.
- The 2148 does not support 10/100 Mbps.
- The 2248 does not support 10 Mbps.
# NetFlow configuration on Catalyst and Nexus switches
Background information
- The NetFlow cache on the Multilayer Switch Feature Card (MSFC) captures statistics for flows routed in software.
- The NetFlow cache on the Policy Feature Card (PFC) captures statistics for flows routed in hardware.
- A flow mask defines the format of a cache entry in the NetFlow cache table.
- You need to configure Netflow Data Export (NDE) to export NetFlow statistics to a NetFlow collector.
Catalyst NetFlow configuration
- MSFC configuration
Catalyst(config)#interface vlan10Catalyst(config-if)#ip route-cache flowCatalyst(config)#ip flow-export version 5Catalyst(config)#ip flow-cache timeout active 5Catalyst(config)#ip flow-cache timeout inactive 15
- PFC configuration
Catalyst(config)#mls netflowCatalyst(config)#mls flow ip full-interfaceCatalyst(config)#mls nde sender version 5Catalyst(config)#mls aging fastCatalyst(config)#mls aging long 300Catalyst(config)#mls aging normal 15
- Common configuration
Catalyst(config)#snmp-server ifindex persistCatalyst(config)#ip flow-export source loopback0Catalyst(config)#ip flow-export destination 10.0.0.1 9995
- Checks
Catalyst#show ip flow exportCatalyst#show ip cache flowCatalyst#show mls ndeCatalyst#show snmp mib ifmib ifindex
Nexus NetFlow configuration
- Configuration
Nexus(config)#feature netflowNexus(config)#flow exporter collectorNexus(config-flow-exporter)#description export netflow to collectorNexus(config-flow-exporter)#destination 10.0.0.1Nexus(config-flow-exporter)#version 5Nexus(config-flow-exporter)#source loopback0Nexus(config-flow-exporter)#transport udp 9995Nexus(config)#flow monitor monitor_nexusNexus(config-flow-monitor)#exporter collectorNexus(config-flow-monitor)#record netflow-originalNexus(config)#int vlan10Nexus(config-if)#ip flow monitor monitor_nexus inputNexus(config)#flow timeout active 300Nexus(config)#flow timeout inactive 15
- Checks
Nexus#show flow monitor monitor_nexusNexus#show flow exporter collectorNexus#show flow record netflow-originalNexus#show hardware flow ipNexus#show interface snmp-ifindex
# Nexus 5000 upgrade and downgrade procedure
Topology (Dual-Homed)
[N5k1]---PK---[N5k2]
[N5k1]---PL---[N5k2]
[N5k1]---vPC1---[N2k-fex101]
[N5k1]---vPC2---[N2k-fex102]
[N5k1]---vPC3---[N2k-fex103]
[N5k2]---vPC1---[N2k-fex101]
[N5k2]---vPC2---[N2k-fex102]
[N5k2]---vPC3---[N2k-fex103]
Determining the upgrade impact
If you are upgrading from a NX-OS release 4.2.(1)N1(1) or later releases, you are able to do an ISSU (In-Service Software Upgrade).
If the following commands pass the test, you can do a non-disruptive upgrade (ISSU), if not, you will have a disruptive upgrade:
N5k#show incompatibility system bootflash:n5000.binN5k#show install all impact kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.binN5k#show spanning-tree issu-impactN5k#show lacp issu-impact
Disruptive upgrade
1. Verify the required space to upload the kickstart and system images in the primary and secondary switches (N5k):
N5k1#2. If necessary, delete unneeded files to make space available.dir bootflash:N5k2#dir bootflash:
3. Copy the new kickstart and system images to the switches bootflash.
4. Display the impact of the upgrade:
N5k1#5. Upgrade the primary switch:show install all impact kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.binN5k2#show install all impact kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.bin
N5k1# install all kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.bin6. After the primary switch has been reloaded, change the boot variables on the secondary switch and save the configuration:N5k2(config)#7. Once done, reload from the secondary switch each FEX sequencially, one after the other:boot system bootflash:n5000.binN5k2(config)#boot kickstart bootflash:n5000-kickstart.binN5k2#copy running-configuration startup-configuration
N5k2#8. Finally, reload the secondary switch without saving the current configuration:reload fex 101N5k2#reload fex 102N5k2#reload fex 103
N5k2# reloadNonDisruptive upgrade
1. Verify the required space to upload the kickstart and system images in the primary and secondary switches (N5k):
N5k1#2. If necessary, delete unneeded files to make space available.dir bootflash:N5k2#dir bootflash:
3. Copy the new kickstart and system images to the switches bootflash.
4. Display the impact of the upgrade:
N5k1#5. Upgrade the primary switch:show install all impact kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.binN5k2#show install all impact kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.bin
N5k1# install all kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.bin6. After the primary switch has been reloaded, all FEX begin a rolling upgrade (automatic).
7. Once done, upgrade the secondary switch:
N5k2# install all kickstart bootflash:n5000-kickstart.bin system bootflash:n5000.binDowngrade
1. Verify the required space to upload the kickstart-old and system-old images in the switch (N5k):
N5k# dir bootflash:2. If necessary, delete unneeded files to make space available.3. Copy the kickstart-old and system-old images to the switch bootflash.
4. Display the impact of the upgrade:
N5k# show install all impact kickstart bootflash:n5000-kickstart-old.bin system bootflash:n5000-old.bin5. Downgrade the switch:N5k# install all kickstart bootflash:n5000-kickstart-old.bin system bootflash:n5000-old.binNotes
- An ISSU is a nondisruptive upgrade. The control plane is reloaded, but the data plane does not stop forwarding packets.
- The kickstart.bin contains the kickstart image.
- The system.bin contains the image, bios and fex images.
# vPC failure scenarios
Topology
[ N7K1 ]--- PK ---[ N7K2 ]
[ N7K1 ]--- PL ---[ N7K2 ]
[ N7K1 ]--- vPC ---[ N5K ]
[ N7K2 ]--- vPC ---[ N5K ]
Peer-Link goes down
[ N7K1 ]
- Peer-Link up --> down
- Peer-Keepalive up
- vPC up
- Role: primary
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive up
- vPC up ------> down (suspend)
- Role: secondary
Peer-Link is down and Peer-Keepalive goes down as well (dual active)
[ N7K1 ]
- Peer-Link down
- Peer-Keepalive up --> down
- vPC up
- Role: primary
[ N7K2 ]
- Peer-Link down
- Peer-Keepalive up --> down
- vPC down ------> up (if auto-recovery enabled)
- Role: secondary ------> primary (if auto-recovery enabled)
Peer-Keepalive goes down
[ N7K1 ]
- Peer-Link up
- Peer-Keepalive up --> down
- vPC up
- Role: primary
[ N7K2 ]
- Peer-Link up
- Peer-Keepalive up --> down
- vPC up
- Role: secondary
Peer-Keepalive is down and Peer-Link goes down as well (dual-active)
[ N7K1 ]
- Peer-Link up --> down
- Peer-Keepalive down
- vPC up
- Role: primary
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive down
- vPC up
- Role: secondary ------> primary (if auto-recovery enabled)
Peer-Link and Peer-Keepalive go down at the same time (dual-active)
[ N7K1 ]
- Peer-Link up --> down
- Peer-Keepalive up --> down
- vPC up
- Role: primary
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive up --> down
- vPC up
- Role: secondary ------> primary (if auto-recovery enabled)
All tracked objects go down on primary
[ N7K1 ]
- Peer-Link up --> down
- Peer-Keepalive up
- vPC up --> down
- Role: primary ------> secondary
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive up
- vPC up
- Role: secondary ------> primary
All tracked objects go down on primary and Peer-Keepalive goes down at the same time
[ N7K1 ]
- Peer-Link up --> down
- Peer-Keepalive up --> down
- vPC up --> down
- Role: primary
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive up --> down
- vPC up
- Role: secondary ------> primary (if auto-recovery enabled)
Primary has power failure and is shut down
[ N7K2 ]
- Peer-Link up --> down
- Peer-Keepalive up --> down
- vPC up
- Role: secondary ------> primary (if auto-recovery enabled)
# Cisco Nexus
Some Commands
- Hardware
- System utilization
- Piping
- Running config
- Interface ranges
- Shared or dedicated
- Licencing
- Modules
Virtual Device Context (VDC)
Four VDCs: Default VDC1 and 3 additional VDCs.
Virtual Port Channel (VPC)
Fabric EXtenders (FEX) ~ Nexus 2000 series
Deployment models:
- Static pinning (Nexus 5000 series)
- Dynamic pinning (Nexus 5000 and 7000 series)
- vPC (Nexus 5000 series)
Configuration Rollback
Role-Based Access Control (RBAC)
Ethanalyzer ~ a wrapper over tshark
VRF
Config-sync
In-Service Software Upgrade (ISSU)
- Hardware
NX-7K-1#show inventory! display chassis components NX-7K-1#show redundancy status! determine active supervisor NX-7K-1#show module! display individual modules NX-7K-1#show environment! display clock, fan, temperature, power NX-7K-1(config)#power redundancy-mode ?
- System utilization
NX-7K-1# show system resources- Piping
NX-7K-1# show run | ? ! last, tail, egrep, no-more, ...- Running config
NX-7K-1#show running-config ?NX-7K-1#show running-config all! display configuration with defaults
- Interface ranges
NX-7K-1(config)# int e2/4, e3/1-2 ! no range command- Shared or dedicated
NX-7K-1(config)#int e2/1, e2/3, e2/5, e2/7NX-7K-1(config-if)#shutdownNX-7K-1(config)#int e2/1NX-7K-1(config-if)#rate-mode dedicatedNX-7K-1(config-if)#no shutdown
- Licencing
NX-7K-1#show license host-idNX-7K-1#install license bootflash: NX7K-1234.licNX-7K-1#show license usage
- Modules
NX-7K-1#reload module ?NX-7K-1#attach module ?
Virtual Device Context (VDC)
Four VDCs: Default VDC1 and 3 additional VDCs.
NX-7K-1(config)#vdc VDC2 id 2NX-7K-1(config-vdc)#allocate interface e3/1-24NX-7K-1(config)#vdc VDC3 id 3NX-7K-1(config-vdc)#allocate interface e3/25-48NX-7K-1#show vdcNX-7K-1#show vdc membershipNX-7K-1#show run vdcNX-7K-1#switchto vdc VDC2NX-7K-1-VDC2#switchbackNX-7K-1#
Virtual Port Channel (VPC)
NX-7K-1(config)#feature vpcNX-7K-1(config)#vpc domain 10NX-7K-1(config-domain)#peer-switchNX-7K-1(config-domain)#peer-keepalive destination 10.10.10.2NX-7K-1#show vpc roleNX-7K-1#show vpc peer-keepaliveNX-7K-1(config)#interface port-channel 10NX-7K-1(config-if)#switchport mode trunkNX-7K-1(config-if)#switchport trunk allowed vlan 100-105! vPC VLANs NX-7K-1(config-if)#switchport trunk native 100NX-7K-1(config-if)#vpc peer-linkNX-7K-1#show vpc briefNX-7K-1(config)#interface ethernet 1/1-2NX-7K-1(config-if-range)#channel-group 11 mode activeNX-7K-1(config)#interface port-channel 11NX-7K-1(config-if)#switchport mode trunkNX-7K-1(config-if)#vpc 11NX-7K-2(config)#feature vpcNX-7K-2(config)#vpc domain 10NX-7K-2(config-domain)#peer-switchNX-7K-2(config-domain)#peer-keepalive destination 10.10.10.1NX-7K-2(config)#interface port-channel 10NX-7K-2(config-if)#switchport mode trunkNX-7K-2(config-if)#switchport trunk allowed vlan 100-105! vPC VLANs NX-7K-2(config-if)#switchport trunk native 100NX-7K-2(config-if)#vpc peer-linkNX-7K-2(config)#interface ethernet 2/7-8NX-7K-2(config-if-range)#channel-group 11 mode activeNX-7K-2(config)#interface port-channel 11NX-7K-2(config-if)#switchport mode trunkNX-7K-2(config-if)#vpc 11NX-7K-2#show vpc consistency-parameters global
Fabric EXtenders (FEX) ~ Nexus 2000 series
Deployment models:
- Static pinning (Nexus 5000 series)
NX-5K-1(config)#feature fexNX-5K-1(config)#fex 100NX-5K-1(config-fex)#pinning max-links 4NX-5K-1(config)#int ethernet 1/1-4NX-5K-1(config-if)#switchport mode fex-fabricNX-5K-1(config-if)#fex associate 100NX-5K-1#show fex 100NX-5K-1#show fex detailNX-5K-1#show module fex
- Dynamic pinning (Nexus 5000 and 7000 series)
NX-5K-1(config)#feature fexNX-5K-1(config)#fex 101NX-5K-1(config-fex)#pinning max-links 1NX-5K-1(config)#int ethernet 1/9-12NX-5K-1(config-if)#switchport mode fex-fabricNX-5K-1(config-if)#channel-group 11NX-5K-1(config)#int port-channel 11NX-5K-1(config-if)#fex associate 101NX-5K-1#show int port-channel 11 fex-intfNX-5K-1#show module fex
- vPC (Nexus 5000 series)
NX-5K-1(config)#feature fexNX-5K-1(config)#fex 102NX-5K-1(config-fex)#pinning max-links 1NX-5K-1(config)#int ethernet 1/17-20NX-5K-1(config-if)#switchport mode fex-fabricNX-5K-1(config-if)#channel-group 12NX-5K-1(config)#feature vpc! vPC domain configuration NX-5K-1(config)#int port-channel 12NX-5K-1(config-if)#vpc 12NX-5K-1(config-if)#fex associate 102NX-5K-1#show int port-channel 12 fex-intfNX-5K-1#show module fex
Configuration Rollback
NX-7K-1#checkpoint CP1 description First checkpointNX-7K-1#show checkpoint summaryNX-7K-1#rollback running-config checkpoint CP1
Role-Based Access Control (RBAC)
NX-7K-1(config)#role name L3-adminNX-7K-1(config-role)#rule 1 permit read-write feature-group L3NX-7K-1(config-role)#vlan policy denyNX-7K-1(config-role-vlan)#permit vlan 1-100NX-7K-1(config-role)#vrf policy denyNX-7K-1(config-role-vlan)#permit vrf VRF1NX-7K-1(config-role-vlan)#permit vrf VRF2NX-7K-1#show role
Ethanalyzer ~ a wrapper over tshark
NX-7K-1#ethanalyzer local interface inband brief limit-captured-frames 10NX-7K-1#ethanalyzer local interface inband limit-captured-frames 1
VRF
NX-7K-1#show ip int brief! default VRF NX-7K-1#show ip int brief vrf managementNX-7K-1#ping 10.1.1.1 vrf managementNX-7K-1#routing-context vrf managementNX-7K-1%management#ping 10.1.1.1NX-7K-1%management#routing-context vrf defaultNX-7K-1#
Config-sync
NX-7K-1#configure syncNX-7K-1(config-sync)#switch-profile PROFILE1NX-7K-2#configure syncNX-7K-2(config-sync)#switch-profile PROFILE1NX-7K-2(config-sync-sp)#import interface po10NX-7K-2(config-sync-sp-import)#verifyNX-7K-2(config-sync-sp-import)#show switch-profile PROFILE1 bufferNX-7K-2(config-sync-sp-import)#show switch-profile PROFILE1 statusNX-7K-2(config-sync-sp-import)#commitNX-7K-1(config-sync-sp)#sync-peers destination 10.0.0.2NX-7K-2(config-sync-sp)#sync-peers destination 10.0.0.1NX-7K-2(config-sync-sp)#int po10NX-7K-2(config-sync-sp-if)#spanning-gree port type edge trunkNX-7K-2(config-sync-sp)#verifyNX-7K-2(config-sync-sp)#commitNX-7K-2#show running-config switch-profile
In-Service Software Upgrade (ISSU)
NX-7K-2#show incompatibility system n7000.binNX-7K-2#install all kickstart n7000-kickstart.bin system n7000.binNX-7K-2#system switchoverNX-7K-1#show incompatibility system n7000.binNX-7K-1#install all kickstart n7000-kickstart.bin system n7000.binNX-7K-1#system switchover
Subscribe to:
Posts (Atom)