Sie sind auf Seite 1von 18

Training Objective

HUAWEI

Understand basic principle of HSRP

HSRP Configuration

www.huawei.com

HSRP Concept
HUAWEI

Hot Standby Routing Protocol Hosts Should use the default gateway Realize fault-tolerant backup function Suitable for LANs supporting multicasting or broadcasting
Suchas Ethernet, Toking Ring, FDDI

www.huawei.com

Problems that HSRP Solves


HUAWEI
Router A Host A Router C Host B

Router B

WhenafaulthappenstoRouteA,howcanHostA accessHostB?

www.huawei.com

The Introducing of HSRP


HUAWEI

Network 192.1.1.0

E0 192.1.1.1

Host A

Router A Active Router


Virtual MAC add 00-E0-FC-00-5F-01 Virtual IP add 192.1.1.3

Virtual Router
E0 192.1.1.2

Router B Standby Router

HostAonlyknowstheexistenceofVirtualRouter anditcannotseeRouterAorRouterB

www.huawei.com

Usage of HSRP
HUAWEI

Host B

IP

Configuration of static routing


Such as, the static routing set by host used default gateway

Network 3.0.0.0

Router A Active Router

E1 3.0.0.1 E0 1.0.0.1

Network 2.0.0.0 E1 2.0.0.2

Router B Standby Router


E0 1.0.0.2

Network 1.0.0.0

Suitable for broadcasting network

Host A

www.huawei.com

HSRP Protocol
HUAWEI

Network 192.1.1.0

E0 192.1.1.1

Host A

Router A Active Router Virtual Router


Virtual MAC add 0000.0007.0000.0001 Virtual IP add 192.1.1.3

E0 192.1.1.2

Virtual IP address and MAC address Active router and standby router Periodical Hello datagram

Router B Standby Router

www.huawei.com

HSRP Status
HUAWEI

E v e r y s t a n d b y g r o u p c o n f i g u r e d o n i n t e r f a c e m ay be under the following status:


INIT L E A R N LISTEN SPEAK S T A N D B YACTIVE

Initial status Virtual IP address not set M o n itoring activity / standby router Electing Active / standby router Status of standby router (only one) Status of active router (only one)

www.huawei.com

HSRP Status Transmission


HUAWEI
Have not received Hello datagrams from the active or standby routers after the set timeout time limit
Set preemption mode and has a priority higher than the current active router

Configure HSRP standby group on interface

HSRP standby group configures virtual IP address

LISTEN

ACTIVE

INIT

L e a r n from d a t a g r a m of a u t h o r i z e d active router a b o u t virtual IP a d d r e s sH a v e n o t

SPEAK

HSRP standby group has not configured any virtual IP address

LEARN

received Hello datagram from the standby router after the set time limit

STANDBY

Have not received Hello datagram from the active router after the set timout time limit

www.huawei.com

HSRP Datagram
HUAWEI

Version Oper Code State Hold Time Priority Group Authentication Data Virtual IP Address

Hello Time Reserved

Datagram type

Hello, Coup, Resign

www.huawei.com

MHSRP
HUAWEI

Several standby groups can be configured in a same network segment One router can participate in several standby groups Different interfaces can configure several standby groups

www.huawei.com

HUAWEI

HSRP Configuration Task List

HSRP configuration should be done under Ethernet interface mode HSRP configuration task list is as below:
StartHSRP Configure the router's priority in a HSRP standby group ConfiguretheroutertoworkunderpreemptionmodeintheHSRPstandbygroup Configure HSRP authentication ConfigureHSRPtimer Configure m o n itoring designated interface Configure to use the actual interface MAC address Modify virtual MAC address

www.huawei.com

HUAWEI

HSRP Configuration Commands


S tart H S R Pfu n c t i o n s t a n d b y[g r o u p n u m ber]ip[virtual-ip-ad d r e s s] S e tarouter'spriorityinastandbygroup s t a n d b y[ g r o u p n u m ber]priority[priority-value] S e taroutertow o r ku n d e rp r e e m p tivem o d ei nas t a n d b yg r o u p s t a n d b y[ g r o u p n u m ber]preem p t S e t th ea u t h e n t i c a t i o no fas t a n d b yg r o u p s t a n d b y[ g r o u p n u m ber]authentication[string]

www.huawei.com

HUAWEI

HSRP Configuration Commands

S e tH S R PH e llo tim ea n dH o l dt i m e s t a n d b y[ g r o u p n u m ber]tim ers[hello-tim e][hold-tim e ] S e t theroutertom onitoradesignatedinterface s t a n d b y[ g r o u p n u m ber]trackinterface-typeinterface-num ber[priority-reduced] S e t tou s ea c t u a li n t e r f a c eM A Ca d d r e s s s t a n d b yu s e b i a M o d ifyavirtualM A Ca d d r e s s s t a n d b yu s e o v m acxx-xx-xx-xx-xx

www.huawei.com

HSRP Monitoring and Maintenance


HUAWEI

Show current HSRP information show standby Open HSRP data debugging information switch debug standby

www.huawei.com

Single Standby Group Configuration


HUAWEI

www.huawei.com

HUAWEI

Configure HSRP Monitoring Designated Interface

www.huawei.com

HUAWEI

Multiple Standby Groups Configuration

Configuration requirem ents:


Realizeloadsharing:
For instance: router A is the active router of standby group 1 and at the same time it is the standby router of standby group 2 Router B acts exactly the opposite, it is the active router of standby group 2 and at the same time it is the standby router of standby group 1 Some hosts use standby group 1 as their gateway, other hosts use standby group 2 as their gateway. In this way, the purposes of data flow load sharing and inter-standby are achieved at the same time.

www.huawei.com

Summary
HUAWEI

Understand HSRP concept and its application. Understand HSRP working principle. HSRP configuration.

www.huawei.com

Das könnte Ihnen auch gefallen