Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
reseaux:equipements:commandes_cisco-hp [2016/01/20 23:01] william créée |
reseaux:equipements:commandes_cisco-hp [2016/01/28 18:04] william |
||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
- | -||**FONCTION**||**CISCO**||**3COM-HP-H3C**|- | + | ||**FONCTION**||**CISCO**||**3COM-HP-H3C**|- |
**VISUALISATION** | **VISUALISATION** | ||
+ | |||
||**Visualiser état des interfaces**||show interface status||display brief interfaces|- | ||**Visualiser état des interfaces**||show interface status||display brief interfaces|- | ||
||**Visualiser la configuration courante**||show running-config||display current-configuration|- | ||**Visualiser la configuration courante**||show running-config||display current-configuration|- | ||
Ligne 30: | Ligne 31: | ||
||**Enregistrer les modifications**||wr ou copy running-configuration startup-configuration||save main|- | ||**Enregistrer les modifications**||wr ou copy running-configuration startup-configuration||save main|- | ||
||**Ajouter un nom à l’élément actif**||hostname||sysname|- | ||**Ajouter un nom à l’élément actif**||hostname||sysname|- | ||
+ | |||
||**Configurer un port dans un vlan**||conf t||System-view|- | ||**Configurer un port dans un vlan**||conf t||System-view|- | ||
- | ||interface < | + | ||-||interface < |
- | ||switchport mode access||port link-type access|- | + | ||-||switchport mode access||port link-type access|- |
- | ||switchport access vlan < | + | ||-||switchport access vlan < |
- | ||no shutdown||undo shutdown|- | + | ||-||no shutdown||undo shutdown|- |
||**Configurer un port trunk**||conf t||System-view|- | ||**Configurer un port trunk**||conf t||System-view|- | ||
- | ||interface < | + | ||-||interface < |
- | ||switchport mode trunk||port link-type trunk|- | + | ||-||switchport mode trunk||port link-type trunk|- |
- | ||no shutdown||undo shutdown|- | + | ||-||no shutdown||undo shutdown|- |
||**Configurer une interface de vlan**||conf t||System-view|- | ||**Configurer une interface de vlan**||conf t||System-view|- | ||
- | ||interface vlan < | + | ||-||interface vlan < |
- | ||ip address||ip address|- | + | ||-||ip address||ip address|- |
- | ||description madescription||description madescription|- | + | ||-||description madescription||description madescription|- |
- | ||no shutdown||undo shutdown|- | + | ||-||no shutdown||undo shutdown|- |
||**Ajouter une passerelle par défaut**||ip default-gateway||ip route-static 0.0.0.0 0.0.0.0|- | ||**Ajouter une passerelle par défaut**||ip default-gateway||ip route-static 0.0.0.0 0.0.0.0|- | ||
**COPIE/ | **COPIE/ | ||
- | ||**Copie de la configuration vers un TFTP**|| copy running-configuration | + | ||**Copie de la configuration vers un TFTP**|| copy running-configuration ip || tftp ip put conf.cfg maconf.txt |- |
**SECURITE** | **SECURITE** | ||
- | ||**Sécuriser un port (filtrage par MAC)** | + | ||**Sécuriser un port (filtrage par MAC)**||conf t||Port-security enable|- |
- | ||conf t||Port-security enable|- | + | ||-||interface < |
- | ||interface < | + | ||-||switchport mode access||interface < |
- | ||switchport mode access||interface < | + | ||-||switchport port-security aging time 1440||port link-type access|- |
- | ||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 aging type inactivity||Port-security max-mac count 1|- | + | ||-||switchport port-security mac-address sticky||Port-security port-mode autolearn|- |
- | ||switchport port-security mac-address sticky||Port-security port-mode autolearn|- | + | ||-||-||port-security intrusion-mode blockmac|- |
- | ||||port-security intrusion-mode blockmac|- | + | |
||**Clear d’un port-security**||conf t||System-view|- | ||**Clear d’un port-security**||conf t||System-view|- | ||
- | ||interface < | + | ||-||interface < |
- | ||shutdown||shutdown|- | + | ||-||shutdown||shutdown|- |
- | ||Sortir du mode conf t||undo port-security mac-address security xxxx-xxxx-xxxx|- | + | ||-||Sortir du mode conf t||undo port-security mac-address security xxxx-xxxx-xxxx|- |
- | ||clear port-security sticky interface < | + | ||-||clear port-security sticky interface < |
- | ||conf t|||- | + | ||-||conf t||-||- |
- | ||interface < | + | ||-||interface < |
- | ||no shutdown|| | + | ||-||no shutdown||-||- |