les protocoles rip v1 et rip v2 · rip v1 et rip v2. 2 configuration du réseau à l’aide de...

Post on 02-Oct-2020

15 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Les commandes I.O.S

V.GuilleméCCNP1

Les protocoles RIP V1 et RIP V2

2

Configuration du réseau

à l’aide de l’ios Cisco

Exercice n°1

3

La topologie de ce réseau

.253

.253

.253

4

Configuration du réseau avec le protocole de routage

RIPv1

.253

.253

.253

5

.253

.253

.253

Configuration des postes

sur les différents postes

Exemple sur PC0

6

Double clic sur le poste nomméPC0

7

Onglet Desktop puis 106

8

Onglet Desktop puis 106

9

• IP address• 192.168.10.1

• Subnet Mask:

• 255.255.255.0

• Default Gateway:

• 192.168.10.254

10

• Continuer cette séquence pour les postes:– Pc1– PC2– PC3– Pc4– Pc5– PC6

• Adapter en fonction du Poste :–l’adresse IP, le masque de sous-réseau

et l’adresse IP de la passerelle

11

Sw1

.253

.253

.253

12

.253

.253

.253

Configuration de la sécurité de l’appareil

Sw1

13

Switch> enableSwitch# configure terminal Switch (config) # hostname Sw1Sw1 (config) # enable secret classSw1 (config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

Sw1

.253

.253

.253

14

Sw1 (config) #Sw1 (config) # line console 0Sw1 (config-line) # password ciscoSw1 (config-line) # loginSw1 (config-line) # logging synchronousSw1 (config-line) # exec-timeout 3 30Sw1 (config-line) # exit Sw1 (config) #

Protection Accès Port Console

Sw1

.253

.253

.253

15

Sw1 (config) # line vty 0 ?(1-15)

Sw1 (config) # line vty 0 15Sw1 (config-line) # password ciscoSw1 (config-line) # loginSw1 (config-line) # logging synchronousSw1 (config-line) # exec-timeout 3 30Sw1 (config-line) # endSw1#

Protection Telnet et/ou SSH

Sw1

.253

.253

.253

16

.253

.253

.253

Configuration de l’adresse d’administration

Sw1

17

Sw1(config)#Sw1(config)# interface vlan 1Sw1(config-if)# description Adresse d'administrationSw1(config-if)# ip address 192.168.10.253

255.255.255.0Sw1(config-if)# no shutdown

Adresse d'administration du commutateur

Permet l’accès Telnet et/ou SSH

.253

.253

.253

Sw1

18

Sw2

.253

.253

.253

19

.253

.253

.253

Configuration de la sécurité de l’appareil

Sw2

20

Switch> enableSwitch# configure terminal Switch (config) # hostname Sw2Sw2 (config) # enable secret classSw2 (config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

Sw2

.253

.253

.253

21

Sw2 (config) #Sw2 (config) # line console 0Sw2 (config-line) # password ciscoSw2 (config-line) # loginSw2 (config-line) # logging synchronousSw2 (config-line) # exec-timeout 3 30Sw2 (config-line) # exit Sw2 (config) #

Protection Accès Port Console

Sw2

.253

.253

22

Sw2 (config) # line vty 0 ?(1-15)

Sw2 (config) # line vty 0 15Sw2 (config-line) # password ciscoSw2 (config-line) # loginSw2 (config-line) # logging synchronousSw2 (config-line) # exec-timeout 3 30Sw2 (config-line) # endSw2 #

Protection Telnet et/ou SSH

Sw2

.253

.253

23

.253

.253

.253

Configuration de l’adresse d’administration

Sw2

24

Sw2 (config)#Sw2 (config)# interface vlan 1Sw2 (config-if)# description Adresse d'administrationSw2 (config-if)# ip address 172.16.100.253

255.255.255.0Sw2 (config-if)# no shutdown

Adresse d'administration du commutateur

Permet l’accès Telnet et/ou SSH

.253

.253

.253Sw2

25

.253

.253

.253Sw3

26

.253

.253

.253

Configuration de la sécurité de l’appareil

Sw3

27

Switch> enableSwitch# configure terminal Switch (config) # hostname Sw3Sw3 (config) # enable secret classSw3 (config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

Sw3

.253

.253

28

Sw3 (config) #Sw3 (config) # line console 0Sw3 (config-line) # password ciscoSw3 (config-line) # loginSw3 (config-line) # logging synchronousSw3 (config-line) # exec-timeout 3 30Sw3 (config-line) # exit Sw3 (config) #

Protection Accès Port Console

Sw3

.253

.253

29

