From 904728031c859fe81356830cf4474d7df9db52d9 Mon Sep 17 00:00:00 2001 From: jdubois Date: Tue, 26 Oct 2021 11:50:45 +0200 Subject: [PATCH] Ajout doc SPAN pour Nexus 3000 --- SwitchCisco.md | 61 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/SwitchCisco.md b/SwitchCisco.md index e6cd4448..fc2710d5 100644 --- a/SwitchCisco.md +++ b/SwitchCisco.md @@ -1603,6 +1603,47 @@ Switch(config)# snmp-server community private use-ipv4acl snmp-rw Switch(config)# snmp-server community private group ifXTable_only ~~~ +### STP : Spanning Tree Protocol + +* Synchro immédiate : Spanning Tree Portfast => Spanning Tree Port Type Edge + +Le nom "portfast" n'existe pas sous Nexus, c'est une notion de "port type" qui est utilisé. Lorsque le port est connecté à une machine finale, c'est un port de type `edge` (de bord, d'extrémité). + +Activer le Port Type Edge : + +~~~ +Switch(config)# interface GigabitEthernet0/28 +Switch(config-if)# spanning-tree port type edge +~~~ + +Désactiver le Port Type Edge : + +~~~ +Switch(config)# interface GigabitEthernet0/28 +Switch(config-if)# no spanning-tree port type edge +~~~ + +### SPAN : Switch Port Analyzer (Port mirroring) + +Activer le port mirroring, en copiant la sortie des ports Eth1/1 à Eth1/3 vers le port Eth1/5 : + +~~~ +Switch(config)# interface ethernet 1/5 +Switch(config-if)# switchport monitor +Switch(config-if)# exit +Switch(config)# monitor session 1 type local +Switch(config-monitor)# source interface ethernet 1/1-3 tx +Switch(config-monitor)# destination interface ethernet 1/5 +Switch(config-monitor)# no shut +~~~ + +Désactiver le port mirroring en gardant la configuration : + +~~~ +Switch(config)# monitor session 1 type local +Switch(config-monitor)# shut +~~~ + ### Cron / tâches planifiées Exemple pour sauvegarder périodiquement la configuration du switch : @@ -1631,26 +1672,6 @@ Switch(config-schedule)# job name backupConfig Switch(config-schedule)# time daily 01:15 ~~~ -### STP : Spanning Tree Protocol - -* Synchro immédiate : Spanning Tree Portfast => Spanning Tree Port Type Edge - -Le nom "portfast" n'existe pas sous Nexus, c'est une notion de "port type" qui est utilisé. Lorsque le port est connecté à une machine finale, c'est un port de type `edge` (de bord, d'extrémité). - -Activer le Port Type Edge : - -~~~ -Switch(config)# interface GigabitEthernet0/28 -Switch(config-if)# spanning-tree port type edge -~~~ - -Désactiver le Port Type Edge : - -~~~ -Switch(config)# interface GigabitEthernet0/28 -Switch(config-if)# no spanning-tree port type edge -~~~ - ### VPC : Virtual Port-Channel Ressources : ,