Sunteți pe pagina 1din 19

Le routeur Cisco 1841

IOS

TP : Conguration de routeurs CISCO


Sovanna Tan

Novembre 2010 r evision d ecembre 2012

1/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

IOS

Plan

Pr esentation du routeur Cisco 1841

Le syst` eme dexploitation IOS

2/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

IOS

Le routeur Cisco 1841

Image provenant de : http://www.bircon.com/index.php?cPath=23

3/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

IOS

Fonctionnalit es du Routeur Cisco 1841

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

Le routeur Cisco 1841

IOS

Param etrage du routeur

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

Le routeur Cisco 1841

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

Le routeur Cisco 1841

IOS

Pr esentation du routeur Cisco 1841

Le syst` eme dexploitation IOS

7/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

IOS

Le syst` eme dexploitation 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

Le routeur Cisco 1841

IOS

Obtenir des informations


La commande show show show show show show show show show show show running-config startup-config interface nomInterface ip interface brief ip protocols ip route ip access-lists ip nat translations ip dhcp binding version la conguration courante la conguration en m emoire la conguration de linterface vue densemble des interfaces les protocoles de routage les tables de routage les ACLs le NAT les r eservations DHCP version dIOS

9/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

IOS

Conguration des interfaces


En mode conguration interface nomInterface ip address adresseIP masqueSousReseau description no shutdown s election adresse IP commentaire activation

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

Le routeur Cisco 1841

IOS

Conguration de la route par d efaut

En mode conguration ip route adrIPReseau masque adrIPGateway route statique

Exemple Router(config)# ip route 0.0.0.0 0.0.0.0 10.10.15.1

11/19

Sovanna Tan

TP : Routeurs CISCO

Le routeur Cisco 1841

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

Le routeur Cisco 1841

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

Le routeur Cisco 1841

IOS

Aper cu de la conguration des ACLs standard


En mode conguration access-list num ero deny|permit adrSrc [maskSrc ] r` egle

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

Le routeur Cisco 1841

IOS

Les objectifs du NAT


NAT statique Il rend visible un serveur appartenant ` a un r eseau non routable en faisant correspondre son adresse IP ` a une adresse IP accessible de lext erieur. En mode conguration ip nat inside source static adrInterne adrExterne r` egle

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

Le routeur Cisco 1841

IOS

Conguration du NAT dynamique


En mode conguration
ip nat pool nom IPdebut IPFin netmask|prefix-length masque ip nat inside source list num eroACL pool nomPool [overload]

plage lien ACL

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

Le routeur Cisco 1841

IOS

Conguration des acc` es console et telnet


En mode conguration username nom priv niveau secret O pass line con 0 line vty 0 4 login local utilisateur acc` es port console acc` es telnet demander login/password

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

Le routeur Cisco 1841

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

Le routeur Cisco 1841

IOS

Sauvegarde des congurations

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

Exemple Router# copy running-config startup-config Router# copy running tftp://10.10.15.10:/config-routeur

19/19

Sovanna Tan

TP : Routeurs CISCO

S-ar putea să vă placă și