LAN
configurer nom dʼequi[ement
Router (config)# hostname [nom]
desactiver recherche DNS
Router (config)# no ip domain-lookup
configurer banniere:
Router (config)# banner [msg]
Configurer pwd non hache mode privilige
Router (config)# enable password [pwd]
configurer pwd hache mode privilige
Router (config)#enbale secret [pwd]
configurer pwd mode condole
Router (config)# line console 0
Router (config-line)#password [pwd]
Router (config-line)# login
encrypter tous les pwd
Router (config)#service password-encryption
enregistrement (copier contenu fichier temporaire dans permenant
Untitled
Router #copy running-config startup-config
oubien
Router # wr
VLAN
creation de vlan
Router (config)#vlan [id-vlan]
Router (config-vlan)#name [nom[
suppression vlan
Router (config)#no vlan [id-vlan]
affecter des ports “Accessˮ
Router (config)#interface range fa0/0, fa0/4 →si plusieur interface meme
temps
ou bien
Router (config)#interface fa0/3
Router (config-if-range)#switchport mode access
Router (config-if-range)#switchport access vlan [id-vlan]
configurer SVI
interface vlan [id-vlan]
ip address IP MSR
no shutdown
Routage statique
configurer interface
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
show ip interface brief
desactiver interface
R3(config)#interface Serial3/0
R3(config-if)#shutdown
Réglez la fréquence d'horloge
R1(config-if)#interface serial 2/0
R1(config-if)#ip address 192.168.2.1 255.255.255.252
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
configurer route flottante
R3(config)#ip route 0.0.0.0 0.0.0.0 se2/0 5
Routage statique standard:
configurer route statique direct connecte:(liaison pt a pt entre 2 routeurs)
Router (config)# ip route Rx du reseau distant] [MSR du reseau] [nom
interface de sortie de ce routeur]
EXP Router (config)# ip route 192.168.2.1 255.255.255.0 s0/0/0
configurer route statique du troncon suivant :
Router (config)# ip route Rx du reseau distant] [MSR du reseau] [IP
du prochain saut]
EXP Router (config)# ip route 192.168.2.1 255.255.255.0 172.16.2.2
passerelle prend premier IP donc start with IP 2 a. b. c.
Routage statique par defaut:
configurer route statique par defaut :
OSPF
Router (config)# ip route 0.0.0.0 0.0.0.0 de a passerelle ]
EXPL ip route 0.0.0.0 0.0.0.0 172.16.3.0
OSPF
activer protocole OSPF (configurer OSPF
router ospf [process-id] → process-id random number entre 1 et 65535
specifier reseaux directement connectés au zone ospf
Router(config-router)# network Rx du reseau] [MSR area [area-id]
configurer interfaces passives (empecher transmission msg)
Router (config)# router ospf [process-id]
Router (config-router)# passive-interface g0/0
Router (config-router)# end
configurer id du routeur
Router (config)#router ospf [process-id]
Router (config-router)# router-id 1.1.1.1
Router (config-router)#end
reinitialiser adjacences (desactiver processus OSPF
Router#clear ip ospf process
recharger le routeur
Router# reload
Configurer adresse de bouclage
R2(config)#interface loopback1
R2(config-if)#ip address 1.1.1.1 255.255.255.255
modifier bande passante reference
Router (config)#auto-cost reference-bandwidth
modifier bande passante interface
R1(config)# interface s0/0/0
(config-if)# bandwidth valeur_bande_passante
modifier coût interface
(config-if)# ip ospf cost valeur_coût
Redistribution route statique par défaut(inlus statique au modification)
R2(config)#router ospf PROCESSID
R2(config-router)# default-information originate
R2(config-router)# do show ip route
Affichage :
afficher table switch
Router #show mac-address-table
afficher carcateristiqur du interface (afficher BP
Router # show interface f/0/0
afficher running config
show running-config
afficher VLAN ports affectés)
Router # show vlan brief
afficher TR
Router # show ip route
afficher les routes statiques
Router # show ip route static
afficher table de voisinage (verifier contiguite)
Router # show ip ospf neighbour
afficher table topologie
Router # show ip ospf database
afficher valeurs par defaut de Hello-timer et Dead-timer ( interface passive)
(interface compatible OSPF
Router # show ip ospf interface interface_name
afficher les route OSPF
Untitled
5
Router # show ip route O
afficher parametres de protocole OSPF
show ip protocols
afficher information de processus OSPF (afficher cout cummule)
show ip ospf
afficher interface avec cout
Untitled
show ip ospf interface brie