In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The following brings you how to configure load balancing in a multi-switch environment. I hope it can give you some help in practical application. There are many things involved in load balancing, there are not many theories, and there are many books on the Internet. Today, we will use the accumulated experience in the industry to make an answer.
* * Experimental steps: 1. For example, the topology configures the PC with ip address 2. Configure gateways and switches: Sw21: [Sw21] vlan batch 10 20 30 40 [Sw21] interface gigabitethernet 0Accord 1 [Sw21-GigabitEthernet0/0/1] undo shutdown [Sw21-GigabitEthernet0/0/1] port link-type access [Sw21-GigabitEthernet0/0/1] port def vlan 10
Vlan 20 vlan 30 vlan 40 are added to the 0 vlan 20 vlan 40 for each of the 0, 0, vlan, 2, 0, 0, 3, 0, 0, 0, and 4 ports of the Universe
Configure trunk links between switches:
[Sw21-GigabitEthernet0/0/5] port link-type trunk
[Sw21-GigabitEthernet0/0/5] port trunk allow-pass vlan all
Sw21's 0Accord 5 0Accord 6 sw18 Gw19 Gw20's 0Accord 1 0 Universe 2 ports are all configured with trunk links.
3. Configure priority * *:
Gw19:
Vlan 10: [Gw19] in vlan 10
[Gw19-Vlanif10] vrrp vrid 10 virtual-ip 192.168.10.250
[Gw19-Vlanif10] vrrp vrid 10 priority 150 (configuration priority)
Vlan20: [Gw19] in vlan 20
[Gw19-Vlanif20] vrrp vrid 20 virtual-ip 192.168.20.250 (virtual ip)
[Gw19-Vlanif20] vrrp vrid 20 priority 150
Vlan30: [Gw19] in vlan 30
[Gw19-Vlanif30] vrrp vrid 30 virtual-ip 192.168.30.250
Vlan40: [Gw19] in vlan 40
[Gw19-Vlanif40] vrrp vrid 40 virtual-ip 192.168.40.250
Vlan 30 and vlan 40 are default priorities of 100
Gw20:
Vlan10: [Gw20] in vlan10
[Gw20-Vlanif10] vrrp vrid 30 virtual-ip 192.168.10.250
Vlan20: [Gw19] in vlan 20
[Gw20-Vlanif20] vrrp vrid 40 virtual-ip 192.168.20.250
Vlan30: [Gw20] in vlan 30
[Gw20-Vlanif30] vrrp vrid 10 virtual-ip 192.168.30.250
[Gw20-Vlanif30] vrrp vrid 10 priority 150 (configuration priority)
Vlan40: [Gw20] in vlan 40
[Gw20-Vlanif40] vrrp vrid 20 virtual-ip 192.168.40.250
[Gw20-Vlanif40] vrrp vrid 20 priority 150
4. PC machine gateway Pc1;192.168.10.250 255.255.255.0 Pc2: 192.168.20.250 255.255.255.0 Pc3: 192.168.30.250 255.255.255.0 Pc4: 192.168.40.. 250 255.255.255.0 configure SVI ip addresses in GW19 and GW20, respectively; Vlan x 192.168.x.254/24 and 192.168.x.253245. Configure 192.168.50.0amp 24 gateway 6 between Sw18 and routing. Validate, test, save
When the line 1 or 2 fails, the vlan10 vlan20 will use the backup circuit, and the whole network is still connected, but usually GW19 will be used to solve the single point link failure and achieve load balancing.
If line 3 or 4 fails, you can set the command under the port:
[Gw19-Vlanif20] Vrrp vrid x track interface gi 0Universe 2 (monitors the status of the previous port)
[Gw19-Vlanif20] vrrp vrid 10 track int gi 0/0/2 reduced
50 (when 0Compact 2-port down, its corresponding priority will be reduced
After reading the above about how to configure load balancing in a multi-switch environment, if there is anything else you need to know, you can find out what you are interested in in the industry information or find our professional and technical engineers for answers. Technical engineers have more than ten years of experience in the industry.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.