In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Example of VRRP single backup group configuration
Networking requirements
Host A needs to access Host Bjigeng Host An on Internet. The default gateway for Host An is 10.1.1.111Plus 24.
When Switch An is working properly, the message sent by Host A to Host B is forwarded through Switch A; when Switch An appears
In the event of a failure, the message sent by Host A to Host B is forwarded through Switch B.
Group Network Diagram:
#
Configuration step
Note: IntranetSwitch is only used for exchange, and no configuration is required in this example.
(1) configure Switch A
Configure VLAN2
System-view
[SwitchA] vlan 2
[SwitchA-vlan2] port gigabitethernet 1-0-11
[SwitchA-vlan2] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface2] quit
[SwitchA] vlan 3
[SwitchA-vlan3] port gigabitethernet 1-0-13
[SwitchA-vlan3] quit
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ip address 10.1.3.1 255.255.255.0
[SwitchA-Vlan-interface3] quit
[SwitchA] ip route-static 0.0.0.0 0 10.1.3.2
# create backup group 1 and the IP address is 10.1.1.111
[SwitchA] inter vlan 2
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111
Set the priority of Switch An in backup group 1 to 110, which is higher than that of Switch B, to ensure the success of Switch A.
It is responsible for forwarding traffic for Master.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
Set Switch A to work in preemptive mode to ensure that after Switch A fault recovery, it can be preempted to become Master again, that is, as long as
When Switch An is working properly, Switch An is responsible for forwarding traffic. To avoid frequent state switching, configure preemption delay
The interval is 5 seconds.
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500
(2) configure Switch B
# configure VLAN2.
System-view
[SwitchB] vlan 2
[SwitchB-Vlan2] port gigabitethernet 1-0-12
[SwitchB-vlan2] quit
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 10.1.1.2 255.255.255.0
[SwitchB-Vlan-interface2] quit
[SwitchB] vlan 3
[SwitchB-vlan3] port gigabitethernet 1-0-14
[SwitchB-vlan3] quit
[SwitchB] interface vlan-interface 3
[SwitchB-Vlan-interface3] ip address 10.1.4.1 255.255.255.0
[SwitchB-Vlan-interface3] quit
[SwitchB] ip route-static 0.0.0.0 0 10.1.4.2
# create backup group 1 and configure the virtual IP address of backup group 1 to be 10.1.1.111.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111
# set the priority of Switch B in backup group 1 to 100.
[SwitchB-Vlan-interface2] vrrp vrid 1 priority 100
Set Switch B to work in preemptive mode with a preemption delay of 5 seconds.
[SwitchB-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500
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.