site_tssr/public_html/index.xml
2025-01-24 11:17:58 +01:00

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>&lt;h2 id=&#34;nommer-léquipement&#34;&gt;nommer l&amp;rsquo;équipement&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch&amp;gt; enable&#xA;Switch# configure terminal&#xA;Switch(conf)# hostname Host&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;protéger-laccès-console&#34;&gt;protéger l&amp;rsquo;accès console&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]&#xA;Switch(conf-line)# password *mot de passe*&#xA;Switch(conf-line)# login&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;mot-de-passe-enable&#34;&gt;mot de passe &amp;ldquo;enable&amp;rdquo;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# enable {password|secret} *mot de passe*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;activer-le-chiffrement-des-mdp&#34;&gt;Activer le chiffrement des mdp&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# service password-encryption&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;sauvegarde-de-la-configuation-en-cours-vers-démarrage&#34;&gt;sauvegarde de la configuation en cours vers démarrage&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch# copy running-config startup-config&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ou&#xA;Switch# write&lt;/p&gt;&#xA;&lt;h2 id=&#34;désactivation-de-la-recherche-dns-dans-linterface&#34;&gt;désactivation de la recherche DNS dans l&amp;rsquo;interface&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# no ip domain-lookup&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;voir-la-configuration-en-cours&#34;&gt;Voir la configuration en cours&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch# Show running-config&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;voir-la-configuration-du-fichier-sauvegarde-sur-la-nvram&#34;&gt;Voir la configuration du fichier sauvegarde sur la NVRAM&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch# Show startup-config&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1 id=&#34;configuration-ssh&#34;&gt;Configuration SSH&lt;/h1&gt;&#xA;&lt;h2 id=&#34;prérequi&#34;&gt;prérequi&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;renomer l&amp;rsquo;équipement&lt;/li&gt;&#xA;&lt;li&gt;mettre mot de passe &amp;ldquo;enable&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;définir-un-nom-de-domain&#34;&gt;définir un nom de domain&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip domain-name *nom-de-domaine*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;activer-la-version-2-de-ssh&#34;&gt;activer la version 2 de SSH&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip ssh version 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;générer-clés-ssh&#34;&gt;générer clés ssh&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# crypto key generate rsa general-keys modulus *1024*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;créer-un-utilisateur-local&#34;&gt;créer un utilisateur local&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# username *login* {secret|password} *mot-de-passe*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;ajout-dun-time-out&#34;&gt;Ajout d&amp;rsquo;un time out&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip ssh time-out {nbsec}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;ajout-dun-nombre-de-tentative&#34;&gt;ajout d&amp;rsquo;un nombre de tentative&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip ssh authentication-retries {nb tentative}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;configuration-du-maximum-de-conenxion-simultanné&#34;&gt;configuration du maximum de conenxion simultanné&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip ssh maxstartups {2-128}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;configurer-ligne-vty&#34;&gt;configurer ligne vty&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# line vty 0 15&#xA;Switch(conf-line)# login local&#xA;Switch(conf-line)# transport input ssh&#xA;Switch(conf-line)# no password&#xA;&lt;/code&gt;&lt;/pre&gt;</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>&lt;h2 id=&#34;configurer-la-svi-switch-virtual-interface&#34;&gt;Configurer la SVI (Switch Virtual Interface)&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# interface vlan1&#xA;Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4&#xA;Switch(conf-if)# no shutdown&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;mettre-en-place-une-passerelle-par-défaut-sur-un-switch&#34;&gt;mettre en place une passerelle par défaut sur un switch&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch(conf)# ip default-gateway A.B.C.D&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1 id=&#34;configuration-vlan-sur-un-switch&#34;&gt;Configuration Vlan sur un Switch&lt;/h1&gt;&#xA;&lt;h2 id=&#34;définir-un-vlan&#34;&gt;Définir un Vlan&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch&amp;gt; enable&#xA;Switch# configure terminal&#xA;Switch(conf)# vlan *numero Vlan*&#xA;Switch(conf-vlan)# name *nom*&#xA;Switch(conf-vlan)# exit&#xA;Switch(conf)#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;rattacher-un-port-à-un-vlan&#34;&gt;Rattacher un port à un VLAN&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch&amp;gt; enable&#xA;Switch# configure terminal&#xA;Switch(conf)# interface *interface*&#xA;Switch(conf-if)# switchport mode access&#xA;Switch(conf-if)# switchport access vlan *numero Vlan*&#xA;Switch(conf-if)# exit&#xA;Switch(conf)#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;rattacher-un-ensemble-de-ports-à-un-vlan&#34;&gt;Rattacher un ensemble de ports à un VLAN&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Switch&amp;gt; enable&#xA;Switch# configure terminal&#xA;Switch(conf)# interface range *1ère interface* - *dernière interface*&#xA;Switch(conf-if)# switchport mode access&#xA;Switch(conf-if)# switchport access vlan *numero Vlan*&#xA;Switch(conf-if)# exit&#xA;Switch(conf)#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;configurer-un-port-en-mode-trunk&#34;&gt;Configurer un port en mode TRUNK&lt;/h2&gt;&#xA;&lt;p&gt;Le mode TRUNK permet a plusieurs vlan de passer par le même port&#xA;Switch&amp;gt; enable&#xA;Switch# configure terminal&#xA;Switch(conf)# interface &lt;em&gt;interface&lt;/em&gt;&#xA;Switch(conf-if)# switchport mode trunk&#xA;Switch(conf-if)# switchport trunk allowed vlan &lt;em&gt;Vlan1&lt;/em&gt; [,&lt;em&gt;VLan2&lt;/em&gt;]&#xA;Switch(conf-if)# exit&#xA;Switch(conf)#&lt;/p&gt;</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>&lt;h2 id=&#34;route-statique&#34;&gt;Route statique&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Router(conf)# ip route *réseau* *masque* { *adresse ip* | *interface sortie* [ *adresse-ip* ] }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ou&#xA;Router(conf)# ipv6 unicast-routing&#xA;Router(conf)# ipv6 route &lt;em&gt;réseau/masque&lt;/em&gt; { &lt;em&gt;adresse ip&lt;/em&gt; | &lt;em&gt;interface sortie&lt;/em&gt; [ &lt;em&gt;adresse-ip&lt;/em&gt; ] }&lt;/p&gt;&#xA;&lt;h2 id=&#34;route-par-défaut&#34;&gt;Route par défaut&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Router(conf)# ip route 0.0.0.0 0.0.0.0 { *adresse ip* | *interface sortie* [ *adresse-ip* ] }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ou&#xA;Router(conf)#&#xA;Router(conf)# ipv6 route &lt;em&gt;::/0&lt;/em&gt; { &lt;em&gt;adresse ip&lt;/em&gt; | &lt;em&gt;interface sortie&lt;/em&gt; [ &lt;em&gt;adresse-ip&lt;/em&gt; ] }&lt;/p&gt;&#xA;&lt;h2 id=&#34;inferface-virtuelle-pour-mode-trunk&#34;&gt;inferface virtuelle pour mode TRUNK&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Router(config)# interface [interface].[id]&#xA;Router(config-if)# encapsulation dot1Q [vlan]&#xA;Router(config-if)# ip address *rid* 255.255.255.255&#xA;Router(config-if)# no shutdown&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ne pas oublier d&amp;rsquo;allumer l&amp;rsquo;interface générale&lt;/p&gt;</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>&lt;p&gt;About du site&lt;/p&gt;</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>&lt;p&gt;Test de post&lt;/p&gt;</description>
</item>
</channel>
</rss>