163 lines
7 KiB
HTML
163 lines
7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr-fr">
|
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<title>Switch - Aide pour les TSSR</title>
|
|
<meta name="description" content="Commande spécifique pour les switchs">
|
|
<meta name="generator" content="Hugo 0.141.0">
|
|
<link href="//localhost:1313//index.xml" rel="alternate" type="application/rss+xml">
|
|
<link rel="canonical" href="//localhost:1313/cisco/switch/">
|
|
<link rel="stylesheet" href="//localhost:1313/css/theme.min.css">
|
|
<link rel="stylesheet" href="//localhost:1313/css/chroma.min.css">
|
|
<script defer src="//localhost:1313//js/fontawesome6/all.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery.easing@1.4.1/jquery.easing.min.js" integrity="sha256-H3cjtrm/ztDeuhCN9I4yh4iN2Ybx/y1RM7rMmAesA0k=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js" integrity="sha256-4XodgW4TwIJuDtf+v6vDJ39FVxI0veC/kSCCmnFp7ck=" crossorigin="anonymous"></script>
|
|
<script src="//localhost:1313/js/bundle.js"></script><style>
|
|
:root {}
|
|
</style>
|
|
<meta property="og:url" content="//localhost:1313/cisco/switch/">
|
|
<meta property="og:site_name" content="Aide pour les TSSR">
|
|
<meta property="og:title" content="Switch">
|
|
<meta property="og:description" content="Commande spécifique pour les switchs">
|
|
<meta property="og:locale" content="fr_fr">
|
|
<meta property="og:type" content="article">
|
|
<meta property="article:section" content="cisco">
|
|
<meta property="article:published_time" content="2025-01-24T00:00:00+00:00">
|
|
<meta property="article:modified_time" content="2025-01-24T00:00:00+00:00">
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="Switch">
|
|
<meta name="twitter:description" content="Commande spécifique pour les switchs">
|
|
|
|
<meta itemprop="name" content="Switch">
|
|
<meta itemprop="description" content="Commande spécifique pour les switchs">
|
|
<meta itemprop="datePublished" content="2025-01-24T00:00:00+00:00">
|
|
<meta itemprop="dateModified" content="2025-01-24T00:00:00+00:00">
|
|
<meta itemprop="wordCount" content="224"></head>
|
|
<body>
|
|
|
|
<div class="container"><header>
|
|
<h1>Aide pour les TSSR</h1><span class="version">Version 1.0.0</span>
|
|
</header>
|
|
<div class="global-menu">
|
|
<nav>
|
|
<ul>
|
|
<li id="Accueil" class=""><a href="/"><i class='fa fa-heart'></i> Accueil</a></li>
|
|
<li class=""><a href="/about/">About</a></li></ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<div class="content-container">
|
|
<main><h1>Switch</h1>
|
|
<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> 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> 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> 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> 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>
|
|
<h2 id="activation-du-routage-entre-les-vlans-si-switch-niveau-3">activation du routage entre les VLANs si switch niveau 3</h2>
|
|
<p>attriber des adresse ip au vlan et les déclarer en passerelles dans les hôtes connectés</p>
|
|
<pre><code>Switch> enable
|
|
Switch# configure terminal
|
|
Switch(conf)# ip routing
|
|
</code></pre>
|
|
<h1 id="configuration-security-port">Configuration Security port</h1>
|
|
<pre><code>Switch> enable
|
|
Switch# configure terminal
|
|
Switch(conf)# interface *interface*
|
|
Switch(conf-if)# switchport mode access
|
|
Switch(conf-if)# switchport port-security
|
|
Switch(conf-if)# switchport port-security maximum *nb de tentative*
|
|
Switch(conf-if)# switchport port-security mac-address {sticky|*MAC*}
|
|
Switch(conf-if)# switchport port-security violation {protect|restrict|shutdown}
|
|
</code></pre>
|
|
<div class="edit-meta">
|
|
Last updated on 24 Jan 2025
|
|
|
|
|
|
<br>
|
|
Published on 24 Jan 2025
|
|
<br></div><nav class="pagination"><a class="nav nav-prev" href="//localhost:1313/cisco/commande-g%C3%A9n%C3%A9rale/" title="Commande Générale"><i class="fas fa-arrow-left" aria-hidden="true"></i> Prev - Commande Générale</a>
|
|
<a class="nav nav-next" href="//localhost:1313/cisco/routeur/" title="Routeur">Next - Routeur <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
|
|
</nav><footer><p class="powered">Powered by <a href="https://gohugo.io">Hugo</a>. Theme by <a href="https://themes.gohugo.io/hugo-theme-techdoc/">TechDoc</a>. Designed by <a href="https://github.com/thingsym/hugo-theme-techdoc">Thingsym</a>.</p>
|
|
</footer>
|
|
</main>
|
|
<div class="sidebar">
|
|
|
|
<nav class="slide-menu">
|
|
<ul>
|
|
<li class=""><a href="//localhost:1313/">Home</a></li>
|
|
|
|
<li class="parent has-sub-menu"><a href="//localhost:1313/cisco/">Cisco<span class="mark opened">-</span></a>
|
|
|
|
<ul class="sub-menu">
|
|
<li class=""><a href="//localhost:1313/cisco/commande-g%C3%A9n%C3%A9rale/">Commande Générale</a></li>
|
|
<li class="active"><a href="//localhost:1313/cisco/switch/">Switch</a></li>
|
|
<li class=""><a href="//localhost:1313/cisco/routeur/">Routeur</a></li>
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="sidebar-footer"></div>
|
|
</div>
|
|
|
|
</div><a href="#" id="backtothetop-fixed" class="backtothetop"
|
|
data-backtothetop-duration="600"
|
|
data-backtothetop-easing="easeOutQuart"
|
|
data-backtothetop-fixed-fadeIn="1000"
|
|
data-backtothetop-fixed-fadeOut="1000"
|
|
data-backtothetop-fixed-bottom="10"
|
|
data-backtothetop-fixed-right="20">
|
|
<span class="fa-layers fa-fw">
|
|
<i class="fas fa-circle"></i>
|
|
<i class="fas fa-arrow-circle-up"></i>
|
|
</span></a>
|
|
</div>
|
|
</body>
|
|
</html>
|