Utilisation de SNMP pour trouver un numéro de port d'une adresse MAC sur un commutateur Catalyst

Documents pareils
SNMP for cloud Jean Parpaillon. SNMP4cloud - 1

Surveillance du réseau et de gestion Introduction à SNMP

Problème physique. CH5 Administration centralisée

Exercices sur SQL server 2000

Exercice Packet Tracer : configuration de réseaux locaux virtuels et d agrégations

RULE 5 - SERVICE OF DOCUMENTS RÈGLE 5 SIGNIFICATION DE DOCUMENTS. Rule 5 / Règle 5

Chapitre 7. Le Protocole SNMP 7.1 INTRODUCTION COMPOSANTES POUR L UTILISATION FONCTIONNEMENT LE PAQUET SNMPV1...

Master d'informatique. Réseaux. Supervision réseaux

I>~I.J 4j1.bJ1UlJ ~..;W:i 1U

TABLE DES MATIERES A OBJET PROCEDURE DE CONNEXION

VTP. LAN Switching and Wireless Chapitre 4

DOCUMENTATION - FRANCAIS... 2

Instructions Mozilla Thunderbird Page 1

LOGICIEL D'ADMINISTRATION POUR E4000 & G4000 MANAGEMENT SOFTWARE FOR E4000 & G4000

Supervision et infrastructure - Accès aux applications JAVA. Document FAQ. Page: 1 / 9 Dernière mise à jour: 15/04/12 16:14

Paxton. ins Net2 desktop reader USB

THE LAW SOCIETY OF UPPER CANADA BY-LAW 19 [HANDLING OF MONEY AND OTHER PROPERTY] MOTION TO BE MOVED AT THE MEETING OF CONVOCATION ON JANUARY 24, 2002

PRACTICE DIRECTION ON THE LENGTH OF BRIEFS AND MOTIONS ON APPEAL

APPENDIX 6 BONUS RING FORMAT

Configuration des VLAN

Le No.1 de l économie d énergie pour patinoires.

Règlement sur le télémarketing et les centres d'appel. Call Centres Telemarketing Sales Regulation

Compte-rendu de TP SNMP. Simple Network Management Protocol. Charles Daniel Romain Halbardier

lundi 3 août 2009 Choose your language What is Document Connection for Mac? Communautés Numériques L informatique à la portée du Grand Public

Acce s aux applications informatiques Supply Chain Fournisseurs

CONVENTION DE STAGE TYPE STANDART TRAINING CONTRACT

calls.paris-neuroscience.fr Tutoriel pour Candidatures en ligne *** Online Applications Tutorial

Exercice Packet Tracer : Configuration de base des réseaux locaux virtuels

FÉDÉRATION INTERNATIONALE DE NATATION Diving

Compte-rendu technique complet et détaillé des cookies

The Simple Network Managment Protocol (SNMP)

Travaux pratiques : dépannage de la configuration et du placement des listes de contrôle d'accès Topologie

IPSAS 32 «Service concession arrangements» (SCA) Marie-Pierre Cordier Baudouin Griton, IPSAS Board

ETABLISSEMENT D ENSEIGNEMENT OU ORGANISME DE FORMATION / UNIVERSITY OR COLLEGE:

TD4 - Supervision et métrologie des réseaux. 1 Supervision des applications et services réseaux et des ressources locales

Frequently Asked Questions

Surveillance de Scripts LUA et de réception d EVENT. avec LoriotPro Extended & Broadcast Edition

DOCUMENTATION - FRANCAIS... 2

First Nations Assessment Inspection Regulations. Règlement sur l inspection aux fins d évaluation foncière des premières nations CONSOLIDATION

TP réseau Les réseaux virtuels (VLAN) Le but de se TP est de segmenter le réseau d'une petite entreprise dont le câblage est figé à l'aide de VLAN.

NORME INTERNATIONALE INTERNATIONAL STANDARD. Dispositifs à semiconducteurs Dispositifs discrets. Semiconductor devices Discrete devices

APPENDIX 2. Provisions to be included in the contract between the Provider and the. Holder

POLICY: FREE MILK PROGRAM CODE: CS-4

WEB page builder and server for SCADA applications usable from a WEB navigator

