Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Describe the workflow of VRRP in detail.

2025-05-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, I would like to introduce to you what the workflow of VRRP is. I hope it can bring some help to you in practical application. Load balancing involves more things, and there are not many theories. There are many books on the Internet. Today, we will use the accumulated experience in the industry to make an answer to the workflow of VRRP.

VRRP:

Virtual Router redundancy Protocol

Virtual router redundancy protocol

Router:

Ensure the interconnection of different network segments

Intranet: different internal departments

Extranet: corporate network boundary

Failure: a single router failure, resulting in a complete network outage; solution: deploying multiple routers in the network at the same time For example: VLAN 10: PC-1 192.168.10.1 Universe 24 192.168.10.254 Terminal customer Network engineer Operation and maintenance engineer Network Optimization *

VRRP: (public agreement)

Running between multiple routers, one or more gateway IP addresses (virtual routers) can be virtualized, thus the interworking between different network segments of the internal network can be realized.

The working process of VRRP:

1. The interaction between "multiple" routers running VRRP through the VRRP message, thus selecting

The best router, as a Master router, will be used for this device in the future.

To forward the packet

2. There is only one Master router; other routers are called backup routers; 3. At the same time, Master and Backup routers will produce a virtual router, that is, a virtual IP address

VRRP configuration commands:

1. Enter gateway port 2 and configure VRRP virtual IP address; 3. Modify the priority of the main router; interface fas0/0 vrrp vrid 1 virtual-ip 192.168.10.250 / / enable VRRP, and configure virtual gateway IP vrrp vrid 1 priority 110 / / configure the priority of VRRP master device; default is 100 4. Verify, test and save show vrrp R1/R2: debug ip icmp PC: ping 192.168.10.250 R1/R2: Router#write

HSRP:hot standby route protocol, dual Hot backup Protocol; [Cisco Private Protocol]

The same function:

The command is slightly different:

Interface fas0/0

Standby 1 ip 192.168.10.250 / / enable VRRP and configure the virtual gateway IP

Standby 1 priority 110 / / configure the priority of the VRRP master device

The default is 100

Standby 1 preempt / / enable the preemption function of the HSRP of the device

HSRP Link tracking:

"external link" tracking technology in HSRP to ensure that when the gateway device goes to the outer network, there is a problem.

In the future, the internal HSRP can be sensed immediately, thus lowering its HSRP priority.

To ensure that standby routers in the HSRP group can be quickly upgraded to active routing

Realize the forwarding of data packets.

Configuration implementation:

Interface gi0/0

Standby 1 ip 192.168.10.250

Standby 1 priority 150

Standby 1 preempt

Standby 1 track gi0/1 100

/ / the HSRP under this port monitors the link status of gi0/1 at all times.

If the status changes to down, the HSRP that the port sends out

The priority in the message is reduced by 100 to 50.

=

VRRP: (Huawei configuration command)

R1: (master router) interface gi0/0/0 vrrp vrid 1 virtual-ip 192.168.10.250 vrrp vrid 1 priority 150 vrrp vrid 1 track interface gi0/0/1 reduced 100 / / track the status of port gi0/0/1, if down, reduce by 100 and priority to 50 R2: (backup router) interface gi0/0/0 vrrp vrid 1 virtual-ip 192.168.10.250

Restore the port to the default configuration:

Cisco:

Router (config) # default interface fas0/0

Huawei:

[sw] clear configuration interface fas0/0

/ / the command for the port will be cleared, and the port will enter the "off" state.

If you want to use it again, you must have "undo shutdown"

Debug is enabled for Huawei devices:

1 、 terminal monitor2 、 terminal debugging3 、 debugging ip icmp

4 、 [huawei] info-center console channel monitor

After reading the introduction of the work flow of VRRP above, 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 technical engineer to answer, the technical engineer has more than ten years of experience in the industry. Official website link www.yisu.com

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report