Load sharing

patrick -  
 Madani -
bonjour,

j'aimerais bien configurer load sharing entre deux routeurs cisco pour qu'ils envoient simultanèment des paquets en utilisant BGP et HSRP si quelqu'un pourrait m'aider.

merci

5 réponses

brupala Messages postés 115318 Date d'inscription   Statut Membre Dernière intervention   14 264
 
salut,
HSRP ?
A l'origine cela ne permet pas de faire du partage de charge mais, plutôt du backup (le S veut dire standby).
il faudrait plutôt que tu regardes du côté de fast ether channel

et ... Voili Voilou Voila !
0
patrick
 
si le hsrp permet de faire le partage de charge
0
brupala Messages postés 115318 Date d'inscription   Statut Membre Dernière intervention   14 264
 
bof,
extrait de la rfc 2281 sur hsrp:

Using HSRP, a set of routers work in concert to present the illusion
of a single virtual router to the hosts on the LAN. This set is
known as an HSRP group or a standby group. A single router elected
from the group is responsible for forwarding the packets that hosts
send to the virtual router. This router is known as the active
router.
Another router is elected as the standby router. In the
event that the active router fails, the standby assumes the packet
forwarding duties of the active router. Although an arbitrary number
of routers may run HSRP, only the active router forwards the packets
sent to the virtual router.

To minimize network traffic, only the active and the standby routers
send periodic HSRP messages once the protocol has completed the
election process. If the active router fails, the standby router
takes over as the active router. If the standby router fails or
becomes the active router, another router is elected as the standby
router.

et aussi ça:
On a particular LAN, multiple hot standby groups may coexist and
overlap. Each standby group emulates a single virtual router. For
each standby group, a single well-known MAC address is allocated to
the group, as well as an IP address. The IP address SHOULD belong to the primary subnet in use on the LAN, but MUST differ from the
addresses allocated as interface addresses on all routers and hosts
on the LAN, including virtual IP addresses assigned to other HSRP
groups.


If multiple groups are used on a single LAN, load splitting can be
achieved by distributing hosts among different standby groups.


et ... Voili Voilou Voila !
0
Nico le Vosgien
 
Vous avez tous les deux raisons ;)

Brupala dit qu'hsrp sert plutot à du backup et c'est archi vrai !

Par contre, c'est une solution pour faire du partage de charge en BGP.

BGP n'est pas du tout prevu pour faire du loadsharing puisqu'il va tjs selectionner un meilleur chemin.

Si on a deux liens que l'on veut utiliser, l'idée est de monter la session BGP sur l'adresse HSRP et de router statiquement cette adresse hsrp vers les 2 next hop des 2 liens.

BGP va faire son job : c'est X qui m'annonce la meilleur route

Le routage static va faire le reste : commenet je fais pour joindre X ? j'ai deux routes totalement equivalentes :

ip route X -> nexthop1
ip route X -> nexthop2

le routeur va alors bien partager la charge sur les 2 liens
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Madani
 
Hello !

Il est également possible de faire du load-balancing avec BGP en jouant sur les attributs (même Weigh ou même MED sur peering eBGP).

Enjoy !
0