Commutateur - Switch
Cisco
Allied
3 Com
Glossaire
Cisco
Cisco Network Assistant

version 5.4 (56Mo)
(Obligation de s'inscrire chez Cisco, c'est très merdique)
Catalyst 2950 Series
Lien
Lien pdf
WS-C2950-12 (fin 22-10-2007)
WS-C2950-24 (fin 22-10-2007)
50db - 28W
WS-C2950C-24 24 10/100 ports and 2 fixed 100BASE-FX uplink ports (fin 22-10-2007)

WS-C2950G-12-EI 12 10/100 ports and 2 GBIC ports (fin 17-04-2006)

WS-C2950G-24-EI 24 10/100 ports and 2 GBIC ports (fin 17-04-2006)
WS-C2950G-24-EI-DC24 10/100 ports, 2 GBIC ports, DC power
WS-C2950G-48-EI 48 10/100 ports and 2 GBIC ports (fin 17-04-2006)
WS-C2950G-48-EI-DC 48 10/100 ports and 2 Gigabit Interface Converter (GBIC)-based Gigabit Ethernet ports
WS-C2950ST-8 LRE
WS-C2950ST-24 LRE
WS-C2950ST-24 LRE 997
WS-C2950SX-24 24 10/100 ports and 2 fixed 1000BASE-SX uplink ports (fin 22-10-2007)

WS-C2950T-24 24 10/100 ports and 2 fixed 10/100/1000BASE-T uplink ports (fin 17-04-2006)
WS-C2950SX-48-SI (fin 22-10-2007)
WS-C2950T-48-SI (fin 17-04-2006)

