BCMSN�Υ�⡣

�����å����ʤ��Ȥ�롼���Ǽ¸���ǽ��HSRP��
�µ��ǻ������
L3��٥�Ǥξ�Ĺ���Ǥ��ʡ�
L2�ʤ�STP���͡�

��HSRP������

��RFC2281��HSRP
���ޥ�����㥹�ȥ��ɥ쥹��224.0.0.2/UDP��1985��
������MAC��0000.0c07.ac**
��RFC2338��VRRP
���ޥ�����㥹�ȥ��ɥ쥹��224.0.0.18/IP�ץ��ȥ��롧112��
������MAC��0000.5e00.01**
����HSRP���Ȥ�VRRP��ɸ�ಽ
���͡�30min Networking ��18��HSRP(1) �ե���ȥȥ����

��HSRP�ϼ�IP���ɥ쥹�˲���IP���ɥ쥹�������Ƥ뤳�ȤϤǤ��ʤ�
����äơ�/30�Ǥϲ���IP�����ꤹ�뤳�ȤϤǤ��ʤ�
���192.168.0.0/30��
����IP���ɥ쥹��192.168.0.1��192.168.0.2��2�Ĥ�����
�������HSRP�Ȥ������ꤷ�褦�Ȥ��Ƥ�2�Ĥ����ʤ����ᡢ
������IP���ɥ쥹�Ѥ�IP���ɥ쥹��­��ʤ����Ȥˤʤ롣
��������VRRP�ξ��ϲ�ǽ��
������IP���ɥ쥹�Ȳ���IP���ɥ쥹�ζ�¸����ǽ������Ǥ��롣
����äơ�/30�ʤ�Active��192.168.0.1��Standby��192.168.0.2�Ȥ���
��192.168.0.1����IP���ɥ쥹�Ȥ���Ȥ������꤬��ǽ�Ǥ��롣
���⤷��Active��Down������Standby����Ԥ���櫓������
������IP���ɥ쥹��192.168.0.1�Τޤ��Ѳ����뤳�ȤϤʤ���

---���ޥ��1---
�����
Router2501_A(config-if)#ip add 192.168.10.2 255.255.255.252
Router2501_A(config-if)#standby 1 ip 192.168.10.1
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on Ethernet0, sourced by 0000.0000.0011

���и��μ�IP��192.168.10.1/30�ξ�硢
����IP���ɥ쥹�����֤äƤ��ޤäƥ��ᡣ
�ޤ�����IP��Ʊ�����֥ͥå����IP����ʤ���
����IP���ɥ쥹�����ꤹ�뤳�ȤϤǤ��ʤ���

���㤢��VRRP�ϤȻפ����ޥ�ɤ򤿤�����̤���ݡ��ȡ�
�ޤá�����ʤ��Ǥ����

---���ޥ��2---
HSRP�Υ��ޥ����������
IP�դä�Priority���դä�debug���ޥ���������ơ�
LAN�����֥��̤����ꤵ�����ꤷ����Stanby�ˤʤä���
Active�ˤʤä���Speake���֤ˤʤä���������ܤ���
�äƤ������Ȥ꤬�ʲ���
--------------------------------------------------------
Router2514_B#show run
!
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router2514_B
!
boot-start-marker
boot-end-marker
!
!
clock timezone JST 9
no aaa new-model
ip subnet-zero
!
!
!
!
interface Ethernet0
ip address 192.168.0.1 255.255.255.0
standby 1 ip 192.168.0.123
standby 1 track Serial0 ###<--- default 10
### standby 1 timers 3 10 <--- default
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 192.168.1.2 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
ip http server
ip classless
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
--------------------------------------------------------
Router2514_B#show run
!
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router2514_B
!
boot-start-marker
boot-end-marker
!
!
clock timezone JST 9
no aaa new-model
ip subnet-zero
!
!
!
!
!
interface Ethernet0
ip address 192.168.0.1 255.255.255.0
standby 1 ip 192.168.0.123
standby 1 priority 110
standby 1 track Serial0 20
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 192.168.1.2 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
ip http server
ip classless
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
--------------------------------------------------------
Router2514_B#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router2514_B#show ip int brief
Interface IP-Address OK? Method Status Protocol
Ethernet0 192.168.0.1 YES manual up up
Ethernet1 unassigned YES NVRAM administratively down down
Serial0 192.168.1.2 YES NVRAM up up
Serial1 unassigned YES NVRAM administratively down down
Router2514_B#

