VRRP CISCO Applications

Source: Internet
Author: User

Principle:

Virtual Routing Redundancy Protocol (Virtual Router Redundancy Protocol, abbreviated VRRP) is by The IETF proposes a routing protocol to address a single point of failure in the configuration of static gateways in the LAN, and1998 has introduced the formal RFC2338 protocol standard in the past year . VRRP is widely used in edge networks, and it is designed to support the failure of IP data traffic in specific scenarios to cause confusion, allow the host to use a single router, and maintain connectivity between routers in the event that the actual first-hop router fails to use it in a timely manner.

Experimental topology:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/6B/wKiom1W3UtuBGhPXAAFwHdRPcaQ715.jpg "title=" Image001.png "alt=" Wkiom1w3utubghpxaafwhdrpcaq715.jpg "/>

Lab Environment:

With Cisco devices, simulation software is done, Little van simulator

Terminal with Xmanager Enterprise 4 Xshell link

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/68/wKioL1W3VNax3s-MAAIIDlWgNd4281.jpg "title=" Image003.png "alt=" Wkiol1w3vnax3s-maaiidlwgnd4281.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/6B/wKiom1W3UveSqwFuAAF-03JgYhU946.jpg "title=" Image005.png "alt=" Wkiom1w3uvesqwfuaaf-03jgyhu946.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/6B/wKiom1W3UwGRfX42AAGJZG-LBIc318.jpg "title=" Image006.png "alt=" Wkiom1w3uwgrfx42aagjzg-lbic318.jpg "/>

SW1 SW1 (config) #no  ip routing   //cancels the three-layer interchange SW1 (config) #line  CONSOLE 0SW1 ( Config-line) #logging  SYNCHRONOUSSW1 (config-line) #no  exec-timeoutsw1#show vlan-switch   //  View vlansw1#vlan database         //Create VLANSW1 ( VLAN) #vlan  10 NAME STCSW1 (VLAN) #vlan  20 name serversw1 (config) #int  F0/2            //joined VLANSW1 (config-if) #switchport  mode  ACCESSSW1 (config-if) #switchport  ACCESS VLAN 10SW1 (config-if) #int  F0/15SW1 (config-if) #switchport  MODE ACCESSSW1 (config-if) #switchport  access vlan 20sw1 (config) #int   f0/0           //do TRUNKSW1 (config-if) #switchport   MODE TRUNKSW1 (config-if) #switchport  TRUNKENCAPSULATION DOT1QSW1 (config-if) #int  F0/1SW1 ( CONFIG-IF) #switchport  MODE TRUNKSW1 (config-if) #switchport  trunkencapsulation dot1qsw1#show int f0/1  SWITCHPORTSW1 (config) #int  vlan 1    //to establish a remote Connection account SW1 (config-if) #ip  add  192.168.1.1255.255.255.0SW1 (config) #username  admin password adminsw1 (config) #line  vty  0 4SW1 (config-line) #login  local

SW2

sw2 (config) #no  ip routingrouter (config) #hostname  sw2sw2 ( Config) #line  console 0sw2 (config-line) #logging  synchronoussw2 (config-line) #no   EXEC-TIMEOUTSW2#VLAN DATABASESW2 (VLAN) #vlan  10 NAME STCSW2 (VLAN) #vlan  20 name  servwersw2 (config) #int  f0/2sw2 (config-if) #switchport  mode accesssw2 (config-if) #switchport  ACCESS VLAN 10SW2 (config-if) #int  f0/15sw2 (config-if) #switchport  MODE ACCESSSW2 ( CONFIG-IF) #switchport  access vlan 20sw2 (config-if) #int  f0/0sw2 (config-if) #switchport   MODE TRUNKSW2 (config-if) #switchport  trunkencapsulation dot1qsw2 (config-if) #int  F0/1SW2 ( CONFIG-IF) #switchport  mode trunksw2 (config-if) #switchport  TRUNKENCAPSULATION DOT1QSW2 ( Config) #username  admin password adminsw2 (config) #line  vty 0 4sw2 (config-line) # Login local 

R1

R1 (config) #line console 0r1 (config-line) #logging synchronousr1 (config-line) #no exec-timeoutr1 (config) #int f0/0r1 ( CONFIG-IF) #no shr1 (config) #int f0/0.10r1 (config-subif) #encapsulation dot1q 10//Must be labeled first, or not worthy of IPR1 (CONFIG-SUBIF) #ip Add 192.168.10.1255.255.255.0r1 (config-subif) #int f0/0.20r1 (config-subif) #encapsulation dot1q 20r1 (config-subif) # IP Add 192.168.20.1255.255.255.0

R2

Router (config) #hostname r2r2 (config) #line console 0r2 (config-line) #logging SYNCHRONOUSR2 (config-line) #no exec-tr2 ( Config) #interface f0/0r2 (config-if) #no shur2 (config-if) #int f0/0.1r2 (config-subif) #encapsulation dot1q 10r2 ( CONFIG-SUBIF) #ip add 192.168.10.2255.255.255.0r2 (config-subif) #int f0/0.2r2 (config-subif) #encapsulation dot1q 20r2 ( CONFIG-SUBIF) #ip Add 192.168.20.2255.255.255.0

Vrrp

R1 (config) #int f0/0.10r1 (config-subif) #vrrp IP 192.168.10.254//Add this interface to 10 groups, adding ipr1#show VRRP,//view Vrrpr1 (config) # int F0/0.10r1 (CONFIG-SUBIF) #vrrp 120//Change Group 10 priority R1 (CONFIG-SUBIF) #int f0/0.20r1 (config-subif) #vrrp IP 192 .168.20.254R1 (CONFIG-SUBIF) #vrrp priority 120

R2

R2 (config) #int f0/0.1r2 (config-subif) #vrrp IP 192.168.10.254//and R1 virtual IP consistent R2 (config-subif) #int f0/0.2r2 ( config-subif) #vrrp IP 192.168.20.254

VRRP Configuration End

Test: Use two virtual machine links, respectively bridging and host-only mode

if you want to achieve load balancing, change the priority to two routers each and 120

Load balancing is achieved.


This article is from the "Supervisory Authority" blog, please be sure to keep this source http://shuoshuo234.blog.51cto.com/10531943/1679329

VRRP CISCO Applications

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.