Voir l'adresse IP + mac adresse (Address Resolution Protocol)
Switch#show ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.106 - 0002.5359.5ac0 ARPA VLAN1
Switch#
Voir l'adresse IP de la passerelle
Switch#show ip redirect
Default gateway is 126.119.75.65
Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
Switch#
Voir tous les ports
Switch#s int statu |
Switch#show interface status |
Port Name Status Vlan Duplex Speed Type
------- ------------------ ------------ -------- ------ ------- ----
Fa0/1 notconnect trunk Auto Auto 100BaseTX/FX
Fa0/2 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/3 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/4 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/5 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/6 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/7 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/8 notconnect trunk Full 100 100BaseTX/FX
Fa0/9 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/22 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/23 notconnect 1 Auto Auto 100BaseTX/FX
Fa0/24 notconnect 1 Auto Auto 100BaseTX/FX
Switch#
Voir la configuration détaillé
Switch#show running-config
Switch#s ru
Building configuration...
Current configuration : 1231 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW1
!
enable secret 5 $1$3ECB$DOplIL4f9SV/.1uc.0.El/
enable password cisco2
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
description toto
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
ip address 192.168.0.20 255.255.255.0
no ip route-cache
!
ip http server
!
line con 0
line vty 0 4
password cisco3
login
line vty 5 15
password cisco3
login
!
!
end
Voir la version du Switch
Switch#show version
Switch#s ve
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 01:59 by yenanh
Image text-base: 0x80010000, data-base: 0x80568000
ROM: Bootstrap program is C2950 boot loader
SW1 uptime is 44 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-22.EA6.bin"
cisco WS-C2950-24 (RC32300) processor (revision E0) with 21013K bytes of memory.
Processor board ID FOC0714W249
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:FF:85:F0:93:0C
Motherboard assembly number: 73-5781-12
Power supply part number: 34-0965-01
Motherboard serial number: FO1C7140NX8
Power supply serial number: DAB08233SML
Model revision number: E0
Motherboard revision number: A0
Model number: WS-C2950-24
System serial number: FOC0613W238
Configuration register is 0xF
Nommage ou changer le nom du Switch
Switch#conf t
Switch(config)#ho SW1
SW1(config)#
|
Switch#configure terminal
Switch(config)#hostname SW1
SW1(config)#
|
Changer l'adresse IP
Switch#conf t
Switch(config)#int vla 1
Switch(config-if)#ip add 192.168.0.20 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#exit
|
Switch#configure teminal
Switch(config)#interface vlan 1
Switch(config-if)#ip add 192.168.0.20 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#exit
|
Changer l'adresse IP de la passerelle
Switch#conf t
Switch(config)#ip default-gateway 192.168.0.250
Switch(config-if)#exit
|
Switch#configure teminal
Switch(config)#ip default-gateway 192.168.0.250
Switch(config-if)#exit
|
Configuration d'un vlan
Switch>en
Switch#vl d
Switch (vlan)#vl 2 n TOTO
Switch (vlan)#exit
|
Switch>enable
Switch#vlan database
Switch (vlan)#vlan 2 name TOTO
Switch (vlan)#exit
|
Suppression d'un vlan
Switch>en
Switch#vl d
Switch (vlan)#n vl 2
Switch (vlan)#exit
|
Switch>enable
Switch#vlan database
Switch (vlan)#no vlan 2
Switch (vlan)#exit
|
Voir les vlan
Switch#s vl
|
Switch#show vlan
|
Configuration d'un vlan dédié à la téléphonie (3750/60)
Switch(config)#vlan 10
Switch(config-vlan)##name voip
Switch(config-vlan)#ex
Switch(config)#int fastEthernet 0/1
Switch(config)#switchport voice vlan 10
Affichage du statut PoE (802.3af - téléphone, borne wifi)
Switch#show power inline
Gestion des ports
Switch#conf t
Switch(config)#int f0/8
Switch(config)#int g0/1
Switch(config)#int r f0/1 - 5
|
Switch#configure terminal
Switch(config)#interface FastEthernet 0/8
Switch(config)#interface gigaEthernet 0/1
Switch(config)#interface range fastethernet 0/1 - 5
|
Nommage
Switch(config-if)#des TOTO
|
Switch(config-if)#description TOTO
|
Supprimer les noms
Switch(config-if)#no des
|
Switch(config-if)#no description
|
Fermeture
Switch(config-if)#sh
|
Switch(config-if)#shutdown
|
Ouvrerture
Switch(config-if)#no sh
|
Switch(config-if)#no shutdown
|
Affectation mode access
Switch(config-if)#sw m a
Switch(config-if)#sw a v 2
|
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
|
Affectation mode Trunk
Switch(config-if)#sw m t
Switch(config-if)#sw t a v al
Switch(config-if)#sw t a v 4,6
Switch(config-if)#sw t a v 1-6
|
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all (tous)
Switch(config-if)#switchport trunk allowed vlan 4,6 (4 et 6)
Switch(config-if)#switchport trunk allowed vlan 1-6 (1 à 6)
|
Suppression de la configuration d'un port
Switch(config-if)#no sw a v
Switch(config-if)#no sw m a
|
Switch(config-if)#no switchport access vlan
Switch(config-if)#no switchport mode access
|
Vitesse
Switch(config-if)#speed 10/100/auto
Switch(config-if)#duplex auto/full/half
Switch(config-if)#end
Voir l'heure
Switch#s clo
|
Switch#show clock
|
Réglage date et heure
Switch#clock set 01:20:22 July 10 2010
(January, February, March, April, May, June, July, August, September, October, November, December) pour Cisco
Fuseau horaire
Heure d'été
Switch#conf t
Switch(config)#service timestamps debug datetime localtime
Switch(config)#service timestamps log datetime localtime
Switch(config)#clock timezone CET +1
Switch(config)#clock summer-time CET recurring last Sun Mar 1:00 last Sun Oct 1:00
Switch(config)#ntp server @ip
Switch(config)#end
Switch#
Sauvegarde des données
Switch#wr m
|
Switch#write memory
|
Allied
AT-FS724L - 2003 (occasion 50€)