Router2501_A#
Router2501_A#show standby
Ethernet0 - Group 1
State is Active
8 state changes, last state change 00:16:40
Virtual IP address is 192.168.0.123
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (bia)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.712 secs
Preemption enabled
Active router is local
Standby router is 192.168.0.1, priority 110 (expires in 9.772 sec)
Priority 200 (configured 200)
IP redundancy name is "hsrp-Et0-1" (default)
Router2501_A#
Router2501_A#show standby brief
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Et0 1 200 P Active local 192.168.0.1 192.168.0.123
Router2501_A#
Router2501_A#
Router2501_A#debug standby
HSRP debugging is on
Router2501_A#
01:33:54: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:33:54: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:33:57: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:33:57: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:34:00: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:00: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:34:03: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:03: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:34:04: HSRP: Et0 REDIRECT adv in, Passive, active 0, passive 1, from 192.168.0.1
01:34:06: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:06: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:34:09: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:09: HSRP: Et0 Grp 1 Hello in 192.168.0.1 Standby pri 110 vIP 192.168.0.123
Router2501_A#
01:34:12: HSRP: Et0 Grp 1 Hello out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down01:34:13: HSRP: Et0 API Software interface going down
01:34:13: HSRP: Et0 Interface down
01:34:13: HSRP: Et0 Grp 1 Active: b/HSRP disabled
01:34:13: HSRP: Et0 Grp 1 Active router is unknown, was local
01:34:13: HSRP: Et0 Grp 1 Standby router is unknown, was 192.168.0.1
01:34:13: HSRP: Et0 Grp 1 Resign out 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:34:13: HSRP: Et0 Grp 1 Active -> Init
01:34:13: %HSRP-6-STATECHANGE: Ethernet0 Grp 1 state Active -> Init
01:34:13: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Active -> Init
01:34:13: HSRP: Et0 Redirect adv out, Passive, active 0 passive 1
01:34:13: HSRP: Et0 Grp 1 Resign out 192.168.0.2 Init pri 200 vIP 192.168.0.123
01:34:13: HSRP: Et0 API MAC address update
01:34:13: HSRP: Et0 API Add active HSRP addresses to ARP table
01:34:13: HSRP: Et0 API Add active HSRP addresses to ARP table
Router2501_A#
Router2501_A#show standby
Ethernet0 - Group 1
State is Init (interface down)
9 state changes, last state change 00:00:14
Virtual IP address is 192.168.0.123
Active virtual MAC address is unknown
Local virtual MAC address is 0000.0c07.ac01 (default)
Hello time 3 sec, hold time 10 sec
Preemption enabled
Active router is unknown
Standby router is unknown
Priority 200 (configured 200)
IP redundancy name is "hsrp-Et0-1" (default)
Router2501_A#
Router2501_A#
Router2514_B#
Router2514_B#show standby
Ethernet0 - Group 1
State is Standby
3 state changes, last state change 00:01:33
Virtual IP address is 192.168.0.123
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (default)
Hello time 3 sec (cfgd 5 sec), hold time 10 sec (cfgd 15 sec)
Next hello sent in 2.728 secs
Preemption disabled
Active router is 192.168.0.2, priority 200 (expires in 8.904 sec)
Standby router is local
Priority 110 (configured 110)
Track interface Serial0 state Up decrement 20
IP redundancy name is "hsrp-Et0-1" (default)
Router2514_B#
Router2514_B#show standby brief
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Et0 1 110 Standby 192.168.0.2 local 192.168.0.123
Router2514_B#
Router2514_B#
Router2514_B#debug standby
HSRP debugging is on
Router2514_B#
Router2514_B#
01:41:04: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
01:41:04: HSRP: Et0 API Software interface coming up
01:41:04: HSRP: Et0 Interface up
01:41:04: HSRP: Et0 Starting minimum interface delay (1 secs)
01:41:05: HSRP: Et0 Interface min delay expired
01:41:05: HSRP: Et0 Grp 1 Init: a/HSRP enabled
01:41:05: HSRP: Et0 Grp 1 Init -> Listen
01:41:05: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Init -> Backup
01:41:05: HSRP: Et0 Redirect adv out, Passive, active 0 passive 1
01:41:15: HSRP: Et0 Grp 1 Listen: c/Active timer expired (unknown)
01:41:15: HSRP: Et0 Grp 1 Listen -> Speak
01:41:15: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Backup -> Speak
01:41:15: HSRP: Et0 Grp 1 Hello out 192.168.0.1 Speak pri 110 vIP 192.168.0.123
01:41:16: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Speak pri 200 vIP 192.168.0.123
01:41:16: HSRP: Et0 Grp 1 Speak: f/Hello rcvd from higher pri Speak router (200/192.168.0.2)
01:41:16: HSRP: Et0 Grp 1 Speak -> Listen
01:41:16: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Speak -> Backup
01:41:20: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Speak pri 200 vIP 192.168.0.123
01:41:22: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Speak pri 200 vIP 192.168.0.123
01:41:25: HSRP: Et0 REDIRECT adv in, Passive, active 0, passive 2, from 192.168.0.2
01:41:25: HSRP: Et0 Grp 1 Listen: c/Active timer expired (unknown)
01:41:25: HSRP: Et0 Grp 1 Listen -> Speak
01:41:25: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Backup -> Speak
01:41:25: HSRP: Et0 Grp 1 Hello out 192.168.0.1 Speak pri 110 vIP 192.168.0.123
01:41:25: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Speak pri 200 vIP 192.168.0.123
01:41:25: HSRP: Et0 Grp 1 Speak: f/Hello rcvd from higher pri Speak router (200/192.168.0.2)
01:41:25: HSRP: Et0 Grp 1 Speak -> Listen
01:41:25: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Speak -> Backup
01:41:26: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Standby pri 200 vIP 192.168.0.123
01:41:26: HSRP: Et0 Grp 1 Standby router is 192.168.0.2
01:41:26: HSRP: Et0 REDIRECT adv in, Active, active 1, passive 1, from 192.168.0.2
01:41:26: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:41:26: HSRP: Et0 Grp 1 Active router is 192.168.0.2
01:41:26: HSRP: Et0 Redirect adv out, Passive, active 0 passive 1
01:41:26: HSRP: Et0 Grp 1 Standby router is unknown, was 192.168.0.2
Router2514_B#
01:41:29: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:41:32: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123une de
01:41:35: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:41:36: HSRP: Et0 Grp 1 Listen: d/Standby timer expired (unknown)
01:41:36: HSRP: Et0 Grp 1 Listen -> Speak
01:41:36: HSRP: Et0 Grp 1 Redundancy "hsrp-Et0-1" state Backup -> Speak
01:41:36: HSRP: Et0 Grp 1 Hello out 192.168.0.1 Speak pri 110 vIP 192.168.0.123
01:41:38: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:41:39: HSRP: Et0 Grp 1 Hello out 192.168.0.1 Speak pri 110 vIP 192.168.0.123
01:41:41: HSRP: Et0 Grp 1 Hello in 192.168.0.2 Active pri 200 vIP 192.168.0.123
01:41:42: HSRP: Et0 Grp 1 Hello out 192.168.0.1 Speak pri 110 vIP 192.168.0.123
Router2514_B#undebug all
All possible debugging has been turned off
Router2514_B#
----------------------------------------------------------------------------

�ʤ󤫤��������ǿ������ʤ���
���������ˤʤ�Τ�HSRP��MAC���ɥ쥹���ͤ�������
������HSRP�Υ��롼���ֹ椬16�ʿ���������Τ�
��꿶����Ϥ��ʤΤ�����

�ޤ���HSRP�ʤ��Υ��ޥ�ɥ����򸫤���
Masa����Υ����Ȥ�ߤ�Τ����֤Ǥ��͡�

�����ȡ��ͥåȥ�����󥸥˥��ˤʤ�����

�Ƕᡢ�褯���Ѥ����Ƥ��������Ƥ���ޤ���
HSRP�Ȥ���Ф��Υ����Ȥ����ʤ���