Différences
Ci-dessous, les différences entre deux révisions de la page.
reseaux:equipements:commandes_cisco-hp [2016/01/20 23:01] william créée |
reseaux:equipements:commandes_cisco-hp [2019/02/06 14:03] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | |||
- | |||
- | -||**FONCTION**||**CISCO**||**3COM-HP-H3C**|- | ||
- | |||
- | **VISUALISATION** | ||
- | ||**Visualiser état des interfaces**||show interface status||display brief interfaces|- | ||
- | ||**Visualiser la configuration courante**||show running-config||display current-configuration|- | ||
- | ||**Visualiser les vlans**||show vlan brief||Display vlan all|- | ||
- | ||**Voir les switchs voisins (directement rattachés)**||show cdp neighbors||display lldp neighbor-information|- | ||
- | ||**Rechercher une adresse MAC**||show mac address-table | include xxxx.xxxx.xxxx||display mac-address xx.xx.xx.xx.xx|- | ||
- | ||**Visualiser les adresses IP fournies par un DHCP**||show ip dhcp snooping binding||X|- | ||
- | ||**Visualiser les informations système**||show version||display version|- | ||
- | ||**Visualiser les logs**||show logging||display logbuffer ou display log summary|- | ||
- | ||**Visualiser la table de routage**||show ip route||display routing-table|- | ||
- | |||
- | |||
- | **SUPPRESSION** | ||
- | |||
- | ||**Supprimer la configuration courante**||write erase||reset saved-configuration main|- | ||
- | ||**Supprimer une configuration**||no < | ||
- | |||
- | |||
- | **CONFIGURATION** | ||
- | |||
- | |||
- | ||**Mode configuration**||configure terminal||System-view|- | ||
- | ||**Retour en arrière**||backspace||CTRL+H|- | ||
- | ||**Sortir d’un mode**||exit||quit|- | ||
- | ||**Enregistrer les modifications**||wr ou copy running-configuration startup-configuration||save main|- | ||
- | ||**Ajouter un nom à l’élément actif**||hostname||sysname|- | ||
- | ||**Configurer un port dans un vlan**||conf t||System-view|- | ||
- | ||interface < | ||
- | ||switchport mode access||port link-type access|- | ||
- | ||switchport access vlan < | ||
- | ||no shutdown||undo shutdown|- | ||
- | ||**Configurer un port trunk**||conf t||System-view|- | ||
- | ||interface < | ||
- | ||switchport mode trunk||port link-type trunk|- | ||
- | ||no shutdown||undo shutdown|- | ||
- | ||**Configurer une interface de vlan**||conf t||System-view|- | ||
- | ||interface vlan < | ||
- | ||ip address||ip address|- | ||
- | ||description madescription||description madescription|- | ||
- | ||no shutdown||undo shutdown|- | ||
- | ||**Ajouter une passerelle par défaut**||ip default-gateway||ip route-static 0.0.0.0 0.0.0.0|- | ||
- | |||
- | **COPIE/ | ||
- | |||
- | ||**Copie de la configuration vers un TFTP**|| copy running-configuration tftp://ip || tftp ip put conf.cfg maconf.txt |- | ||
- | |||
- | **SECURITE** | ||
- | |||
- | ||**Sécuriser un port (filtrage par MAC)** | ||
- | ||conf t||Port-security enable|- | ||
- | ||interface < | ||
- | ||switchport mode access||interface < | ||
- | ||switchport port-security aging time 1440||port link-type access|- | ||
- | ||switchport port-security aging type inactivity||Port-security max-mac count 1|- | ||
- | ||switchport port-security mac-address sticky||Port-security port-mode autolearn|- | ||
- | ||||port-security intrusion-mode blockmac|- | ||
- | ||**Clear d’un port-security**||conf t||System-view|- | ||
- | ||interface < | ||
- | ||shutdown||shutdown|- | ||
- | ||Sortir du mode conf t||undo port-security mac-address security xxxx-xxxx-xxxx|- | ||
- | ||clear port-security sticky interface < | ||
- | ||conf t|||- | ||
- | ||interface < | ||
- | ||no shutdown|| |