ONTARIO Court File Number. Form 17E: Trial Management Conference Brief. Date of trial management conference. Name of party filing this brief

P R E T S P R E F E R E N T I E L S E T S U B V E N T I O N S D I N T E R Ê T S

Compte-rendu technique complet et détaillé des cookies

Utiliser une WebCam. Micro-ordinateurs, informations, idées, trucs et astuces

Project 1 Experimenting with Simple Network Management Tools. ping, traceout, and Wireshark (formerly Ethereal)

EN UNE PAGE PLAN STRATÉGIQUE

Improving the breakdown of the Central Credit Register data by category of enterprises

Mise en place d un cluster NLB (v1.12)

Guide d'installation rapide TFM-560X YO.13

Stakeholder Feedback Form January 2013 Recirculation

Practice Direction. Class Proceedings

NAC 4.5 : Exemple de configuration d'import-export de stratégie

86 rue Julie, Ormstown, Quebec J0S 1K0

Guide d installation Deco Drain inc. DD200

Supervision de réseau

TP Configuration de l'authentification OSPF

INDIVIDUALS AND LEGAL ENTITIES: If the dividends have not been paid yet, you may be eligible for the simplified procedure.

Commutateur Cisco SRW ports Gigabit : WebView Commutateurs gérés Cisco Small Business

Formulaire de candidature pour les bourses de mobilité internationale niveau Master/ Application Form for International Master Scholarship Programme

Garage Door Monitor Model 829LM

Discours du Ministre Tassarajen Pillay Chedumbrum. Ministre des Technologies de l'information et de la Communication (TIC) Worshop on Dot.

INVESTMENT REGULATIONS R In force October 1, RÈGLEMENT SUR LES INVESTISSEMENTS R En vigueur le 1 er octobre 2001

OUVRIR UN COMPTE CLIENT PRIVÉ

Configuration du matériel Cisco. Florian Duraffourg

CONSOLIDATION DES COMPTES. Sophie de Oliveira Leite

Institut français des sciences et technologies des transports, de l aménagement

THÈSE. présentée à TÉLÉCOM PARISTECH. pour obtenir le grade de. DOCTEUR de TÉLÉCOM PARISTECH. Mention Informatique et Réseaux. par.

Outils d'analyse de la sécurité des réseaux. HADJALI Anis VESA Vlad

INTRUSION SUR INTERNET

WiFi Security Camera Quick Start Guide. Guide de départ rapide Caméra de surveillance Wi-Fi (P5)

that the child(ren) was/were in need of protection under Part III of the Child and Family Services Act, and the court made an order on

SERVEUR DÉDIÉ DOCUMENTATION

Contrôle d'accès Access control. Notice technique / Technical Manual

Configuration d'un serveur DHCP Windows 2000 pour Cisco CallManager

Chap.9: SNMP: Simple Network Management Protocol

Translation of the regulations of the Master of Science in Finance

TP : STATION BLANI 2000 SIMULATION DU RESEAU INFORMATIQUE

AMENDMENT TO BILL 32 AMENDEMENT AU PROJET DE LOI 32

Support Orders and Support Provisions (Banks and Authorized Foreign Banks) Regulations

L. Obert, T. Lascar, A. Adam

Cheque Holding Policy Disclosure (Banks) Regulations. Règlement sur la communication de la politique de retenue de chèques (banques) CONSOLIDATION

English Q&A #1 Braille Services Requirement PPTC Q1. Would you like our proposal to be shipped or do you prefer an electronic submission?

Thank you for choosing the Mobile Broadband USB Stick. With your USB Stick, you can access a wireless network at high speed.

Application Form/ Formulaire de demande

Configurer la supervision pour une base MS SQL Server Viadéis Services

COUNCIL OF THE EUROPEAN UNION. Brussels, 18 September 2008 (19.09) (OR. fr) 13156/08 LIMITE PI 53

Cedric Dumoulin (C) The Java EE 7 Tutorial

DOCUMENTATION MODULE BLOCKCATEGORIESCUSTOM Module crée par Prestacrea - Version : 2.0

Quick Start Guide This guide is intended to get you started with Rational ClearCase or Rational ClearCase MultiSite.

