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

83. VRRP of redundant gateway configuration experiment

2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

1. Experimental Topology

Virtual Route Redundancy Protocol

A virtual gateway is created between the two routers, one is a master router and the other is a backup router. When the active router down, the standby router receives non-hello information within 10 seconds and replaces the active router.

The difference between VRRP and HSRP

The name of the active and standby router is different. HSRP is called active and standby respectively, while VRRP is called master and backup.

The finger of virtual gateway IP is different, HSRP virtual gateway IP can only be virtual, while VRRP virtual gateway IP can be either virtual IP or real IP of interface.

Different routers send Hello messages. All routers in HSRP send hello messages, and only master routers in VRRP send hello messages.

Preemption is turned off by HSRP and enabled by VRRP by default.

HSRP has port tracking track,VRRP, no port tracking track

2. Basic configuration

R1 configuration

Interface Serial0/0

Ip address 12.1.1.1 255.255.255.0

Interface Serial0/1

Ip address 13.1.1.1 255.255.255.0

Interface Serial0/2

Ip address 15.1.1.1 255.255.255.0

Router ospf 110

Router-id 1.1.1.1

Log-adjacency-changes

Network 12.1.1.0 0.0.0.255 area 0

Network 13.1.1.0 0.0.0.255 area 0

Network 15.1.1.0 0.0.0.255 area 0

R2 configuration

Interface Serial0/0

Ip address 12.1.1.2 255.255.255.0

Interface FastEthernet1/0

Ip address 100.1.1.2 255.255.255.0

Router ospf 110

Router-id 2.2.2.2

Network 12.1.1.0 0.0.0.255 area 0

Network 100.1.1.0 0.0.0.255 area 0

R3 configuration

Interface Serial0/1

Ip address 13.1.1.3 255.255.255.0

Interface FastEthernet1/0

Ip address 100.1.1.3 255.255.255.0

Router ospf 110

Router-id 3.3.3.3

Network 13.1.1.0 0.0.0.255 area 0

Network 100.1.1.0 0.0.0.255 area 0

R4 configuration

No ip routing

Interface FastEthernet1/0

Ip address 100.1.1.4 255.255.255.0

Ip default-gateway 100.1.1.254

R5 configuration

Interface Serial0/2

Ip address 15.1.1.5 255.255.255.0

Router ospf 110

Router-id 5.5.5.5

Network 15.1.1.0 0.0.0.255 area 0

3. Configure VRRP

R2 configuration

Interface FastEthernet1/0

Vrrp 1 ip 100.1.1.254

Vrrp 1 priority 105

R3 configuration

Interface FastEthernet1/0

Vrrp 1 ip 100.1.1.254

3. Test VRRP

Because R2 has a higher priority than R3, the R2-bit Master router and the R3-bit Backup router are now available.

The MAC address format corresponding to the virtual gateway IP is

0000.5e 00.01 01

OUI VRRP VRRP group

Since then, R3 will become a master router after either R2's f1scar0 or s0Uniq0 is turned off, and R2 will become a master router again because it is configured with preemption when it is restored.

In this case, only one router is forwarding data. In order to make better use of these two routers, we can configure two sets of HSRP. One set of default gateway is R2, and the other is R3, so that the effect of load balancing can be achieved.

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

Network Security

Wechat

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

12
Report