Cấu hình HSRP trên EVE-NG
Cho sơ đồ như sau:
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.
Cấu hình IP cho R1:
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
Cấu hình IP cho R2:
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
Cấu hình HSRP trên R1:
interface E0/0
standby version 2
standby 1 ip 192.168.100.254
standby 1 priority 120
standby 1 preempt
exit
Cấu hình HSRP trên R2:
interface E0/0
standby version 2
standby 1 ip 192.168.100.254
exit
Xem cấu hình HSRP:
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#
Kiểm tra kết nối từ PC ra Internet:
- BÌNH TĨNH TRƯỚC HỘP THƯ SỐ – NGHỆ THUẬT NHẬN DIỆN EMAIL PHISHING TỪ GÓC NHÌN NGHIỆP VỤ
- HÓA THÂN THÀNH "KẺ TẤN CÔNG": KHI HIỂU RÕ CẠM BẪY, TA PHÒNG THỦ VỮNG VÀNG HƠN
- CÁC CÔNG CỤ XÂY DỰNG GIAO DIỆN ỨNG DỤNG BẰNG TRÍ TUỆ NHÂN TẠO (AI)
- Silent Lynx khai thác lỗ hổng WinRAR để triển khai Reverse Shell nhằm tấn công các cơ quan chính phủ
- Thông tin xác thực ConnectWise bị chiếm dụng, 173 môi trường Microsoft 365 bị truy cập trái phép