Instructions pour mettre à jour un HFFv2 v1.x.yy v2.0.00

AFFAIRE RELATIVE À DES QUESTIONS D'INTERPRÉTATION ET D'APPLICATION DE LA CONVENTION DE MONTRÉAL DE 1971 RÉSULTANT DE L'INCIDENT AÉRIEN DE LOCKERBIE

If the corporation is or intends to become a registered charity as defined in the Income Tax Act, a copy of these documents must be sent to:

Principe de TrueCrypt. Créer un volume pour TrueCrypt

OBJECT PRONOUNS. French III

L ESPACE À TRAVERS LE REGARD DES FEMMES. European Economic and Social Committee Comité économique et social européen

Transcription:

Utilisation de SNMP pour trouver un numéro de port d'une adresse MAC sur un commutateur Catalyst Contenu Introduction Conditions préalables Conditions requises Composants utilisés Conventions Fond Détails des variables MIB, qui inclut les identifiants d'objet (les OID) Obtenez le numéro de port sur lequel une adresse MAC a été apprise Instructions pas à pas Informations connexes Introduction Ce document décrit comment employer le protocole de gestion de réseau simple (SNMP) pour obtenir le numéro de port sur un commutateur Cisco Catalyst duquel vous connaissez l'adresse MAC. Conditions préalables Conditions requises Les lecteurs de ce document devraient avoir connaissance des sujets suivants : Comment obtenir des VLAN d'un Catalyst commutez avec l'utilisation du SNMP Comment utiliser l'indexation de chaîne de la communauté avec le SNMP L'utilisation générale de la commande de snmp get et l' inspection commandent Composants utilisés Ce document applique aux Commutateurs de Catalyst qui exécutent le SYSTÈME D'EXPLOITATION régulier de Catalyst (CatOS) ou le logiciel de ½ du  de Cisco IOSà Â. Les supports logiciels le MIB DE PONT et l'if-mib. Les informations contenues dans ce document sont basées sur les versions de matériel et de logiciel suivantes : Catalyst 3524XL qui exécute la version du logiciel Cisco IOS 12.0(5)WC5a Version 5.0.6 Net-SNMP Remarque: Pour obtenir ce logiciel, référez-vous au Net-SNMP. Les informations contenues dans ce document ont été créées à partir des périphériques d'un environnement de laboratoire spécifique. Tous les périphériques utilisés dans ce document ont démarré avec une configuration effacée (par défaut). Si votre réseau est opérationnel, assurez-vous que vous comprenez l'effet potentiel de toute commande. Conventions Pour plus d'informations sur les conventions de documents, reportez-vous à Conventions relatives aux conseils techniques Cisco. Fond Pour plus d'informations sur la façon questionner la table de mémoire de contenu adressable (CAM), les VLAN, et tout le MIB relatif, tel que le CISCO-VTP-MIB et le MIB DE PONT, se rapportent à la section de fond du document comment obtenir des entrées de CAM dynamique (Tableau de CAM) pour des Commutateurs de Catalyst utilisant le SNMP.

