public:kb:cisco_hp
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| public:kb:cisco_hp [2014/02/19 08:18] – laurent.joly | public:kb:cisco_hp [2025/01/06 17:42] (Version actuelle) – supprimée laurent.joly | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | <WRAP tabs> | ||
| - | * [[: | ||
| - | * [[: | ||
| - | </ | ||
| - | ====== Commandes routeur Cisco et switch HP ====== | ||
| - | |||
| - | L' | ||
| - | |||
| - | Elle dispose de la fonctionnalite d' | ||
| - | Ainsi "conf t" : | ||
| - | Taper sur tabulation entre chaque mot permet de le terminer (si aucun autre mot correct ne commence de la meme facon).\\ | ||
| - | conf t avec tabulation donne " | ||
| - | |||
| - | Dans cet exemple, taper "conf t" sans tabulation revient aussi, directement, | ||
| - | |||
| - | ===== cisco 2960 ===== | ||
| - | |||
| - | ==== creation de vlan ==== | ||
| - | |||
| - | === deprecated method === | ||
| - | |||
| - | < | ||
| - | Switch#vlan database | ||
| - | Switch(vlan)# | ||
| - | Switch(vlan)# | ||
| - | Switch(vlan)# | ||
| - | Switch#show vlan | ||
| - | </ | ||
| - | |||
| - | === recommended method === | ||
| - | |||
| - | < | ||
| - | Switch#conf t | ||
| - | Switch(config)# | ||
| - | Switch(config-vlan)# | ||
| - | </ | ||
| - | |||
| - | |||
| - | ====affectation de port aux vlans==== | ||
| - | < | ||
| - | Switch# | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | </ | ||
| - | |||
| - | ==== Trunker un port ==== | ||
| - | < | ||
| - | Switch#conf t | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | </ | ||
| - | |||
| - | ==== Affecter une ip à un vlan ==== | ||
| - | < | ||
| - | // permet d' | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | </ | ||
| - | |||
| - | ==== pinger ==== | ||
| - | |||
| - | |||
| - | Switch#ping ip-address | ||
| - | |||
| - | ===== autres ===== | ||
| - | ===== Prompt ===== | ||
| - | |||
| - | Prompt du mode utilisateur | ||
| - | Router> | ||
| - | |||
| - | Passer en mode administrateur | ||
| - | enable | ||
| - | |||
| - | Prompt administrateur | ||
| - | Router# | ||
| - | |||
| - | Prompt gestion | ||
| - | configure terminal | ||
| - | Switch(config)# | ||
| - | |||
| - | Prompt de gestion d' | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | | ||
| - | Prompt de gestion de vlan | ||
| - | Switch(config)# | ||
| - | Switch(config-vlan)# | ||
| - | |||
| - | Prompt de gestion de sous interface | ||
| - | Router(config)# | ||
| - | Router(config-subif)# | ||
| - | |||
| - | ===== Commandes ===== | ||
| - | |||
| - | |||
| - | Lister les commandes | ||
| - | help | ||
| - | |||
| - | Acces au commandes par menu logique | ||
| - | menu | ||
| - | |||
| - | (barre d' | ||
| - | |||
| - | ==== Configuration ==== | ||
| - | |||
| - | Supprimer la configuration precedente (un peu long) | ||
| - | erase startup-configuration | ||
| - | reload | ||
| - | |||
| - | Mettre un mot de de passe a l' | ||
| - | |||
| - | Sauvegarder la conf actuelle (important après avoir envoyé la conf) | ||
| - | copy run start | ||
| - | |||
| - | Envoyer la conf actuelle vers un serveur tftp | ||
| - | copy run tftp | ||
| - | |||
| - | |||
| - | ====VLANs==== | ||
| - | |||
| - | Creer le vlan 10 " | ||
| - | |||
| - | conf t | ||
| - | config#vlan 10 | ||
| - | config-vlan# | ||
| - | |||
| - | Passer le port 1 du switch dans le VLAN 100 en access | ||
| - | enable | ||
| - | conf t | ||
| - | config# interface FastEthernet0/ | ||
| - | config-if# switchport access vlan 100 | ||
| - | |||
| - | Pour faire passer tout les vlans : | ||
| - | switchport trunk allowed vlan all | ||
| - | |||
| - | Faire passer deux vlans 4 et 6 : | ||
| - | switchport trunk allowed vlan 4,6 | ||
| - | |||
| - | Une suite de vlans 1 a 6 : | ||
| - | switchport trunk allowed vlan 1-6 | ||
| - | |||
| - | |||
| - | Eteindre l' | ||
| - | < | ||
| - | conf t | ||
| - | config# int fa 0/3 | ||
| - | config-if# shutdown | ||
| - | </ | ||
| - | et no shutdown pour la rallumer | ||
| - | |||
| - | ROUTEUR | ||
| - | --------- | ||
| - | |||
| - | |||
| - | < | ||
| - | enable | ||
| - | configure terminal | ||
| - | interface fa0/0 | ||
| - | (prompt config-if) | ||
| - | ip address dhcp | ||
| - | ip nat outside | ||
| - | </ | ||
| - | |||
| - | exit pour revenir au prompt config | ||
| - | interface fa0/1.10 | ||
| - | (prompt config-subif) | ||
| - | // on traite le vlan 10 ((rappel1))// | ||
| - | encapsulation dot1Q 10 | ||
| - | ip address 192.168.10.1 255.255.255.0 | ||
| - | ip nat inside | ||
| - | |||
| - | interface fa0/1.20 | ||
| - | encapsulation dot1Q 20 | ||
| - | ip address 192.168.20.1 255.255.255.0 | ||
| - | ip nat inside | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ((rappel1)) | ||
| - | le switch ayant le port 1 déclaré et taggé pour tous les vlans, les trames sur ce port seront taggées du numero de vlan, donc le routeur verra ce numero | ||
| - | |||
| - | |||
| - | info | ||
| - | les interfaces du routeur fa0/0 et 1 ne doivent pas etre eteintes … | ||
| - | show ip interfaces brief | ||
| - | |||
| - | si elles sont down | ||
| - | aller dessus | ||
| - | et | ||
| - | no shutdown | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | Trunk = tagger un port, il appartient a tous les vlans | ||
| - | access = untagged | ||
public/kb/cisco_hp.1392794304.txt.gz · Dernière modification : de laurent.joly
