Configuration d’un Switch HP PROCURVE

Accéder à l’interface en ligne de commande (cli) du switch HP Procurve avec hyperterminal :

Une fois le switch connecté a votre poste à l’aide d’un câble série, ouvrir une connexion Hyperterminal avec les paramètres suivants :

Bits par seconde :        9600

Bits de données :          8

Parité :                         Aucun

Bits d’arrêt :                 1

Contrôle de flux :         Aucun

Ces paramètres sont ceux par défaut d’une connexion Hyperterminal

Modifier le nom du switch :

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# hostname SWITCH

SWITCH(config)# wr mem

SWITCH(config)# exit

SWITCH#

 

Redémarrer un switch :

Utiliser la commande « boot »

 

Revenir à un état usine vierge de toute configuration:

Utiliser la commande : erase startup-config

SWITCH#

SWITCH# conf

SWITCH(config)# erase startup-config

Configuration will be deleted and device rebooted, continue [y/n]? y

Le switch redémarre alors dans son état d’usine.

 

Voir la configuration d’un switch :

ProCurve Switch 6200yl-24G# show config

Startup configuration:

; J8992A Configuration Editor; Created on release #K.14.41

hostname « ProCurve Switch 6200yl-24G »

module 1 type J8992A

vlan 1

name « DEFAULT_VLAN »

untagged 1-24

ip address dhcp-bootp

exit

snmp-server community « public » unrestricted

ProCurve Switch 6200yl-24G#

 

Gestion des Vlan sur un Switch Hp Procurve

 

Création d’un Vlan

 

Voici la création d’un vlan d’ID 25 nommé Vlan_Voix :

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf               (passage en mode configuration)

ProCurve Switch 6200yl-24G(config)# vlan 25           (ID du Vlan)

ProCurve Switch 6200yl-24G(vlan-25)# name Vlan_Voix                  (Nom du Vlan)

ProCurve Switch 6200yl-24G(vlan-25)# wr mem                   (Sauvegarde de la conf)

ProCurve Switch 6200yl-24G(vlan-25)# exit

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Supression d’un Vlan

 

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf               (passage en mode configuration)

ProCurve Switch 6200yl-24G(config)# no vlan 25                  (Suppression du Vlan 25)

ProCurve Switch 6200yl-24G(config)# wr mem                      (Sauvegarde de la conf)

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

 

Ajouter des ports a un Vlan :

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# vlan 25

ProCurve Switch 6200yl-24G(vlan-25)# tagged 23-24

ProCurve Switch 6200yl-24G(vlan-25)# untagged 2-5,20-21

ProCurve Switch 6200yl-24G(vlan-25)# wr mem

ProCurve Switch 6200yl-24G(vlan-25)# exit

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Supprimer des ports d’un vlan :

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# vlan 25

ProCurve Switch 6200yl-24G(vlan-25)# no tagged 23-24

ProCurve Switch 6200yl-24G(vlan-25)# wr mem

ProCurve Switch 6200yl-24G(vlan-25)# exit

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Assigner une ip a un Vlan

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# vlan 25

ProCurve Switch 6200yl-24G(vlan-25)# ip address 192.168.11.25 255.255.255.0

ProCurve Switch 6200yl-24G(vlan-25)# wr mem

ProCurve Switch 6200yl-24G(vlan-25)# exit

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Supprimer une IP d’un Vlan

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# vlan 25

ProCurve Switch 6200yl-24G(vlan-25)# no ip address

ProCurve Switch 6200yl-24G(vlan-25)# wr mem

ProCurve Switch 6200yl-24G(vlan-25)# exit

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Débloquer ou débrider la limitation du nombre de Vlans configurables :

ProCurve Switch 6200yl-24G#

ProCurve Switch 6200yl-24G# conf

ProCurve Switch 6200yl-24G(config)# max-vlans 256

Command will take effect after saving configuration and reboot.

ProCurve Switch 6200yl-24G(config)# wr mem

ProCurve Switch 6200yl-24G(config)# exit

ProCurve Switch 6200yl-24G#

 

Voir les différents vlan :

ProCurve Switch 6200yl-24G# show vlan

Status and Counters – VLAN Information

Maximum VLANs to support : 256

Primary VLAN : DEFAULT_VLAN

Management VLAN :

VLAN ID Name                 | Status     Voice Jumbo

——- ——————– + ———- —– —–

1       DEFAULT_VLAN         | Port-based No    No

25      VLAN25               | Port-based No    No

52      vlan_voix            | Port-based No    No

 

Voir le detail des ports d’un vlan :

Pour voir quels ports font partie d’un vlan, s’il sont taggés ou non taggés

ProCurve Switch 6200yl-24G# show vlan 52

Status and Counters – VLAN Information – VLAN 52

VLAN ID : 52

Name : vlan_voix

Status : Port-based

Voice : No

Jumbo : No

Port Information Mode     Unknown VLAN Status

—————- ——– ———— ———-

12               Tagged   Learn        Down

13               Tagged   Learn        Down

14               Tagged   Learn        Down

15               Tagged   Learn        Down

16               Tagged   Learn        Down

17               Untagged Learn        Down

18               Untagged Learn        Down

19               Untagged Learn        Down

20               Untagged Learn        Down

 

Configurer le SNMP :

Dans un premier temps, ont peut renseigner le nom du syscontact :

procurve# snmp-server contact Julien PIPERAULT

Puis on peut renseigner l’endroit ou se trouve l’equipement :

procurve# snmp-server location Ma maison

Maintenant nous allons mettre en place votre communauté SNMP :

procurve#snmp-server community ma_communauté Unrestricted

Plusieurs choix s’offre à vous pour les restrictions :

– operator : Permet l’accès à toute les MIB sauf celle de la configuration
– manager : Donne accès à l’integralité des MIB
– restricted : Mode Read-Only
– Unrestricted : Mode Read-write

Voila vous pouvez maintenant interroger votre switch en SNMP.

Laisser un commentaire