Sw3 (config) # line vty 0 ?(1-15)

Sw3 (config) # line vty 0 15Sw3 (config-line) # password ciscoSw3 (config-line) # loginSw3 (config-line) # logging synchronousSw3 (config-line) # exec-timeout 3 30Sw3 (config-line) # endSw3 #

Protection Telnet et/ou SSH

Sw3

.253

.253

30

.253

.253

.253

Configuration de l’adresse d’administration

Sw3

31

Sw3 (config)#Sw3 (config)# interface vlan 1Sw3 (config-if)# description Adresse d'administrationSw3 (config-if)# ip address 100.100.100.253

255.255.255.0Sw3 (config-if)# no shutdown

Adresse d'administration du commutateur

Permet l’accès Telnet et/ou SSH

.253

.253

.253

Sw3

32

FAI

33

Configuration de la sécurité de l’appareil

.253

.253

.253

34

Router> enableRouter # configure terminal Router(config) # hostname FAIFAI (config) # enable secret classFAI (config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

.253

.253FAI

35

FAI (config) #FAI (config) # line console 0FAI (config-line) # password ciscoFAI (config-line) # loginFAI (config-line) # logging synchronousFAI (config-line) # exec-timeout 3 30FAI (config-line) # exit FAI (config) #

Protection Accès Port Console

.253

.253FAI

36

FAI (config) # line vty 0 ?(1-15)

FAI (config) # line vty 0 15FAI (config-line) # password ciscoFAI (config-line) # loginFAI (config-line) # logging synchronousFAI (config-line) # exec-timeout 3 30FAI (config-line) # endFAI #

Protection Telnet et/ou SSH

.253

.253FAI

37

FAI (config) # line aux 0 FAI (config-line) # password ciscoFAI (config-line) # loginFAI (config-line) # logging synchronousFAI (config-line) # exec-timeout 3 30FAI (config-line) # endFAI #

Protection du port auxiliaire

.253

.253FAI

38

Configuration des interfaces

.253

.253

.253

39

FAI (config)#FAI(config)# interface FastEthernet 0/0FAI(config-if)# description réseau FAI FAI (config-if)# ip address 10.10.10.254

255.255.255.0FAI (config-if)# no cdp enable FAI (config-if)# no shutdown

Adresse FastEthernet

.253

.253

.253

FAI

Donne une adresse IP àl’interface Ethernet du réseau local

Le protocole CDP est stoppé

Sur Fa 0/0

40

FAI (config)#FAI(config)# interface serial 0/0FAI(config-if)# description Liaison FAI-CL1FAI(config-if)# clock rate 64000FAI(config-if)# bandwidth 64FAI (config-if)# ip address 200.200.200.5

255.255.255.252FAI (config-if)# no shutdown

Donne une adresse IP àl’interface de la liaison série 200.200.200.4/30

.253

.253

.253

FAI

Adresse Série

41

Adresse Série

.253

.253

.253

FAI

FAI (config)#FAI(config)# interface serial 0/1FAI(config-if)# description Liaison FAI-CL2FAI(config-if)# clock rate 64000FAI(config-if)# bandwidth 64FAI (config-if)# ip address 200.200.200.9

255.255.255.252FAI (config-if)# no shutdown

Donne une adresse IP àl’interface de la liaison série 200.200.200.8/30

42

CL1

43

Configuration de la sécurité de l’appareil

.253

.253

.253

CL1

44

Router> enableRouter # configure terminal Router(config) # hostname CL1CL1 (config) # enable secret classCL1(config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

.253

.253CL1

45

CL1(config) #CL1(config) # line console 0CL1(config-line) # password ciscoCL1(config-line) # loginCL1(config-line) # logging synchronousCL1(config-line) # exec-timeout 3 30CL1(config-line) # exit CL1(config) #

Protection Accès Port Console

.253

.253CL1

46

CL1(config) # line vty 0 ?(1-15)

CL1(config) # line vty 0 15CL1(config-line) # password ciscoCL1(config-line) # loginCL1(config-line) # logging synchronousCL1(config-line) # exec-timeout 3 30CL1(config-line) # endCL1 #

Protection Telnet et/ou SSH

.253

.253CL1

47

CL1(config) # line aux 0 CL1(config-line) # password ciscoCL1(config-line) # loginCL1(config-line) # logging synchronousCL1(config-line) # exec-timeout 3 30CL1(config-line) # endCL1 #

Protection du port auxiliaire

.253

.253CL1

48

Configuration des interfaces

.253

.253

.253

CL1

49

CL1(config)#CL1(config)# interface FastEthernet 0/0CL1 (config-if)# description réseau CL1 CL1(config-if)# ip address 192.168.10.254

