This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
switch_cisco [2025/07/04 01:57] 20.171.207.47 old revision restored (2025/05/31 05:33) |
switch_cisco [2025/07/04 01:57] (current) 20.171.207.47 old revision restored (2025/05/31 05:33) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| **Switch Cisco** | **Switch Cisco** | ||
| - | Attribuer | + | __Attribuer |
| - | **hostname nom** | + | |
| + | __Sécuriser le mode d' | ||
| + | line console <0> | ||
| + | password < | ||
| + | login | ||
| + | |||
| + | __Sécuriser l' | ||
| + | |||
| + | line vty <0 15> | ||
| + | password < | ||
| + | login | ||
| + | |||
| + | __Sécuriser le mode d' | ||
| + | |||
| + | enable secret < | ||
| + | | ||
| + | __Sécuriser tous les mots de passe dans le | ||
| + | fichier de configuration__ | ||
| + | |||
| + | service < | ||
| + | | ||
| + | __Fournir un avertissement juridique__ | ||
| + | |||
| + | banner motd # < | ||
| + | | ||
| + | __Configurer l' | ||
| + | |||
| + | interface vlan < | ||
| + | ip address < | ||
| + | no shutdown | ||
| + | | ||
| + | __Enregistrez la configuration__ | ||
| + | |||
| + | copy < | ||
| + | | ||
| + | __Création VLAN__ | ||
| + | |||
| + | vlan < | ||
| + | name < | ||
| + | | ||
| + | __Affectation d’un VLAN du port 1 au port | ||
| + | 10__ | ||
| + | |||
| + | interface range < | ||
| + | switchport <mode access> | ||
| + | switchport <access vlan vlan_num> | ||
| + | | ||
| + | __Affectation d’un VLAN trunk à un port | ||
| + | fa0/1 (vlan_num1 autorisé) | ||
| + | __ | ||
| + | interface < | ||
| + | switchport <mode trunk> | ||
| + | switchport <trunk native vlan vlan_num> | ||
| + | switchport <trunk allow vlan vlan_num1> | ||
| + | | ||
| + | __Affichage table VLAN__ | ||
| + | |||
| + | show <vlan brief> | ||
| + | |||
| + | __Affichage bref des interfaces__ | ||
| + | | ||
| + | show <ip interface brief> | ||
| + | |||
| + | __Affichage vlan associé au port fa0/1__ | ||
| + | | ||
| + | show < | ||
| + | | ||
| + | __Affichage des liens Trunk et de leur spécification | ||
| + | __ | ||
| + | show < | ||