Professional Documents
Culture Documents
IOS
Novembre 2010
1/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
Plan
2/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
3/19
Sovanna Tan
TP no 2 : 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 no 2 : Routeurs CISCO
IOS
Paramtrage du routeur e
Interfaces de conguration Command Line Interface : port console, telnet Interface graphique : navigateur web et java pour conguration partielle
5/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
Sources
http://www.cisco.com http://cisco.goffinet.org/ Mmento Cisco, IOS Conguration gnrale, R. Bergoin et e e e C. Bourg, Eyrolles 2008
6/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
7/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
Modes dacc`s e Excution (prompt >) : mode par dfaut e e Privilgi (prompt #) : commande pour passer en mode e e privilgi enable e e Conguration (prompt (config)#) : commande pour passer en mode conguration configure terminal, pour sortir du mode conguration CTRL Z
8/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
9/19
Sovanna Tan
TP no 2 : 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 no 2 : Routeurs CISCO
IOS
11/19
Sovanna Tan
TP no 2 : 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 dfaut e 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 no 2 : Routeurs CISCO
IOS
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 no 2 : 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 ` linterface a Router(config)# interface FastEthernet 0/0 Router(config-if)# ip access-group 7 in
14/19
Sovanna Tan
TP no 2 : Routeurs CISCO
IOS
NAT dynamique Il permet ` un ensemble de machines appartenant ` un rseau non a a e routable de communiquer avec le rseau externe en transformant e leurs adresses en une ou plusieurs adresses accessibles de lextrieur. e
15/19 Sovanna Tan TP no 2 : 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 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 no 2 : 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 no 2 : 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 no 2 : Routeurs CISCO
conguration adresse rseau e plage non alloue e route par dfaut e serveur DNS dmarrer le service e
IOS
En mode privilgi e 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 no 2 : Routeurs CISCO