Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco Switching Black Book - Sean Odom, Hanson Nottingham.pdf
Скачиваний:
87
Добавлен:
24.05.2014
Размер:
2.89 Mб
Скачать

Configuring Redundancy Using HSRP

To configure HSRP on router interfaces, perform the following steps:

1. Enter Interface Configuration mode and identify a standby group and an IP address:

standby [group−number] ip [ip−address]

2.Identify the priority for the HSRP interface. The interface with the highest priority becomes active for that HSRP group; the default is 100:

standby [group−number] priority priority

3.You can optionally configure the interface to preempt the current active HSRP interface and become active if the interface priority is higher than the priority of the current active interface:

standby [group−number] preempt [delay delay]

4.You can also optionally set the HSRP Hello timer and holdtime timer for the interface. The default values are 3 (Hello) and 10 (holdtime). All the interfaces in the HSRP group should use the same timer values:

standby [group−number] timers hellotime holdtime

5.You can optionally identify a clear−text HSRP authentication string for the interface. Again, all HSRP member interfaces in the HSRP group should use the same authentication string:

standby [group−number] authentication string

Now that you have seen the steps to configure HSRP on an interface, let’s take a look at an example of configuring HSRP on two different interfaces connected to the same network segment:

RSM1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

RSM1(config)#ip routing

RSM1(config)#router rip

RSM1(config−router)#network 172.16.0.0

RSM1(config−router)#interface vlan10

RSM1(config−if)#ip address 172.16.10.1 255.255.255.0

RSM1(config−if)#no shutdown

RSM1(config−if)#standby 10 ip 172.16.10.10

RSM1(config−if)#standby 10 priority 110

RSM1(config−if)#standby 10 preempt

RSM1(config−if)#standby 10 timers 5 15

RSM1(config−if)#standby 10 authentication Secret

RSM1(config−if)#interface vlan200

RSM1(config−if)#ip address 172.16.20.1 255.255.255.0

RSM1(config−if)#no shutdown

RSM1(config−if)#standby 20 ip 172.16.20.10

RSM1(config−if)#standby 20 priority 110

RSM1(config−if)#standby 20 preempt

RSM1(config−if)#standby 20 timers 5 15

RSM1(config−if)#standby 20 authentication Covert

RSM1(config−if)#^Z

RSM1#

RSM2#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

RSM2(config)#ip routing

RSM2(config)#router rip

RSM2(config−router)#network 172.16.0.0

RSM2(config−router)#interface vlan10

RSM2(config−if)#ip address 172.16.10.2 255.255.255.0

RSM2(config−if)#no shutdown

RSM2(config−if)#standby 10 ip 172.16.10.10

RSM2(config−if)#standby 10 preempt

RSM2(config−if)#standby 10 timers 5 15

135

RSM2(config−if)#standby 10 authentication Secret RSM2(config−if)#interface vlan20

RSM2(config−if)#ip address 172.16.20.2 255.255.255.0 RSM2(config−if)#no shutdown

RSM2(config−if)#standby 20 ip 172.16.20.10 RSM2(config−if)#standby 20 preempt RSM2(config−if)#standby 20 timers 5 15 RSM2(config−if)#standby 20 authentication Covert RSM2(config−if)#^Z

RSM2#

136

Соседние файлы в предмете Программирование