HSRP – Mise en place

cisco logo

HSRP – Mise en place

cisco logo

Hot Standby Router Protocol (HSRP) est un protocole propriétaire de Cisco implémenté sur les routeurs et les commutateurs de niveau 3 permettant une continuité de service. HSRP est principalement utilisé pour assurer la disponibilité de la passerelle par défaut dans un sous-réseau en dépit d’une panne d’un routeur.

HSRP est décrit dans la RFC 22811.

Source : wikipedia

Exemple : 

schema cisco hsrp

Explication :

Avec cette configuration d’infrastructure, il y aura continuité de service si l’un des routeur tombe en panne.

Cela permet d’avoir une redondance au niveau des liens vers le F.A.I

Configuration R1

[pastacode lang= »bash » manual= »hostname%20R1%0A!%0Aboot-start-marker%0Aboot-end-marker%0A!%0Alogging%20message-counter%20syslog%0A!%0Ano%20aaa%20new-model%0Aip%20source-route%0Ano%20ip%20icmp%20rate-limit%20unreachable%0Aip%20cef%0A!%0A!%20%20%20%20%20%20%20%20%20%0Ano%20ip%20domain%20lookup%0Ano%20ipv6%20cef%0A!%0Amultilink%20bundle-name%20authenticated%0A!%0A!%0Aarchive%0A%20log%20config%0A%20%20hidekeys%0A!%20%0A!%0A!%0A!%0A!%0Aip%20tcp%20synwait-time%205%0A!%0Atrack%2010%20ip%20sla%201%20reachability%0A!%0A!%0A!%0A!%0Ainterface%20FastEthernet0%2F0%0A%20description%20LAN%20Interface%0A%20ip%20address%20192.168.1.1%20255.255.255.0%0A%20duplex%20half%0A%20standby%201%20ip%20192.168.1.3%0A%20standby%201%20priority%20101%0A%20standby%201%20preempt%0A%20standby%201%20track%2010%20decrement%205%0A!%0Ainterface%20Ethernet1%2F0%0A%20description%20WAN%20interface%0A%20ip%20address%201.1.1.1%20255.255.255.0%0A%20shutdown%0A%20duplex%20half%0A%20standby%200%20preempt%0A%20standby%201%20ip%201.1.1.3%0A%20standby%201%20priority%20101%0A%20standby%201%20track%2010%20decrement%205%0A!%0Ainterface%20Ethernet1%2F1%0A%20no%20ip%20address%0A%20shutdown%0A%20duplex%20half%0A!%0A%0Aip%20forward-protocol%20nd%0Aip%20route%200.0.0.0%200.0.0.0%201.1.1.100%0Ano%20ip%20http%20server%0Ano%20ip%20http%20secure-server%0A!%0A!%20%20%20%20%20%20%20%20%0Aip%20sla%201%0A%20icmp-echo%201.1.1.100%20source-interface%20Ethernet1%2F0%0Aip%20sla%20schedule%201%20life%20forever%20start-time%20now%0Ano%20cdp%20log%20mismatch%20duplex%0A!%0A!%0A!%0A!%0A!%0A!%0Acontrol-plane%0A!%0A!%0A!%0A!%0A!%0A!%0A!%0Agatekeeper%0A%20shutdown%0A!%0A!%20%20%20%20%20%20%20%20%20%0Aline%20con%200%0A%20exec-timeout%200%200%0A%20privilege%20level%2015%0A%20logging%20synchronous%0A%20stopbits%201%0Aline%20aux%200%0A%20exec-timeout%200%200%0A%20privilege%20level%2015%0A%20logging%20synchronous%0A%20stopbits%201%0Aline%20vty%200%204%0A%20login%0A!%0Aend » message= » » highlight= » » provider= »manual »/]

Configuration R2

[pastacode lang= »bash » manual= »hostname%20R2%0A!%0Aboot-start-marker%0Aboot-end-marker%0A!%0Alogging%20message-counter%20syslog%0A!%0Ano%20aaa%20new-model%0Aip%20source-route%0Ano%20ip%20icmp%20rate-limit%20unreachable%0Aip%20cef%0A!%0A!%20%20%20%20%20%20%20%20%20%0Ano%20ip%20domain%20lookup%0Ano%20ipv6%20cef%0A!%0Amultilink%20bundle-name%20authenticated%0A!%0A!%0Aarchive%0A%20log%20config%0A%20%20hidekeys%0A!%20%0A%0A!%0Aip%20tcp%20synwait-time%205%0A!%0Ainterface%20FastEthernet0%2F0%0A%20description%20LAN%20Interface%0A%20ip%20address%20192.168.1.2%20255.255.255.0%0A%20duplex%20half%0A%20standby%201%20ip%20192.168.1.3%0A%20standby%201%20preempt%0A!%0Ainterface%20Ethernet1%2F0%0A%20description%20WAN%20Interface%0A%20ip%20address%201.1.1.2%20255.255.255.0%0A%20duplex%20half%0A%20standby%201%20ip%201.1.1.3%0A%20standby%201%20preempt%0A!%0Aip%20forward-protocol%20nd%0Aip%20route%200.0.0.0%200.0.0.0%201.1.1.100%0Ano%20ip%20http%20server%0Ano%20ip%20http%20secure-server%0A!%0A!%0A!%0Ano%20cdp%20log%20mismatch%20duplex%0A!%0A!%0A!%0A!%0A!%20%20%20%20%20%20%20%20%20%0A!%0Acontrol-plane%0A!%0A!%0A!%0A!%0A!%0A!%0A!%0Agatekeeper%0A%20shutdown%0A!%0A!%0Aline%20con%200%0A%20exec-timeout%200%200%0A%20privilege%20level%2015%0A%20logging%20synchronous%0A%20stopbits%201%0Aline%20aux%200%0A%20exec-timeout%200%200%0A%20privilege%20level%2015%0A%20logging%20synchronous%0A%20stopbits%201%0Aline%20vty%200%204%0A%20login%0A!%0Aend » message= » » highlight= » » provider= »manual »/]

référence :

https://www.networkstraining.com/cisco-router-hsrp-configuration/

Share

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Post comment