24 ports - 10/100 Mbits/s
Consommation = 15W (max)
Poids = 2.5 kg
Temps de mise en route = 20s
AT-8000S/48e (180€)
48 ports - 10/100 Mbits/s
2 ports - 10/100/1000T
2 combo ports
Consommation = 32,6W
Bruit = 41dB
Poids = 3,38 kg
Temps de mise en route = 20s

Aide
(espace) ?
http://alliedtelesis.fr/manuals/S94V30040CLIb/index.html
Mode diag 4 et 8
console# show version
SW version v1.1.0.32 ( date 13-Dec-2007 time 14:59:19 )
Boot version 1.0.1.06 ( date 01-Jul-2007 time 17:08:46 )
HW version
Mode diag 4 et 7
console# show version
SW version 1.0.0.25 ( date 07-Aug-2006 time 10:41:38 )
Boot version 1.0.0.05 ( date May 9 2006 time 11:56:50 )
HW version
Compte administrateur
Voir tous les comptes
console# show users accounts
Ajouter un nom d'administrateur (Priviliged Mode)
console# conf
console(config)# username administrateur password motdepasse level 15
Ajouter un login utilisateur (User Mode)
console# conf
console(config)# username toto (level 1 par défaut)
Impossible de supprimer un compte, le passer en level 1
Changer le mot de passe (de Manager, par défaut = friend)
console# conf
console(config)# username manager password nouveaumotdepasse
Voir la configuration des ports
console# show interface status
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
e1 100M-Copper -- -- -- -- Down -- --
e2 100M-Copper -- -- -- -- Down -- --
e3 100M-Copper -- -- -- -- Down -- --
e4 100M-Copper -- -- -- -- Down -- --
e5 100M-Copper -- -- -- -- Down -- --
e21 100M-Copper -- -- -- -- Down -- --
e22 100M-Copper -- -- -- -- Down -- --
e23 100M-Copper -- -- -- -- Down -- --
e24 100M-Copper -- -- -- -- Down -- --
g1 1G-Combo-C -- -- -- -- Down -- --
g2 1G-Combo-C -- -- -- -- Down -- --
Flow Link
Ch Type Duplex Speed Neg control State
-------- ------- ------ ----- -------- ------- -----------
ch1 -- -- -- -- -- Not Present
ch2 -- -- -- -- -- Not Present
ch3 -- -- -- -- -- Not Present
ch4 -- -- -- -- -- Not Present
ch5 -- -- -- -- -- Not Present
ch6 -- -- -- -- -- Not Present
ch7 -- -- -- -- -- Not Present
ch8 -- -- -- -- -- Not Present
console#
Détail d'un port
console# show interfaces switchport ethernet g1
Port : g1
Port Mode: Trunk
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 1
Protected: Disabled
Port is member in:
Vlan Name Egress rule Port Membership Type
---- -------------------------------- ----------- --------------------
1 1 Untagged System
2 1ervlan Tagged Static
3 2emevlan Tagged Static
Forbidden VLANS:
Vlan Name
---- --------------------------------
Classification rules:
Mac based VLANs:
Group ID Vlan ID
-------- -------
console#
Nommage ou changer le nom du Switch
console# conf
console(config)# hostname NOM
NOM(config)#
Adresse IP
Renseigner l'adresse IP
console#conf
console(config)#interface vlan 1
console(config-if)#ip address 192.168.0.1 255.255.255.0
console(config-if)#exit
console(config)#ip default-gateway 192.168.0.254
console(config)#end
console#
Si l'on essaye de changer l'adresse, un message d'erreur suivant s'affiche :
ip address table overflow => supprimer dabord l'adresse ip.
Suppression et modification de l'adresse IP
console#conf
console(config)#interface vlan 1
console(config-if)#no ip address
console(config-if)#do ship int vlan1
console(config-if)#ip address 192.168.0.1 255.255.255.0
console(config-if)#exit
console(config)#end
console#
Mode Trunk
interface e1
switch mode trunk
Voir les Vlan
console# show vlan
Vlan Name Ports Type Authorization
---- ----------------- --------------------------- ------------ -------------
1 1 g(1-2),ch(1-8) other Required
2 1ervlan e(1-12),g1 permanent Required
3 2emevlan e(13-24),g1 permanent Required
console#
Créer un Vlan
console# conf
console(config)# vlan database
console(config-vlan)# vlan 2,3
console(config-vlan)# exit
console(config)# interface vlan 2
console(config-if)# name 1ervlan
console(config-if)# exit
console(config)# interface vlan 3
console(config-if)# name 2emevlan
console(config-if)# end
console#
Suppression d'un Vlan
console(config-vlan)# no vlan 2
Affectation des ports
console# conf
console(config)# interface range ethernet e(1-12)
console(config-if)# switchport access vlan 2
console(config-if)# exit
console(config)# interface range ethernet e(13-24)
console(config-if)# switchport access vlan 3
console(config-if)# exit
console(config)# interface ethernet g1
console(config-if)# switchport mode trunk
console(config-if)# switchport trunk allowed vlan add 2,3
console(config-if)# end
console#
Fermer ou ouvrir un port
console# conf
console(config)# int ethernet e1
console(config)# no shutdown ou
console(config)# shutdown
console(config)# exit
Et toujours sauvegarder
console# copy run start
Overwrite file [startup-config] ?[Yes/press any key for no]....Y
Redémarage
console# reload
You haven't saved your changes. Are you sure you want to continue ? (Y/N)[N] Y
This command will reset the whole system and disconnect your current session. Do
you want to continue ? (Y/N)[N] Y
Régler l'horloge
console# show clock
console# clock set hh:mm:ss jour mois année (17:53:00 7 Apr 2011)
(January, February, March, April, May, June, July, August, September, October, November, December) pour Cisco
(JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC) pour Allied
console# clock timezone 1
console# clock summer-time recurring eu
Voir les ports PoE
console#show power inline
Unit Power Nominal Power Consumed Power Usage Threshold Traps
---- ------- ------------- ------------------ --------------- ---------
1 On 180 Watts 4 Watts (2%) 95 Disable
Port Powered Device State Status Priority Class
------- -------------------- -------- ------------ -------- ---------
e1 Auto Searching low class0
e2 Auto Searching low class0
e3 Auto On low class2
e4 Auto Searching low class0
e20 Auto Searching low class0
e21 Auto Searching low class0
e22 Auto Searching low class0
console#
Raccoucis de commandes
configure terminal = conf t (Cisco)
config = conf (Allied)
enable = en
int vla = interface vlan
copy running-config startup-config = copy run start = copy r s
show running-config = show run
exit = ex = end = Ctrl + z
reload = rel
delete startup-config = del st
show users accounts = sh us ac
show interface status = sh in st
3 com 
Superstack II - Baseline Hub - 3C16441 - 1998 (occasion 50€)

24 ports - 10 Mbits/s
Consommation = 44W
Poids = 2 kg
Temps de mise en route = 20s
Liens
http://www.petri.co.il/csc_how_to_recover_lost_password_on_cisco_switch.htm
http://www.commentcamarche.net/faq/17126-routeurs-cisco-parametres-de-base
http://fr.wikibooks.org/wiki/Configuration_de_routeurs_Cisco
http://www.akadia.com/services/cisco_router_firewall.html
http://www.adm4net.com/adm4net/matactif/cisco/config.php
Carte des câbles sous-marins

Glosssaire
Câble croisé = crossover
Câble droit = straight-through
HNM = Home Network Manager
LAN = Local Area Network
MAC adress = Media Access Control adress
PABX = Private Automatic Branch Exchange
VLAN = Virtual Local Area Network
PoE = Power over Ethernet