Détails des variables MIB, qui inclut les identifiants d'objet (les OID).1.3.6.1.2.1.17.4.3.1.1 dot1dtpfdbaddress OBJECT-TYPE -- FROM BRIDGE-MIB -- TEXTUAL CONVENTION MacAddress SYNTAX OCTET STRING (6) STATUS Mandatory DESCRIPTION "A unicast MAC address for which the bridge has forwarding and/or filtering information." ::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) dot1dbridge(17) dot1dtp(4) dot1dtpfdbtable(3) dot1dtpfdbentry(1) 1 }.1.3.6.1.2.1.17.4.3.1.2 dot1dtpfdbport OBJECT-TYPE -- FROM BRIDGE-MIB SYNTAX Integer STATUS Mandatory DESCRIPTION "Either the value "0", or the port number of the port on which a frame having a source address equal to the value of the corresponding instance of dot1dtpfdbaddress has been seen. A value of "0" indicates that the port number has not been learned, but that the bridge does have some forwarding/filtering information about this address (that is, in the StaticTable). Implementors are encouraged to assign the port value to this object whenever it is learned, even for addresses for which the corresponding value of dot1dtpfdbstatus is not learned(3)." ::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) dot1dbridge(17) dot1dtp(4) dot1dtpfdbtable(3) dot1dtpfdbentry(1) 2 }.1.3.6.1.2.1.2.2.1.1 ifindex OBJECT-TYPE SYNTAX InterfaceIndex STATUS current DESCRIPTION "A unique value, greater than zero, for each interface. It is recommended that values are assigned contiguously starting from 1. The value for each interface sub-layer must remain constant at least from one re-initialization of the entity's network management system to the next reinitialization." ::= { ifentry 1 }.1.3.6.1.2.1.17.1.4.1.2 dot1dbaseportifindex OBJECT-TYPE SYNTAX INTEGER ACCESS read-only STATUS mandatory DESCRIPTION "The value of the instance of the ifindex object, defined in MIB-II, for the interface corresponding to this port." ::= { dot1dbaseportentry 2 }.1.3.6.1.2.1.31.1.1.1.1 ifname OBJECT-TYPE SYNTAX DisplayString STATUS current DESCRIPTION "The textual name of the interface. The value of this object should be the name of the interface as assigned by the local device and should be suitable for use in commands entered at the device's `console'. This might be a text name, such as `le0' or a simple port number, such as `1', depending on the interface naming syntax of the device. If several entries in the iftable together represent a single interface as named by the device, then each will have the same value of ifname. Note that for an agent which responds to SNMP queries concerning an interface on some other (proxied) device, then the value of ifname for such an interface is the proxied device's local name for it. If there is no local name, or this object is otherwise not applicable, then this object contains a zero-length string." ::= { ifxentry 1 } Obtenez le numéro de port sur lequel une adresse MAC a été apprise

Instructions pas à pas Terminez-vous les étapes dans cette section afin d'employer le SNMP pour obtenir le numéro de port sur lequel une adresse MAC a été apprise. Considérez que le numéro de port est dans VLAN1. Remarque: Dans les commandes dans cette section : le public est l'identifiant de communauté à accès en lecture. @1 est la partie VLAN 1 de l'identifiant de communauté à accès en lecture. crumpy est le nom d'hôte de périphérique. Remarque: Vous pouvez également utiliser l'adresse IP pour ce nom d'hôte. Remarque: La section de conclusion utilise les valeurs qui apparaissent en italique dans la sortie de commande. 1. Récupérez les VLAN. Utilisez la commande de snmpwalk sur l'objet de vtpvlanstate (.1.3.6.1.4.1.9.9.46.1.3.1.1.2) : %snmpwalk -c public crumpy.1.3.6.1.4.1.9.9.46.1.3.1.1.2 CISCO-VTP-MIB::vtpVlanState.1.1 = INTEGER: operational(1) CISCO-VTP-MIB::vtpVlanState.1.3 = INTEGER: operational(1) CISCO-VTP-MIB::vtpVlanState.1.7 = INTEGER: operational(1) CISCO-VTP-MIB::vtpVlanState.1.10 = INTEGER: operational(1) Remarque: Cette commande utilise l'indexation de chaîne de la communauté. La commande utilise également le vtpvlanstate, qui a OID.1.3.6.1.4.1.9.9.46.1.3.1.1.2. Si vous avez chargé le MIB à votre système d'administration de réseaux (NMS), vous pouvez utiliser le nom d'objet au lieu de l'oid. Émettez cette commande à la place : %snmpwalk -c public@1 crumpy vtpvlanstate Remarque: Vous pouvez également utiliser les noms d'objet dans les étapes 2 à 6. 2. Émettez cette commande afin d'obtenir la table d'adresse MAC en considérant que le port appartient à VLAN1 : snmpwalk -c public@1 crumpy.1.3.6.1.2.1.17.4.3.1.1 17.4.3.1.1.0.0.12.7.172.8 = Hex: 00 00 0C 07 AC 08 17.4.3.1.1.0.1.2.27.80.145 = Hex: 00 01 02 1B 50 91 17.4.3.1.1.0.1.3.72.77.90 = Hex: 00 01 03 48 4D 5A 17.4.3.1.1.0.1.3.72.221.191 = Hex: 00 01 03 48 DD BF Remarque: Fournissez le nombre approprié VLAN après que la chaîne de la communauté. Dans cet exemple, c'est VLAN1. Les listes de commandes toutes les adresses MAC qui ont été apprises sur tous les ports qui appartiennent au VLAN 1. 3. Émettez cette commande de déterminer le numéro de port de passerelle pour le VLAN 1 : snmpwalk -c public@1 crumpy.1.3.6.1.2.1.17.4.3.1.2 17.4.3.1.2.0.0.12.7.172.8 = 13 17.4.3.1.2.0.1.2.27.80.128 = 13 17.4.3.1.2.0.1.2.27.80.145 = 13 17.4.3.1.2.0.1.2.163.145.225 = 13 Remarque: Le VLAN 1 est dot1dtpfdbport, ou.1.3.6.1.2.1.17.4.3.1.2. 4. Émettez cette commande de tracer le port de passerelle à l'ifindex, OID.1.3.6.1.2.1.2.2.1.1 : snmpwalk -c public@1 crumpy.1.3.6.1.2.1.17.1.4.1.2 17.1.4.1.2.13 = 2 17.1.4.1.2.14 = 3

