Inleiding
In dit document wordt beschreven hoe u problemen kunt oplossen met een stapel Catalyst 9000-switches die de Standby-rol missen.
Voorwaarden
Vereisten
Cisco raadt kennis van de volgende onderwerpen aan:
- Basiskennis van LAN-switchtechnologieën
- Kenmerken van de Catalyst 9000 switch
Gebruikte componenten
De informatie in dit document is gebaseerd op de volgende software- en hardware-versies:
- Hardware: Switches uit de Cisco Catalyst 9000-reeks
- Softwareversie: Cisco IOS XE
De informatie in dit document is gebaseerd op de apparaten in een specifieke laboratoriumomgeving. Alle apparaten die in dit document worden beschreven, hadden een opgeschoonde (standaard)configuratie. Als uw netwerk live is, moet u zorgen dat u de potentiële impact van elke opdracht begrijpt.
Achtergrondinformatie
1:1-redundantie wordt gebruikt om actieve en standby-rollen toe te wijzen aan specifieke switches in de stapel. Dit gaat voorbij aan het traditionele N+1-rolselectiealgoritme, waarbij elke switch in de stapel actief of stand-by kan zijn. In 1:1-redundantie bepaalt de stapelbeheerder de actieve en standby-rol voor een specifieke switch, op basis van de Flash ROMMON-variabele. Het algoritme wijst één switch als actief toe, een andere switch als stand-by, waarbij alle resterende switches in de stapel als leden worden aangeduid. Wanneer een actieve switch opnieuw wordt opgestart, wordt deze stand-by en wordt de bestaande stand-by-switch de nieuwe actieve. De huidige switches blijven in dezelfde staat.
In een netwerkomgeving met Cisco Catalyst 9000 Series-switches is een probleem waargenomen waarbij de rol van de stand-by-switch ontbreekt. Dit document biedt een gedetailleerde analyse van het probleem en de stappen om het op te lossen.
Probleem
Het probleem werd vastgesteld wanneer de stapel switches niet de standby-rol heeft.
Dit is de output die het probleem laat zien:
Switch#show switch
Switch/Stack Mac Address : 8c44.a5a4.9d00 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
-------------------------------------------------------------------------------------
*1 Active 8c44.a5a4.9d00 15 V03 Ready
2 Member 8c44.a5a5.2380 14 V03 Ready <<< Missing Standby Mode
In de ROMMON-variabelen werd deze waarde waargenomen:
Switch#show romvar switch all
<SNIP>
RET_2_RTS=
ROMMON_AUTOBOOT_ATTEMPT=3
STACK_1_1=1_0 <<< This indicates that switch 1 is Active and no switch is marked for the Standby role
STACK_HIGH_SPEED=1
SWITCH_DISABLE_PASSWORD_RECOVERY=0
SWITCH_NUMBER=2
<SNIP>
Deze variabele kan aanwezig zijn op alle of slechts 1 lid van de stapel. Dit kan in beide gevallen problemen veroorzaken.
Oplossing
Optie 1: Stapelmodus wissen
De stapelmodus moet worden gewist op de switches in de stapel. Neem deze stappen:
Stap 1: De stapelmodus wissen
Switch# switch clear stack-mode
WARNING: Clearing the chassis HA configuration will result in both the chassis move into Stand Alone mode. This involves reloading the standby chassis
after clearing its HA configuration and coming up with all interfaces in shutdown mode. Do you wish to continue? [y/n]? [yes]: yes
Switch# copy running-config startup-config
Stap 2: De stapel opnieuw laden
Switch# reload
Stap 3: Verifiëren
Switch#show romvar switch all
<SNIP>
RET_2_RTS=
ROMMON_AUTOBOOT_ATTEMPT=3
STACK_1_1=0_0 <<< This indicate that no switch in the stack is marked as Active nor Standby. The switch will choose them upon booting
STACK_HIGH_SPEED=1
SWITCH_DISABLE_PASSWORD_RECOVERY=0
SWITCH_NUMBER=2
<SNIP>
Dit is de standaardwaarde waarbij de stapel de actieve en de standby-rol kiest op basis van prioriteit. Als de stapelmodus niet eerder in de switch is gewijzigd, wordt de variabele "STACK_1_1" niet weergegeven in de ROMMON-variabelen, wat aangeeft dat de waarde standaard is (STACK_1_1=0_0).
Optie 2: Switch toewijzen met de standby-rol
U kunt de opdracht switch-switch-nummer gebruiken om de stand-by-switch in de stapelmodus 1:1 in te stellen. De stapel werkt in de 1:1-stapelmodus met de opgegeven actieve of stand-by na opnieuw opstarten. In dit voorbeeld krijgt switch 2 de standby-rol toegewezen.
Stap 1: Switch 2 instellen als stand-by
Switch#
switch 2 role standby
WARNING: Changing the switch role may result in redundancy mode being configured to 1+1 mode for this stack. If the configured Active or Standby switch numbers do not boot up, then the stack will not be able to boot. Do you want to continue?[y/n]? [yes]: yes
Stap 2: De stapel opnieuw laden
Switch# reload
Stap 3: Verifiëren
Switch#show romvar switch all
<SNIP>
RET_2_RTS=
ROMMON_AUTOBOOT_ATTEMPT=3
STACK_1_1=1_2 <<< This indicates that switch 1 is Active and switch 2 is the Standby
STACK_HIGH_SPEED=1
SWITCH_DISABLE_PASSWORD_RECOVERY=0
SWITCH_NUMBER=2
<SNIP>
Gerelateerde informatie