47 lines
9.2 KiB
XML
47 lines
9.2 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>Accueil on Aide pour les TSSR</title>
|
|
<link>//localhost:1313/</link>
|
|
<description>Recent content in Accueil on Aide pour les TSSR</description>
|
|
<generator>Hugo</generator>
|
|
<language>fr-fr</language>
|
|
<lastBuildDate>Fri, 24 Jan 2025 00:00:00 +0000</lastBuildDate>
|
|
<atom:link href="//localhost:1313/index.xml" rel="self" type="application/rss+xml" />
|
|
<item>
|
|
<title>Commande Générale</title>
|
|
<link>//localhost:1313/cisco/commande-g%C3%A9n%C3%A9rale/</link>
|
|
<pubDate>Fri, 24 Jan 2025 00:00:00 +0000</pubDate>
|
|
<guid>//localhost:1313/cisco/commande-g%C3%A9n%C3%A9rale/</guid>
|
|
<description><h2 id="nommer-léquipement">nommer l&rsquo;équipement</h2>
<pre><code>Switch&gt; enable
Switch# configure terminal
Switch(conf)# hostname Host
</code></pre>
<h2 id="protéger-laccès-console">protéger l&rsquo;accès console</h2>
<pre><code>Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]
Switch(conf-line)# password *mot de passe*
Switch(conf-line)# login
</code></pre>
<h2 id="mot-de-passe-enable">mot de passe &ldquo;enable&rdquo;</h2>
<pre><code>Switch(conf)# enable {password|secret} *mot de passe*
</code></pre>
<h2 id="activer-le-chiffrement-des-mdp">Activer le chiffrement des mdp</h2>
<pre><code>Switch(conf)# service password-encryption
</code></pre>
<h2 id="sauvegarde-de-la-configuation-en-cours-vers-démarrage">sauvegarde de la configuation en cours vers démarrage</h2>
<pre><code>Switch# copy running-config startup-config
</code></pre>
<p>ou
Switch# write</p>
<h2 id="désactivation-de-la-recherche-dns-dans-linterface">désactivation de la recherche DNS dans l&rsquo;interface</h2>
<pre><code>Switch(conf)# no ip domain-lookup
</code></pre>
<h2 id="voir-la-configuration-en-cours">Voir la configuration en cours</h2>
<pre><code>Switch# Show running-config
</code></pre>
<h2 id="voir-la-configuration-du-fichier-sauvegarde-sur-la-nvram">Voir la configuration du fichier sauvegarde sur la NVRAM</h2>
<pre><code>Switch# Show startup-config
</code></pre>
<h1 id="configuration-ssh">Configuration SSH</h1>
<h2 id="prérequi">prérequi</h2>
<ul>
<li>renomer l&rsquo;équipement</li>
<li>mettre mot de passe &ldquo;enable&rdquo;</li>
</ul>
<h2 id="définir-un-nom-de-domain">définir un nom de domain</h2>
<pre><code>Switch(conf)# ip domain-name *nom-de-domaine*
</code></pre>
<h2 id="activer-la-version-2-de-ssh">activer la version 2 de SSH</h2>
<pre><code>Switch(conf)# ip ssh version 2
</code></pre>
<h2 id="générer-clés-ssh">générer clés ssh</h2>
<pre><code>Switch(conf)# crypto key generate rsa general-keys modulus *1024*
</code></pre>
<h2 id="créer-un-utilisateur-local">créer un utilisateur local</h2>
<pre><code>Switch(conf)# username *login* {secret|password} *mot-de-passe*
</code></pre>
<h2 id="ajout-dun-time-out">Ajout d&rsquo;un time out</h2>
<pre><code>Switch(conf)# ip ssh time-out {nbsec}
</code></pre>
<h2 id="ajout-dun-nombre-de-tentative">ajout d&rsquo;un nombre de tentative</h2>
<pre><code>Switch(conf)# ip ssh authentication-retries {nb tentative}
</code></pre>
<h2 id="configuration-du-maximum-de-conenxion-simultanné">configuration du maximum de conenxion simultanné</h2>
<pre><code>Switch(conf)# ip ssh maxstartups {2-128}
</code></pre>
<h2 id="configurer-ligne-vty">configurer ligne vty</h2>
<pre><code>Switch(conf)# line vty 0 15
Switch(conf-line)# login local
Switch(conf-line)# transport input ssh
Switch(conf-line)# no password
</code></pre></description>
|
|
</item>
|
|
<item>
|
|
<title>Switch</title>
|
|
<link>//localhost:1313/cisco/switch/</link>
|
|
<pubDate>Fri, 24 Jan 2025 00:00:00 +0000</pubDate>
|
|
<guid>//localhost:1313/cisco/switch/</guid>
|
|
<description><h2 id="configurer-la-svi-switch-virtual-interface">Configurer la SVI (Switch Virtual Interface)</h2>
<pre><code>Switch(conf)# interface vlan1
Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4
Switch(conf-if)# no shutdown
</code></pre>
<h2 id="mettre-en-place-une-passerelle-par-défaut-sur-un-switch">mettre en place une passerelle par défaut sur un switch</h2>
<pre><code>Switch(conf)# ip default-gateway A.B.C.D
</code></pre>
<h1 id="configuration-vlan-sur-un-switch">Configuration Vlan sur un Switch</h1>
<h2 id="définir-un-vlan">Définir un Vlan</h2>
<pre><code>Switch&gt; enable
Switch# configure terminal
Switch(conf)# vlan *numero Vlan*
Switch(conf-vlan)# name *nom*
Switch(conf-vlan)# exit
Switch(conf)#
</code></pre>
<h2 id="rattacher-un-port-à-un-vlan">Rattacher un port à un VLAN</h2>
<pre><code>Switch&gt; enable
Switch# configure terminal
Switch(conf)# interface *interface*
Switch(conf-if)# switchport mode access
Switch(conf-if)# switchport access vlan *numero Vlan*
Switch(conf-if)# exit
Switch(conf)#
</code></pre>
<h2 id="rattacher-un-ensemble-de-ports-à-un-vlan">Rattacher un ensemble de ports à un VLAN</h2>
<pre><code>Switch&gt; enable
Switch# configure terminal
Switch(conf)# interface range *1ère interface* - *dernière interface*
Switch(conf-if)# switchport mode access
Switch(conf-if)# switchport access vlan *numero Vlan*
Switch(conf-if)# exit
Switch(conf)#
</code></pre>
<h2 id="configurer-un-port-en-mode-trunk">Configurer un port en mode TRUNK</h2>
<p>Le mode TRUNK permet a plusieurs vlan de passer par le même port
Switch&gt; enable
Switch# configure terminal
Switch(conf)# interface <em>interface</em>
Switch(conf-if)# switchport mode trunk
Switch(conf-if)# switchport trunk allowed vlan <em>Vlan1</em> [,<em>VLan2</em>]
Switch(conf-if)# exit
Switch(conf)#</p></description>
|
|
</item>
|
|
<item>
|
|
<title>Routeur</title>
|
|
<link>//localhost:1313/cisco/routeur/</link>
|
|
<pubDate>Fri, 24 Jan 2025 00:00:00 +0000</pubDate>
|
|
<guid>//localhost:1313/cisco/routeur/</guid>
|
|
<description><h2 id="route-statique">Route statique</h2>
<pre><code>Router(conf)# ip route *réseau* *masque* { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
</code></pre>
<p>ou
Router(conf)# ipv6 unicast-routing
Router(conf)# ipv6 route <em>réseau/masque</em> { <em>adresse ip</em> | <em>interface sortie</em> [ <em>adresse-ip</em> ] }</p>
<h2 id="route-par-défaut">Route par défaut</h2>
<pre><code>Router(conf)# ip route 0.0.0.0 0.0.0.0 { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
</code></pre>
<p>ou
Router(conf)#
Router(conf)# ipv6 route <em>::/0</em> { <em>adresse ip</em> | <em>interface sortie</em> [ <em>adresse-ip</em> ] }</p>
<h2 id="inferface-virtuelle-pour-mode-trunk">inferface virtuelle pour mode TRUNK</h2>
<pre><code>Router(config)# interface [interface].[id]
Router(config-if)# encapsulation dot1Q [vlan]
Router(config-if)# ip address *rid* 255.255.255.255
Router(config-if)# no shutdown
</code></pre>
<p>ne pas oublier d&rsquo;allumer l&rsquo;interface générale</p></description>
|
|
</item>
|
|
<item>
|
|
<title>About</title>
|
|
<link>//localhost:1313/about/</link>
|
|
<pubDate>Wed, 22 Jan 2025 13:14:15 +0100</pubDate>
|
|
<guid>//localhost:1313/about/</guid>
|
|
<description><p>About du site</p></description>
|
|
</item>
|
|
<item>
|
|
<title>Premier Test</title>
|
|
<link>//localhost:1313/posts/premier-test/</link>
|
|
<pubDate>Wed, 22 Jan 2025 12:02:03 +0100</pubDate>
|
|
<guid>//localhost:1313/posts/premier-test/</guid>
|
|
<description><p>Test de post</p></description>
|
|
</item>
|
|
</channel>
|
|
</rss>
|