Cấu hình HSRP cho sơ đồ này.
R1 làm Active; R2 làm Standby.
Lưu ý: Router dùng Cisco IOL L3; Switch dùng Cisco IOL L2.
en
conf t
hostname R1
int e0/1
no sh
ip address dhcp
exit
int e0/0
no sh
ip address 192.168.100.1 255.255.255.0
exit
en
conf t
hostname R2
int e0/1
no sh
ip address dhcp
exit
int e0/0
no sh
ip address 192.168.100.2 255.255.255.0
exit
interface E0/0
standby version 2
standby 1 ip 192.168.100.254
standby 1 priority 120
standby 1 preempt
exit
interface E0/0
standby version 2
standby 1 ip 192.168.100.254
exit
show standby
show standby brief
R1#show standby
Ethernet0/0 - Group 1 (version 2)
State is Active
2 state changes, last state change 00:00:08
Virtual IP address is 192.168.100.254
Active virtual MAC address is 0000.0c9f.f001
Local virtual MAC address is 0000.0c9f.f001 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.480 secs
Preemption enabled
Active router is local
Standby router is unknown
Priority 120 (configured 120)
Group name is "hsrp-Et0/0-1" (default)
R1#
R2#show standby
Ethernet0/0 - Group 1 (version 2)
State is Standby
1 state change, last state change 00:00:22
Virtual IP address is 192.168.100.254
Active virtual MAC address is 0000.0c9f.f001
Local virtual MAC address is 0000.0c9f.f001 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.896 secs
Preemption disabled
Active router is 192.168.100.1, priority 120 (expires in 7.856 sec)
MAC address is aabb.cc00.1000
Standby router is local
Priority 100 (default 100)
Group name is "hsrp-Et0/0-1" (default)
R2#
» Tin mới nhất:
» Các tin khác: