Basic configuration of the VRRP (take the H3C simulator as an example)

Source: Internet
Author: User
Tags auth
Basic configuration of VRRP:

S1:

[H3c]sys S1

[S1]vlan 10

[S1-vlan10]port G1/0/1

[S1-vlan10]vlan 20

[S1-vlan20]port G1/0/2

[S1-vlan20]vlan 30

[S1-vlan30]port G1/0/3

[S1-vlan30]vlan 40

[S1-vlan40]port G1/0/4

[S1-vlan40]int range G1/0/5 to G1/0/6

[S1-if-range]port Link-type Trunk

[S1-if-range]port trunk Permit VLAN All

[S1-if-range]qu

S2:

[S2]vlan 10

[S2-vlan10]vlan 20

[S2-vlan20]vlan 30

[S2-vlan30]vlan 40

[S2-vlan40]int VLAN 10

[S2-vlan-interface10]ip AD 192.168.10.1 24

[S2-VLAN-INTERFACE10]VRRP Vrid Virtual-ip 192.169.10.254

[S2-VLAN-INTERFACE10]VRRP Vrid 110

[S2-VLAN-INTERFACE10]VRRP Vrid Preempt-mode delay 5

[S2-vlan-interface10]int Vlan 20

[S2-vlan-interface20]ip AD 192.168.20.1 24

This subnet overlaps with another interface!

[S2-VLAN-INTERFACE20]VRRP Vrid Virtual-ip 192.169.20.254

[S2-VLAN-INTERFACE20]VRRP Vrid 110

[S2-VLAN-INTERFACE20]VRRP Vrid Preempt-mode delay 5

[S2-vlan-interface20]int Vlan 30

[S2-vlan-interface30]ip AD 192.168.30.1 24

[S2-VLAN-INTERFACE30]VRRP Vrid Virtual-ip 192.169.30.254

[S2-VLAN-INTERFACE30]VRRP Vrid 100

[S2-VLAN-INTERFACE30]VRRP Vrid Preempt-mode delay 5

[S2-vlan-interface30]int Vlan 40

[S2-vlan-interface40]ip AD 192.168.40.1 24

[S2-VLAN-INTERFACE40]VRRP Vrid Virtual-ip 192.169.40.254

[S2-VLAN-INTERFACE40]VRRP Vrid 100

[S2-VLAN-INTERFACE40]VRRP Vrid Preempt-mode delay 5

[S2-vlan-interface40]qu

Verify that the VRRP redundant gateway is configured successfully:

[S2]dis VRRP

IPV4 Virtual Router Information:

Running Mode:standard

Total number of virtual routers:4

Interface Vrid State Running adver Auth Virtual

Pri Timer Type IP

---------------------------------------------------------------------

Vlan10 Initialize None 192.169.10.254

Vlan20 Initialize None 192.169.20.254

Vlan30 Initialize None 192.169.30.254

Vlan40 Initialize None 192.169.40.254

S3:

[H3c]sys S3

[S3]vlan 10

[S3-vlan10]vlan 20

[S3-vlan20]vlan 30

[S3-vlan30]vlan 40

[S3-vlan40]int VLAN 10

[S3-vlan-interface10]ip AD 192.168.10.2 24

[S3-VLAN-INTERFACE10]VRRP Vrid Virtual-ip 192.169.10.254

[S3-VLAN-INTERFACE10]VRRP Vrid 100

[S3-VLAN-INTERFACE10]VRRP Vrid Preempt-mode delay 5

[S3-vlan-interface10]int Vlan 20

[S3-vlan-interface20]ip AD 192.168.20.2 24

[S3-VLAN-INTERFACE20]VRRP Vrid Virtual-ip 192.169.20.254

[S3-VLAN-INTERFACE20]VRRP Vrid 100

[S3-VLAN-INTERFACE20]VRRP Vrid Preempt-mode delay 5

[S3-vlan-interface20]int Vlan 30

[S3-vlan-interface30]ip AD 192.168.30.2 24

[S3-VLAN-INTERFACE30]VRRP Vrid Virtual-ip 192.169.30.254

[S3-VLAN-INTERFACE30]VRRP Vrid 110

[S3-VLAN-INTERFACE30]VRRP Vrid Preempt-mode delay 5

[S3-vlan-interface30]int Vlan 40

[S3-vlan-interface40]ip AD 192.168.40.2 24

[S3-VLAN-INTERFACE40]VRRP Vrid Virtual-ip 192.169.40.254

[S3-VLAN-INTERFACE40]VRRP Vrid 110

[S3-VLAN-INTERFACE40]VRRP Vrid Preempt-mode delay 5

[S3-vlan-interface40]qu

[S3]dis VRRP

IPV4 Virtual Router Information:

Running Mode:standard

Total number of virtual routers:4

Interface Vrid State Running adver Auth Virtual

Pri Timer Type IP

---------------------------------------------------------------------

Vlan10 Initialize None 192.169.10.254

Vlan20 Initialize None 192.169.20.254

Vlan30 Initialize None 192.169.30.254

Vlan40 Initialize None 192.169.40.254

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.