255.255.255.0CL1(config-if)# no cdp enable CL1(config-if)# no shutdown

Adresse FastEthernet

.253

.253

.253

Donne une adresse IP àl’interface Ethernet du réseau local

CL1

Le protocole CDP est stoppé

Sur Fa 0/0

50

Adresse Série

.253

.253

.253

CL1(config)#CL1(config)# interface serial 0/1CL1(config-if)# description Liaison CL1- FAI CL1(config-if)# bandwidth 64CL1(config-if)# ip address 200.200.200.6

255.255.255.252CL1(config-if)# no shutdown

Donne une adresse IP àl’interface de la liaison série 200.200.200.8/30

CL1

51

CL2

52

Configuration de la sécurité de l’appareil

.253

.253

.253

CL2

53

Router> enableRouter # configure terminal Router(config) # hostname CL2CL2 (config) # enable secret classCL2 (config) # banner motd “Avez-vous les droits de vous connecter

à cet appareil”

Mot passe Administratif mode privilégié

Nom du périphérique

et son message d’accueil

.253

.253

CL2

54

CL2(config) #CL2(config) # line console 0CL2(config-line) # password ciscoCL2(config-line) # loginCL2(config-line) # logging synchronousCL2(config-line) # exec-timeout 3 30CL2(config-line) # exit CL2(config) #

Protection Accès Port Console

.253

.253

CL2

55

CL2(config) # line vty 0 ?(1-15)

CL2(config) # line vty 0 15CL2(config-line) # password ciscoCL2(config-line) # loginCL2(config-line) # logging synchronousCL2(config-line) # exec-timeout 3 30CL2(config-line) # endCL2 #

Protection Telnet et/ou SSH

.253

.253

CL2

56

CL2(config) # line aux 0 CL2(config-line) # password ciscoCL2(config-line) # loginCL2(config-line) # logging synchronousCL2(config-line) # exec-timeout 3 30CL2(config-line) # endCL2 #

Protection du port auxiliaire

.253

.253

CL2

57

Configuration des interfaces

.253

.253

.253

CL2

58

CL2(config)#CL2(config)# interface FastEthernet 0/0CL2(config-if)# description réseau CL2CL2(config-if)# ip address 172.16.100.254

255.255.255.0CL2(config-if)# no cdp enable CL2(config-if)# no shutdown

Adresse FastEthernet

.253

.253

.253

Donne une adresse IP àl’interface Ethernet du réseau local

CL2

Le protocole CDP est stoppé

Sur Fa 0/0

59

CL2(config)#CL2(config)# interface serial 0/0CL2(config-if)# description Liaison CL2 - FAICL2(config-if)# bandwidth 64CL2(config-if)# ip address 200.200.200.10

255.255.255.252CL2(config-if)# no shutdown

Donne une adresse IP àl’interface de la liaison série 200.200.200.4/30

.253

.253

.253Adresse Série

CL2

60

Implémentation du routage Ripv1

.253

.253

.253

61

FAI

62

FAI

FAI (config) # router ripFAI (config - router ) # network 10.0.0.0 FAI (config - router ) # network 200.200.200.0FAI (config - router ) # passive-interface fa 0/0

Les mises à jour de routage sont stoppées sur Fa0/0

63

CL1

64

CL1 (config) # router ripCL1(config - router ) # network 192.168.10.0CL1(config - router ) # network 200.200.200.0CL1(config - router ) # passive-interface fa 0/0

CL1

Les mises à jour de routage sont stoppées sur Fa0/0

65

CL2

66

CL2

CL2 (config) # router ripCL2 (config - router ) # network 172.16.0.0CL2 (config - router ) # network 200.200.200.0CL2 (config - router ) # passive-interface fa 0/0

Les mises à jour de routage sont stoppées sur Fa0/0

67

Vérification des tables de routage

.253

.253

.253

68

FAI

69

FAIFAI# show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 20 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive any version

Interface Send Recv Triggered RIP Key-chainSerial0/0 1 2 1 Serial0/1 1 2 1 FastEthernet0/0 1 2 1

Automatic network summarization is in effectMaximum path: 4Routing for Networks:

10.0.0.0200.200.200.0

Passive Interface(s):Routing Information Sources:

Gateway Distance Last Update200.200.200.10 120 00:00:23200.200.200.6 120 00:00:23

Distance: (default is 120)

FAI (config) # router ripFAI(config - router) # network 10.0.0.0FAI(config - router) # network 200.200.200.0

70

