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

1.You selected and entered the VLAN interface you want to have configured (vlan200).

2.You configured the HSRP group and entered the virtual default gateway IP address on that interface.

3.You set the priority accordingly, allowing one route processor to be active and the other to be standby.

4.You enabled preempt on both routers and you are not accepting the default timers. You have 5 seconds for the hello timer and 15 seconds for the hold timer (which specifies how long you want the hello timer to remain valid).

5.You have configured the clear−text authentication with the word “password”.

The result will be that since HSN_5KRSFC has a higher priority than HSN_5KRSFC2, it will be the active standby route processor for HSRP group 200.

Enabling Interface Tracking

To configure tracking on the HSRP route processor interface, enter the following command in Interface Configuration mode:

standby <HSRP group> track <VLAN interface> <priority decrease>

For this example, we’ll use HSRP standby group number 3, VLAN interface being tracked is 7, and 20 indicates the priority amount to decrease:

standby 3 track 7 20

Using the last setting, if the route processor’s priority was 150 and the route processor were to fail, the tracking interface would decrease its priority by 20 to a value of 130.

Tip You can use the same command on an external route processor, as well. If you were in Interface Configuration mode for interface Ethernet1 and wanted to track the interface S1 for the same HSRP standby group, and with the same priority reduction setting, you would use the command standby 3 track s1 20.

Using the show standby Command

To display the standby status of an HSRP interface, you must be in Exec mode and use the following command:

show standby vlan3 3

The vlan3 command indicates the VLAN and 3 indicates the HSRP standby group. The output should look similar to this:

HSN_5KRSFC# show standby vlan3 3 Vlan3 Ð Group 3

local state is Active, priority 160, may preempt Hellotime 5 holdtime 15

Next hello sent in 00:00:02.922

Hot standby IP address is 63.78.39.1 configured Active router is local

Standby router is 63.78.39.2 expires in 00:00:05 Standby virtual mac address is 0000.0c07.ac03

252

Tip

To get a brief output of all the configured interfaces, you can use the show standby brief

 

command.

Using the debug Command

By enabling the debug command, it will list the changes in real−time for the HSRP group you specified. This includes the sending and receiving packets through the HSRP. To enable debugging of your HSRP group you need to use the following command at the Privileged Exec prompt:

debug standby

Warning The debugging feature is automatically assigned a high priority on the CPU, so this command can have a big impact on the internal route processor’s performance.

To disable the debugging feature, enter either the no debug standby or the no debug command.

253

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