Download miễn phí Bài viết về HSRP





Cấu hình Load balancing
- Với cấu hình loại này thì Ta giả sử có hai router chay HSRP. Ta sẻ tạo ra 2 group và 2 địạ chỉ IP ảo cho 2 group này. Router 1 có Priority lớn đối với Group thứ nhất, và có Priority Nhỏ hơn đối với Group thứ hai. Do đó mà Router 1 sẽ là active cho group 1 và sẽ là Standby cho group 2.
- Đối với các host thì ta sẽ cấu hình cho một số host có default gateway là Virtual IP address của group 1 và một số host có default gateway là Virtual IP address của group 2. Đo đó mà tải sẽ cân bằng ở 2 router. Mỗi router sẽ đảm nhiệm một lượng tải nhất định.
 



Để tải bản Đầy Đủ của tài liệu, xin Trả lời bài viết này, Mods sẽ gửi Link download cho bạn sớm nhất qua hòm tin nhắn.
Ai cần download tài liệu gì mà không tìm thấy ở đây, thì đăng yêu cầu down tại đây nhé:
Nhận download tài liệu miễn phí

Tóm tắt nội dung tài liệu:

 Bài Viết Về HSRP
Tác giả Lê Văn Cương
I Giới Thiệu Cơ Bản Về HSRP
1.      tổng quan
-         Tổng quan: Để cung cấp redundancy cho một group các user nào đó, ta sử dụng nhiều router để đảm bảo độ tin cậy. Đối với HSRP thì 1 Router/Switch sẽ được chọn làm primary hay active, các router/SWitch còn lại làm standby
-         Ta có thể đặt priority cho một cho một group nào đó.
2.      Cấu hình cơ bản
-         HSRP bầu chọn dựa vào Priority(0 đến 225), Router có priority sẽ được chọn làm active, nếu priority bằng nhau thì router nào có điạ chỉ IP trên interface HSRP cao hơn sẻ được chọn làm active: việc đặt Priority như sau:
Router(config-if)#standby group priority priority 
-         Thông thường thì khi một Router đã là active trong HSRP rồi thì cho dù Router mới có Priority cao hơn cũng không được chọn làm active, tuy nhiên ta có thể cho phép router có priority cao làm active với bất kỳ lúc nào.
Router(config-if)#standby group preempt
-         Do các router chạy HSRP không tự động nhận biết được khi nào thì các gói của user không còn đi ra bên ngoài được thông qua nó nữa do đó mà ta phảI cấu hình để nhận biết được, khi nào thì một giao tiếp của HSRP router bị down không còn khả năng chuyển traffic cho user nữa thì nó sẻ tự động giảm priority của nó xuống.
Router(config-if)#standby group track type mod/num decrementvalue
Decrementvalue là giá trị của Priority phảI giảm xuống khi track thấy một interface nào đó bị down.
-         MỗI cỗng giao tiếp của HSRP của router sẽ có một địa chỉ IP riêng. Tuy nhiên các Host sẻ thấy router qua một dịa chỉ ảo khác đó là Virtual router address.
Router(config-if)#standby group ip ip-address  
3.      Cấu hình Load balancing
-         Với cấu hình loại này thì Ta giả sử có hai router chay HSRP. Ta sẻ tạo ra 2 group và 2 địạ chỉ IP ảo cho 2 group này. Router 1 có Priority lớn đối với Group thứ nhất, và có Priority Nhỏ hơn đối với Group thứ hai. Do đó mà Router 1 sẽ là active cho group 1 và sẽ là Standby cho group 2.
-         Đối với các host thì ta sẽ cấu hình cho một số host có default gateway là Virtual IP address của group 1 và một số host có default gateway là Virtual IP address của group 2. Đo đó mà tải sẽ cân bằng ở 2 router. Mỗi router sẽ đảm nhiệm một lượng tải nhất định.
II Cấu Hình Cho Sơ Đồ Sau:
1.      show run
R1#show run
Building configuration...
Current configuration : 1150 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
enable password cisco
!
memory-size iomem 10
ip subnet-zero
!
no ip domain lookup
!
voice call carrier capacity active
!
mta receive maximum-recipients 0
!
interface Loopback0
 ip address 192.168.4.1 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
 standby 10 ip 192.168.2.15
 standby 20 ip 192.168.2.20
 standby 20 priority 120
standby 30 ip 192.168.2.30
!
interface Serial0/0
 ip address 192.168.1.5 255.255.255.252
 no fair-queue
 clockrate 64000
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/1
 no ip address
 shutdown
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
ip http server
!
access-list 1 permit 172.16.0.0 0.0.3.255
access-list 1 permit 172.16.4.0 0.0.3.255
!
call rsvp-sync
mgcp profile default
!
dial-peer cor custom
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
 no login
end
R2#show run
Building configuration...
Current configuration : 1060 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
enable password cisco
!
memory-size iomem 10
ip subnet-zero
!
no ip domain lookup
!
voice call carrier capacity active
!
mta receive maximum-recipients 0
interface Loopback0
 ip address 192.168.4.2 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.2.2 255.255.255.0
 duplex auto
 speed auto
 standby 10 ip 192.168.2.15
 standby 20 ip 192.168.2.20
 standby 30 ip 192.168.2.30
 standby 30 priority 130
 standby 30 preempt
