annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
cancel
615
Visites
5
Compliment
1
Réponses

Interface tracking on physical interface

Bonjour,

J'ai 2 Catalyst 9500 exécutant le logiciel IOS XE, version 16.12.04 Ces 2 9500 sont interconnectés par un port-channel L2
Je voudrais activer le tracking du port-channel afin que si le port-channel tombe en panne, je puisse arrêter d'autres interfaces.

Tout ce que j'ai trouvé, c'est le tracking sur l'interface HRSP ou le tracking du routage IP. Comment arrêter automatiquement une série d'interfaces lorsque l'interface port-channel tombe en panne ?
Je commence à configurer un tracking objet mais comment agir en fonction de l'état de cet objet sur d'autres interfaces physiques ?

track 1 interface Port-channel1 line-protocol

DC_UP_CORE#sh track
Track 1
Interface Port-channel1 line-protocol
Line protocol is Up
1 change, last change 00:43:59

Merci beaucoup
Salutations
Frédéric

Texte d'origine:

Hello,

I have 2 catalyst 9500 running IOS XE Software, Version 16.12.04 
Those 2 9500 are interconnected by an L2  port-channel 

I would like to activate tracking of the port-channel so that If the port-channel goes down, I can shut down other interfaces .

All what I found is tracking on HRSP interface or Ip routing tracking.
How to automatically shutdown a serie of interfaces when the port-channel interface goes down ?

I start configuring a tracking object but how to take action based on the status of this object on other physical interfaces ?

track 1 interface Port-channel1 line-protocol

DC_UP_CORE#sh track
Track 1
Interface Port-channel1 line-protocol
Line protocol is Up
1 change, last change 00:43:59

Thanks a lot 

Regards

Frédéric

 

1 RÉPONSE 1

Philippe Junior E. Volcy
Cisco Employee
Cisco Employee

Hello Frédéric,

 

Dans ce cas là j´utiliserais  un  applets EEM qui vérifie si le switch envoie un syslog message concernant le port-channel qui tombe en panne et en consequence arrête d'autres interfaces.

 

Dans mon cas j´utilise le log : "  Interface TenGigabitEthernet1/1/1, changed state to down " . Vérifie l´exact log utilisant la commande:  show logging et utilise le même example , dans ton cas l´interface sera le port-channel.

 

 

 

logging buffered 214748364 debugging<<<<<<<<<<<  utilise la RAM du routeur pour stocker les messages .

logging monitor debugging

 

username eem privilege  15 password  eem<<<<<<<<<< configure un utilisateur et un mot de passe pour pouvoir executer le script

exit

 

conf t

event manager session cli username "eem"

event manager applet test

 

event syslog occurs 1 pattern "Interface TenGigabitEthernet1/1/1, changed state to down" period 1<<<<< vérifie l´interface  en panne

action 1.1 cli command "enable"

action 1.2 cli command "configure terminal"

action 1.3 cli command "interface TenGigabitEthernet1/1/2"

action 1.4 cli command "no shut"<<<<<<<<<<< arrêter l´interface TenGigabitEthernet1/1/2 en conséquence

 

 

 

Je te laisse les liens sur comment utiliser les applets EEM :

https://learningnetwork.cisco.com/s/article/understanding-cisco-eem-by-examples-part-1

https://community.cisco.com/t5/networking-documents/cisco-eem-basic-overview-and-sample-configurations/ta-p/3148479

 

J´éspère avoir pu t´aider