• FAI# show ip protocols • Routing Protocol is "rip"• Sending updates every 30 seconds, next due in 5 seconds• Invalid after 180 seconds, hold down 180, flushed after 240• Outgoing update filter list for all interfaces is not set• Incoming update filter list for all interfaces is not set• Redistributing: rip• Default version control: send version 1, receive any version• Interface Send Recv Triggered RIP Key-chain• Serial0/0 1 2 1 • Serial0/1 1 2 1 • Automatic network summarization is in effect• Maximum path: 4• Routing for Networks:• 10.0.0.0• 200.200.200.0• Passive Interface(s):• FastEthernet0/0• Routing Information Sources:• Gateway Distance Last Update• 200.200.200.10 120 00:00:23• 200.200.200.6 120 00:00:21• Distance: (default is 120)

FAI

FAI (config) # router ripFAI(config - routeur) # network 10.0.0.0FAI(config - routeur) # network 200.200.200.0FAI(config - routeur) # passive-interface fa 0/0

71

CL2

72

• CL2#show ip protocols • Routing Protocol is "rip"• Sending updates every 30 seconds, next due in 20 seconds• Invalid after 180 seconds, hold down 180, flushed after 240• Outgoing update filter list for all interfaces is not set• Incoming update filter list for all interfaces is not set• Redistributing: rip• Default version control: send version 1, receive any version• Interface Send Recv Triggered RIP Key-chain• Serial0/0 1 2 1 • Automatic network summarization is in effect• Maximum path: 4• Routing for Networks:• 172.16.0.0• 200.200.200.0• Passive Interface(s):• FastEthernet0/0• Routing Information Sources:• Gateway Distance Last Update• 200.200.200.9 120 00:00:18• Distance: (default is 120)• CL2#

73

CL1

74

• CL1#show ip protocols • Routing Protocol is "rip"• Sending updates every 30 seconds, next due in 3 seconds• Invalid after 180 seconds, hold down 180, flushed after 240• Outgoing update filter list for all interfaces is not set• Incoming update filter list for all interfaces is not set• Redistributing: rip• Default version control: send version 1, receive any version• Interface Send Recv Triggered RIP Key-chain• Serial0/1 1 2 1 • Automatic network summarization is in effect• Maximum path: 4• Routing for Networks:• 192.168.10.0• 200.200.200.0• Passive Interface(s):• FastEthernet0/0• Routing Information Sources:• Gateway Distance Last Update• 200.200.200.5 120 00:00:19• Distance: (default is 120)• CL1#

75

FAI

76

• FAI#show ip route• Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP• D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area• N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2• E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP• i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area• * - candidate default, U - per-user static route, o - ODR• P - periodic downloaded static route

• Gateway of last resort is not set

• C 10.0.0.0/8 is directly connected, FastEthernet0/0• R 172.16.0.0/16 [120/1] via 200.200.200.10, 00:00:18, Serial0/1• R 192.168.10.0/24 [120/1] via 200.200.200.6, 00:00:02 , Serial0/0• 200.200.200.0/30 is subnetted, 2 subnets• C 200.200.200.4 is directly connected, Serial0/0• C 200.200.200.8 is directly connected, Serial0/1• FAI#

FAI

77

CL1

78

• CL1# show ip route• Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -

BGP• D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter

area• N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external

type 2• E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP• i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area• * - candidate default, U - per-user static route, o - ODR• P - periodic downloaded static route

• Gateway of last resort is not set

• R 10.0.0.0/8 [120/1] via 200.200.200.5, 00:00:12 , Serial0/1• R 172.16.0.0/16 [120/2] via 200.200.200.5, 00:00 :12, Serial0/1• C 192.168.10.0/24 is directly connected, FastEthern et0/0• 200.200.200.0/30 is subnetted, 2 subnets• C 200.200.200.4 is directly connected, Serial0/1• R 200.200.200.8 [120/1] via 200.200.200.5, 00 :00:12, Serial0/1• CL1#

CL1

79

CL2

80

• CL2#show ip route• Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -

BGP• D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter

area• N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external

type 2• E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP• i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area• * - candidate default, U - per-user static route, o - ODR• P - periodic downloaded static route

• Gateway of last resort is not set

• R 10.0.0.0/8 [120/1] via 200.200.200.9, 00:00:11 , Serial0/0• R 192.168.10.0/24 [120/2] via 200.200.200.9, 00: 00:11, Serial0/0• 200.200.200.0/30 is subnetted, 2 subnets• R 200.200.200.4 [120/1] via 200.200.200.9, 00 :00:11, Serial0/0• C 200.200.200.8 is directly connected, Serial0/0• CL2#

CL2

81

FIN

.253

.253

.253

top related