!
interface Serial0/0
 ip address 192.168.1.2 255.255.255.252
 no fair-queue
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
ip http server
call rsvp-sync
voice-port 1/0/0
!
voice-port 1/0/1
!
mgcp profile default
!
dial-peer cor custom
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
 no login
end
R3#show run
Building configuration...
Current configuration : 896 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
enable password cisco
!
memory-size iomem 10
ip subnet-zero
!
!
no ip domain lookup
ip host R2 192.168.1.2
ip host R1 192.168.1.5
!
!
voice call carrier capacity active
!
mta receive maximum-recipients 0
!
interface Loopback0
 ip address 192.168.4.3 255.255.255.255
!
interface Ethernet0/0
 no ip address
 shutdown
 half-duplex
!
interface Serial0/0
 ip address 192.168.1.6 255.255.255.252
!
interface Serial0/1
 ip address 192.168.1.1 255.255.255.252
 clockrate 64000
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
ip http server
!
call rsvp-sync
mgcp profile default
!
dial-peer cor custom
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
 no login
!
!
end
2.       Test show standby – show standby brief
R1#show standby
FastEthernet0/0 - Group 10
  State is Standby
    1 state change, last state change 00:10:53
  Virtual IP address is 192.168.2.15
  Active virtual MAC address is 0000.0c07.ac0a
    Local virtual MAC address is 0000.0c07.ac0a (default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.632 secs
  Preemption disabled
  Active router is 192.168.2.2, priority 100 (expires in 8.452 sec)
  Standby router is local
  Priority 100 (default 100)
  IP redundancy name is "hsrp-Fa0/0-10" (default)
FastEthernet0/0 - Group 20
  State is Active
    2 state changes, last state change 00:11:07
  Virtual IP address is 192.168.2.20
  Active virtual MAC address is 0000.0c07.ac14
    Local virtual MAC address is 0000.0c07.ac14 (default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 2.024 secs
  Preemption disabled
  Active router is local
Standby router is 192.168.2.2, priority 100 (expires in 9.724 sec)
  Priority 120 (configured 120)
  IP redundancy name is "hsrp-Fa0/0-20" (default)
FastEthernet0/0 - Group 30
  State is Standby
    1 state change, last state change 00:10:54
  Virtual IP address is 192.168.2.30
  Active virtual MAC address is 0000.0c07.ac1e
    Local virtual MAC address is 0000.0c07.ac1e (default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 2.432 secs
  Preemption disabled
  Active router is 192.168.2.2, priority 130 (expires in 7.252 sec)
  Standby router is local
  Priority 100 (default 100)
  IP redundancy name is "hsrp-Fa0/0-30" (default)
R2#show standby
FastEthernet0/0 - Group 10
  State is Active
    2 state changes, last state change 00:11:52
  Virtual IP address is 192.168.2.15
  Active virtual MAC address is 0000.0c07.ac0a
    Local virtual MAC address is 0000.0c07.ac0a (default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 1.260 secs
  Preemption disabled
  Active router is local
  Standby router is 192.168.2.1, priority 100 (expires in 7.464 sec)
  Priority 100 (default 100)
  IP redundancy name is "hsrp-Fa0/0-10" (default)
FastEthernet0/0 - Group 20
  State is Standby
    1 state change, last state change 00:11:26
  Virtual IP address is 192.168.2.20
  Active virtual MAC address is 0000.0c07.ac14
    Local virtual MAC address is 0000.0c07.ac14 (default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.712 secs
  Preemption disabled
  Active router is 192....
 
Các chủ đề có liên quan khác
Tạo bởi Tiêu đề Blog Lượt trả lời Ngày
D Nghiên cứu thăm dò về việc dạy và học luyện thi phần 1 của bài thi viết IELTS ở Việt Nam. M.A Thesis Luận văn Sư phạm 0
J Nghiên cứu lỗi về câu trong các bài viết của sinh viên năm thứ hai học viện ngoại giao Việt Nam. M.A Ngoại ngữ 0
P phân tích lỗi về cách sử dụng phương tiện liên kết văn bản trong bài viết của học sinh trường THPT C Ngoại ngữ 0
V Nghiên cứu về việc Sử dụng Bài tập Thuyết trình-Viết Thu hoạch trong Bộ môn Hoa Kỳ Học ở Trường ĐHNN Ngoại ngữ 0
N Nghiên cứu hành động về việc kết hợp hoạt động tìm ý với bài viết mẫu nhằm nâng cao kỹ năng viết tiế Ngoại ngữ 0
H Thái độ của học sinh lớp 11 trường THPT chuyên Bắc Kạn về ý kiến phản hồi của bạn học với bài viết t Ngoại ngữ 0
G Nghiên cứu thử nghiệm về việc sử dụng hồ sơ bài tập để nâng cao kĩ năng viết cho học sinh lớp 10 - T Ngoại ngữ 0
S Mới đây, tôi có đọc một bài báo viết về một phụ nữ đẻ non mà không biết mình có thai Điều đó có thể Sức khỏe sinh sản 0
M Hãy viết một bài văn ngắn (600 từ) trình bày suy nghĩ của anh/ chị về lòng yêu thương con người của Văn học 0
M Hãy viết một bài văn ngắn(không quá 600 từ) trình bày suy nghĩ của anh/chị về ý kiến sau: Một người Văn học 0

Các chủ đề có liên quan khác

Top