17.1.4.1.2.15 = 4 17.1.4.1.2.16 = 5 Cette commande questionne le dot1dbaseportifindex, qui a OID.1.3.6.1.2.1.17.1.4.1.2. 5. Employez la commande d' inspection avec l'ifname afin de corréler la valeur d'ifindex avec un nom de port approprié. Émettez la commande suivante : Remarque: L'ifName a OID.1.3.6.1.2.1.31.1.1.1.1. snmpwalk -c public@1 crumpy.1.3.6.1.2.1.31.1.1.1.1 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.1 = VL1 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.2 = Fa0/1 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.3 = Fa0/2 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.4 = Fa0/3 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.5 = Fa0/4 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.6 = Fa0/5 ifmib.ifmibobjects.ifxtable.ifxentry.ifname.7 = Fa0/6 6. Joignez une adresse MAC au port sur lequel l'adresse a été apprise. De l'étape 1, l'adresse MAC est : 17.4.3.1.1.0.0.12.7.172.8 = Hex: 00 00 0C 07 AC 08 De l'étape 2, le port de passerelle indique que l'adresse MAC appartient pour jeter un pont sur le numéro de port 13 : 17.4.3.1.2.0.0.12.7.172.8 = 13 De l'étape 3, le numéro de port 13 de passerelle a l'ifindex le numéro 2 : 17.1.4.1.2.13 = 2 De l'étape 4, l'ifindex 2 correspond pour mettre en communication Fast Ethernet 0/1 : ifmib.ifmibobjects.ifxtable.ifxentry.ifname.2 = Fa0/1 Conclusion L'adresse MAC 00 00 0C 07 le courant alternatif 08 est apprise sur le port Fa0/1. Comparez cette conclusion à la sortie de : La commande dynamique de show cam pour des Commutateurs de CatOS La commande de show mac pour des Commutateurs de logiciel de Cisco IOS Voici la sortie témoin : crumpy# show mac Dynamic Address Count: 58 Secure Address Count: 2 Static Address (User-defined) Count: 0 System Self Address Count: 51 Total MAC addresses: 111 Maximum MAC addresses: 8192 Non-static Address Table: Destination Address Address Type VLAN Destination Port ------------------- ------------ ---- ------------------- 0000.0c07.ac08 Dynamic 1 FastEthernet0/1 0001.021b.5091 Dynamic 1 FastEthernet0/1 0001.0348.4d5a Dynamic 1 FastEthernet0/1 0001.0348.ddbf Dynamic 1 FastEthernet0/1 0001.972d.dfae Dynamic 1 FastEthernet0/1 0002.55c6.cfe7 Dynamic 1 FastEthernet0/1 0002.7d61.d400 Dynamic 1 FastEthernet0/1 Informations connexes

Notes techniques de dépannage 1992-2010 Cisco Systems Inc. Tous droits réservés. Date du fichier PDF généré: 18 octobre 2016 http://www.cisco.com/cisco/web/support/ca/fr/109/1095/1095518_mactoport44800.html