Documente Academic
Documente Profesional
Documente Cultură
IOS
1/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Plan
2/19
Sovanna Tan
TP : Routeurs CISCO
IOS
3/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Fonctions de base du routeur Routage : OSPF, RIP, IGRP Network Address Translation (NAT) Access Control Lists (ACLs) Serveur DHCP Serveur HTTP Administration SNMP
4/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Interfaces de conguration Command Line Interface : port console, telnet Interface graphique : navigateur web et java pour conguration partielle
5/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Sources
http://www.cisco.com http://cisco.goffinet.org/ M emento Cisco, IOS Conguration g en erale, R. Bergoin et C. Bourg, Eyrolles 2008
6/19
Sovanna Tan
TP : Routeurs CISCO
IOS
7/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Modes dacc` es Ex ecution (prompt >) : mode par d efaut Privil egi e (prompt #) : commande pour passer en mode privil egi e enable Conguration (prompt (config)#) : commande pour passer en mode conguration configure terminal, pour sortir du mode conguration CTRL Z
8/19
Sovanna Tan
TP : Routeurs CISCO
IOS
9/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Exemple : Router(config)# interface Fastethernet 0/0 Router(config-if)# ip address 10.10.10.1 255.255.255.0 Router(config-if)# description "cote reseau local" Router(config-if)# no shutdown
10/19
Sovanna Tan
TP : Routeurs CISCO
IOS
11/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Conguration de OSPF
En mode conguration router ospf id network adrReseau masqueInverse area noAire default-information originate redistribute rip [subnets] protocole reseau propagation de la route par d efaut redistribution des routes RIP
Exemple Router(config)# router Router(config-router)# Router(config-router)# Router(config-router)# ospf 1 network 10.10.10.0 0.0.0.255 area 0 network 10.10.15.0 0.0.0.255 area 0 default-information originate
12/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Conguration de RIP
En mode conguration router rip version num ero network adrReseau default-information originate redistribute ospf id protocole version r eseau propagation de la route par d efaut redistribution des routes OSPF
Exemple Router(config)# router rip Router(config)# version 2 Router(config-router)# network 10.10.10.0 Router(config-router)# network 10.10.15.0 Router(config-router)# default-information originate
13/19 Sovanna Tan TP : Routeurs CISCO
IOS
Exemple : autoriser les paquets dont ladresse source est comprise entre 10.10.10.0 et 10.10.10.31 Router(config)# access-list 7 permit 10.10.10.0 0.0.0.31
Exemple : appliquer lACL ` a linterface Router(config)# interface FastEthernet 0/0 Router(config-if)# ip access-group 7 in
14/19
Sovanna Tan
TP : Routeurs CISCO
IOS
NAT dynamique Il permet ` a un ensemble de machines appartenant ` a un r eseau non routable de communiquer avec le r eseau externe en transformant leurs adresses en une ou plusieurs adresses accessibles de lext erieur.
15/19 Sovanna Tan TP : Routeurs CISCO
IOS
Exemple : Router(config)# access-list 7 permit 10.10.10.0 0.0.0.31 Router(config)# ip nat pool ovrld 10.10.15.1 10.10.15.1 prefix 24 Router(config)# ip nat inside source list 7 pool ovrld overload Router(config)# interface FastEthernet0/0 Router(config-if)# ip address 10.10.10.1 255.255.255.0 Router(config-if)# ip nat inside Router(config)# interface FastEthernet 0/1 Router(config-if)# ip address 10.10.15.1 255.255.255.0 Router(config-if)# ip nat outside
16/19
Sovanna Tan
TP : Routeurs CISCO
IOS
Exemple Router(config)# user admin priv 15 secret 0 cisco Router(config)# line con 0 Router(config-line)# login local Router(config)# line vty 0 4 Router(config-line)# login local
17/19 Sovanna Tan TP : Routeurs CISCO
IOS
Conguration du DHCP
En mode conguration ip dhcp pool nomPool network adrIP masque ip dhcp excluded-address adrDebut [adrFin] default-router adrIP dns-server adrIP service dhcp Exemple Router(config)# ip dhcp pool ssi Router(dhcp-config)# network 10.10.10.0 255.255.255.0 Router(dhcp-config)# default-router 10.10.10.1 Router(dhcp-config)# dns-server 10.10.15.1 Router(dhcp-config)# ip dhcp excluded-address 10.10.10.1 Router(config)# service dhcp
18/19 Sovanna Tan TP : Routeurs CISCO
conguration adresse r eseau plage non allou ee route par d efaut serveur DNS d emarrer le service
IOS
En mode privil egi e copy running-config startup-config ou write memory copy run tftp://adrIPserveur :/chier sauvegarde dans la NVRAM sauvegarde sur un serveur tftp
19/19
Sovanna Tan
TP : Routeurs CISCO