83. VRRP of redundant Gateway configuration experiment

Source: Internet
Author: User

1. Experimental topology

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/78/A8/wKiom1aA4bGzTGZjAABB8ngiSQc608.png "title=" Hsrp.png "alt=" Wkiom1aa4bgztgzjaabb8ngisqc608.png "/>

Virtual Route Redundancy Protocol

Virtual one gateway between two routers, one is the master router and the other is the backup router, and when the active router is down, the standby router 10s receives no hello information, replacing the active router.


The difference between VRRP and HSRP

The primary and standby routers are called different, and HSRP is referred to as active and standby, while VRRP is called Master and backup.

Depending on the fingering of the virtual gateway IP, the HSRP virtual gateway IP can only be virtual, while the VRRP virtual gateway IP may be either a virtual IP or an interface's real IP.

Unlike routers that send hello messages, all routers in HSRP send a hello message, and only the master router sends a hello message in VRRP.

HSRP turns preemption off by default, VRRP default on preemption

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, Configuration 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

Since the priority of the R2 is higher than R3, at this point the R2 bit master router, R3 bit backup router.

The virtual gateway IP corresponds to a MAC address format of

0000.5e 00.01 01

OUI VRRP VRRP Group

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/A9/wKioL1aA8s2A5zJjAAAVmObhTYE008.png "style=" float: none; "title=" A1.png "alt=" Wkiol1aa8s2a5zjjaaavmobhtye008.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/AB/wKiom1aA8rPghvLuAAAVjOukHEY342.png "style=" float: none; "title=" A2.png "alt=" Wkiom1aa8rpghvluaaavjoukhey342.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/78/AB/wKiom1aA8rSA1e-sAAAryS59sOw241.png "style=" float: none; "title=" A3.png "alt=" Wkiom1aa8rsa1e-saaarys59sow241.png "/>

Thereafter, whether the R2 f1/0 or s0/0 is closed, R3 will be converted to the master router, and when f1/0 or s0/0 is restored, R2 becomes the master router because of the preemption configuration.


In this case, only one router is forwarding the data, in order to better utilize the two routers, we can configure two sets of HSRP. A set of default gateways is R2, and the other default gateway is R3, which allows for load balancing effect.


This article is from the "Open Source Hall" blog, please be sure to keep this source http://kaiyuandiantang.blog.51cto.com/10699754/1729234

83. VRRP of redundant Gateway configuration experiment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.