informatique:extreme_networks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:extreme_networks [2025/04/16 10:06] – [Firmware] Erreurs rencontrées pteu | informatique:extreme_networks [2026/10/19 15:41] (current) – [BGP] Vérifier les attributs envoyés pteu | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| =====Licences===== | =====Licences===== | ||
| - | Certaines fonctionnalités sont restreintes à un certain niveau de licence. | + | Certaines fonctionnalités sont restreintes à un certain niveau de licence. A partir du voucher, générer la clé de licence sur le portail Extreme [[https:// |
| - | Procédure pour changer la licence d'un stack : | + | Dans le cas d'un switch universel, de modèle 5000 : une fois la clé de licence récupérée, |
| + | <code bash> | ||
| + | tftp get serveur-tftp vr VR-Mgmt lservlcXXXXXXX-XXXPRD-5000-PRMR.lic | ||
| + | install license file lservlcXXXXXXX-XXXPRD-5000-PRMR.lic | ||
| + | |||
| + | # vérification: | ||
| + | show licenses | ||
| + | Enabled License Level: | ||
| + | Premier | ||
| + | Enabled Feature Packs: | ||
| + | None | ||
| + | </ | ||
| + | |||
| + | Procédure pour changer la licence d'un stack (dans le cas de switch non-universels, | ||
| <code bash> | <code bash> | ||
| # on enlève la restriction de licence sur le slot4 (s'il y en a une) | # on enlève la restriction de licence sur le slot4 (s'il y en a une) | ||
| Line 48: | Line 61: | ||
| </ | </ | ||
| + | Dans le cas | ||
| =====Système===== | =====Système===== | ||
| Line 120: | Line 133: | ||
| Supported: | Supported: | ||
| Wavelength: | Wavelength: | ||
| + | |||
| + | |||
| + | # plus précis | ||
| + | show port 5 transceiver information detail | ||
| + | Port : 5 | ||
| + | |||
| + | Media Type : LX (Unsupported) | ||
| + | SKU : N/A | ||
| + | Vendor Name : OEM | ||
| + | Vendor Date : 06/19/17 | ||
| + | Vendor Revision | ||
| + | Part Number | ||
| + | Serial Number | ||
| + | Power Up Counter | ||
| + | Wavelength | ||
| + | |||
| + | Temp (Celsius) | ||
| + | Low Warn Threshold | ||
| + | Low Alarm Threshold : -10.00 | ||
| + | |||
| + | Voltage AUX-1/Vcc (Volts) : 3.29 | ||
| + | Low Warn Threshold | ||
| + | Low Alarm Threshold : 3.00 High Alarm Threshold : 3.60 | ||
| + | |||
| + | |||
| + | Tx Power (dBm) : -5.71 | ||
| + | Low Warn Threshold | ||
| + | Low Alarm Threshold : -10.00 | ||
| + | Tx DDM : N/A Tx DDM Last Gasp : | ||
| + | |||
| + | Rx Power (dBm) : -5.88 | ||
| + | Low Warn Threshold | ||
| + | Low Alarm Threshold : -21.02 | ||
| + | Rx DDM : N/A Rx DDM Last Gasp : | ||
| + | |||
| + | Tx Bias Current (mA) : 16.40 Status | ||
| + | Low Warn Threshold | ||
| + | Low Alarm Threshold : 1.00 High Alarm Threshold : 90.00 | ||
| + | ================================================================================= | ||
| + | N/A - parameter not applicable to transceiver connected to the port | ||
| + | -inf - negative infinity, parameter not defined | ||
| </ | </ | ||
| Line 299: | Line 353: | ||
| # Lister les clés configurées sur le switch: | # Lister les clés configurées sur le switch: | ||
| show sshd2 user-key | show sshd2 user-key | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====Iimporter un certificat SSL==== | ||
| + | |||
| + | Pour mettre en place du rsyslog TLS ou un certificat pour l' | ||
| + | |||
| + | Importer la CA au format PEM texte (le fichier doit commencer par la ligne "< | ||
| + | <code bash> | ||
| + | download ssl 10.0.0.1 certificate trusted-ca ca.pem | ||
| + | </ | ||
| + | Celui-ci doit avoir les bons flags, notamment dans les extensions X509v3: | ||
| + | * **Basic Constraints**: | ||
| + | * **Subject key identifier** | ||
| + | * **Authority key identifier** | ||
| + | * **Key Usage**: Digital signature, Certificate Sign | ||
| + | |||
| + | Importer le certificat du commutateur : | ||
| + | <code bash> | ||
| + | download ssl 10.0.0.1 certificate ssl-cert commutateur.pem | ||
| + | Warning: | ||
| + | SSL Certificate and Key do not match. | ||
| + | Please load new Key now. | ||
| + | New Certificate will be usable after restart of thttpd process.. | ||
| + | ! | ||
| + | download ssl 10.0.0.1 certificate privkey commutateur.key | ||
| </ | </ | ||
| Line 489: | Line 569: | ||
| .1.3.6.1.2.1.1.1.0 description système/ | .1.3.6.1.2.1.1.1.0 description système/ | ||
| .1.3.6.1.2.1.1.3.0 | .1.3.6.1.2.1.1.3.0 | ||
| + | ! | ||
| + | .1.3.6.1.2.1.17.7.1.4.2.1.3 liste des VLANs sur le switch | ||
| + | ! | ||
| .1.3.6.1.4.1.1916.1.1.1.34.1.10.3 idem | .1.3.6.1.4.1.1916.1.1.1.34.1.10.3 idem | ||
| .1.3.6.1.4.1.1916.1.1.1.13.0 primary system image | .1.3.6.1.4.1.1916.1.1.1.13.0 primary system image | ||
| Line 607: | Line 689: | ||
| * via clé USB | * via clé USB | ||
| + | |||
| + | ref: [[https:// | ||
| + | |||
| + | Avant EXOS 31.1: | ||
| <code bash> | <code bash> | ||
| - | # puis vérifier qu' | + | # vérifier qu' |
| show memorycard | show memorycard | ||
| Line 617: | Line 703: | ||
| This image will be used only after rebooting the switch! | This image will be used only after rebooting the switch! | ||
| </ | </ | ||
| + | |||
| + | Depuis la version EXOS 31.1 | ||
| + | <code bash> | ||
| + | # vérifier que la clé USB est reconnue et montée (elle doit être en FAT32) | ||
| + | show switch mounts | ||
| + | Memory storage is present. | ||
| + | ! | ||
| + | show switch usb | ||
| + | USB port: Disabled | ||
| + | # Si KO, activer la prise en chagre de l'USB | ||
| + | enable switch usb | ||
| + | This setting will take effect at the next system reboot | ||
| + | |||
| + | # la clé USB est montée ici: | ||
| + | ls / | ||
| + | -rwxrwxr-- | ||
| + | [..] | ||
| + | |||
| + | # copier l' | ||
| + | download url file:/// | ||
| + | </ | ||
| + | |||
| + | Puis '' | ||
| * via scp | * via scp | ||
| Line 1212: | Line 1321: | ||
| enable radius netlogin | enable radius netlogin | ||
| </ | </ | ||
| + | |||
| + | NB: le VLAN d' | ||
| ===Configuration côté serveur Radius=== | ===Configuration côté serveur Radius=== | ||
| Line 1241: | Line 1352: | ||
| [...] | [...] | ||
| </ | </ | ||
| + | |||
| + | ====PoE==== | ||
| + | |||
| + | <code bash> | ||
| + | show inline-power | ||
| + | Inline Power System Information | ||
| + | Configured | ||
| + | Power Usage Threshold | ||
| + | Disconnect Precedence | ||
| + | Inline Power budget | ||
| + | | ||
| + | Firmware Status | ||
| + | Operational | ||
| + | |||
| + | |||
| + | show inline-power info ports 1 | ||
| + | Port State | ||
| + | (mA) | ||
| + | 1 | ||
| + | </ | ||
| + | |||
| + | =====DHCP snooping===== | ||
| + | |||
| + | Le DHCP snooping est un service de sécurité qui permet de spécifier à un switch où (sur quel port) est situé le serveur DHCP légitime, afin qu'il bloque les flux DHCP illicites émanant des ports utilisateur. On ne l' | ||
| + | |||
| + | Le DHCP snooping s' | ||
| + | |||
| + | On peut choisir l' | ||
| + | |||
| + | <code bash> | ||
| + | # définir un serveur DHCP par VLAN (limité à 8) | ||
| + | configure trusted-servers vlan v2 add server 192.168.1.253 trust-for dhcp-server | ||
| + | # alternative: | ||
| + | configure trusted-port 1 trust-for dhcp-server | ||
| + | |||
| + | # activer la protection sur les ports utilisateur et bloquer pour 1h l' | ||
| + | enable ip-security dhcp-snooping vlan v2 port 2-48 violation-action drop-packet block-mac duration 3600 snmp-trap | ||
| + | </ | ||
| + | |||
| + | Vérifications | ||
| + | <code bash> | ||
| + | show ip-security dhcp-snooping vlan v2-Commerciaux | ||
| + | show configuration ipSecurity | ||
| + | </ | ||
| + | |||
| + | Logs typiques : | ||
| + | <code bash> | ||
| + | 03/03/2026 15:56:41.76 < | ||
| + | 03/03/2026 15:56:41.76 < | ||
| + | </ | ||
| =====Spanning-tree===== | =====Spanning-tree===== | ||
| Line 1750: | Line 1911: | ||
| ====BGP==== | ====BGP==== | ||
| - | Le BGP n' | + | Le BGP n' |
| Exemple de configuration BGP simple et exhaustive : | Exemple de configuration BGP simple et exhaustive : | ||
| Line 1759: | Line 1920: | ||
| configure vr VR-Default del ports 15 | configure vr VR-Default del ports 15 | ||
| configure vr VR-BGP add ports 15 | configure vr VR-BGP add ports 15 | ||
| - | # activation du BGP sur le VR-BGP | + | # activation du BGP sur le VR-BGP |
| configure vr VR-BGP add protocol bgp | configure vr VR-BGP add protocol bgp | ||
| Line 1795: | Line 1956: | ||
| On peux ajouter une protection par mot de passe MD5 : | On peux ajouter une protection par mot de passe MD5 : | ||
| <code bash> | <code bash> | ||
| - | configure bgp neighbor 10.55.6.92 password | + | configure bgp neighbor 10.55.6.92 password |
| </ | </ | ||
| Line 1811: | Line 1972: | ||
| then { deny; } | then { deny; } | ||
| } | } | ||
| + | |||
| + | # vérification de la routemap | ||
| + | check policy BGP-in | ||
| # application de la routemap | # application de la routemap | ||
| Line 1818: | Line 1982: | ||
| Après la MAJ d'une policy, pour qu' | Après la MAJ d'une policy, pour qu' | ||
| <code bash> | <code bash> | ||
| - | check policy BGP-in.pol | + | check policy BGP-in.pol |
| - | refresh policy BGP-in | + | refresh policy BGP-in |
| configure bgp soft-reconfiguration | configure bgp soft-reconfiguration | ||
| </ | </ | ||
| Line 1856: | Line 2020: | ||
| show bgp neighbor 10.55.200.92 accepted-routes all | show bgp neighbor 10.55.200.92 accepted-routes all | ||
| show bgp neighbor 10.55.200.92 rejected-routes all | show bgp neighbor 10.55.200.92 rejected-routes all | ||
| + | [...] | ||
| + | BGP Route Statistics | ||
| + | Total Rxed Routes : 8 | ||
| + | Rejected Routes | ||
| + | Unfeasible Routes : 0 | ||
| ! | ! | ||
| show bgp neighbor 10.55.200.92 transmitted-routes all | show bgp neighbor 10.55.200.92 transmitted-routes all | ||
| Line 1866: | Line 2035: | ||
| show bgp neighbor 10.55.200.92 suppressed-routes all | show bgp neighbor 10.55.200.92 suppressed-routes all | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 80%> | ||
| + | Les commandes précédentes n' | ||
| + | </ | ||
| + | |||
| + | ===Envoyer des attributs=== | ||
| + | |||
| + | Pour envoyer/ | ||
| + | <conf bash> | ||
| + | configure bgp neighbor 10.0.0.2 send-community both | ||
| + | </ | ||
| + | |||
| + | Puis, créer une condition dans la policy (ici **BGP-out.pol**) BGP out du voisin souhaité : | ||
| + | <code bash BGP-out.pol> | ||
| + | @description routemap BGP out vers 10.0.0.2 | ||
| + | # on envoie la commu uniquement pour l'une ou l' | ||
| + | entry send-commu { | ||
| + | if match any { | ||
| + | nlri 10.31.6.8/ | ||
| + | nlri 10.31.7.8/ | ||
| + | } | ||
| + | then { | ||
| + | community set " | ||
| + | permit; } | ||
| + | } | ||
| + | </ | ||
| + | Puis, vérifier la syntaxe et rafraîchir la policy (ou l' | ||
| + | <code bash> | ||
| + | check policy BGP-out | ||
| + | refresh policy BGP-out | ||
| + | # ou | ||
| + | #configure bgp neighbor 10.0.0.2 route-policy out BGP-out | ||
| + | </ | ||
| + | |||
| + | Et forcer la MAJ vers les voisins : | ||
| + | <code bash> | ||
| + | configure bgp soft-reconfiguration | ||
| + | </ | ||
| + | |||
| + | Vérifier les attributs envoyés (ici vers le voisin " | ||
| + | <code bash> | ||
| + | show bgp neighbor " | ||
| + | |||
| + | Advertised Routes: | ||
| + | Route: 10.31.6.8/ | ||
| + | Origin IGP, Next-Hop 10.0.65.3, MED 0 | ||
| + | As-PATH: 64512 | ||
| + | Community: 123456789 | ||
| + | Ext Community: rt: | ||
| + | |||
| + | BGP Route Statistics Matching the Display Criteria | ||
| + | Advertised Routes : 1 | ||
| </ | </ | ||
informatique/extreme_networks.1744797974.txt.gz · Last modified: 2025/04/16 10:06 by pteu