Huawei vrrp Configuration

VRRP (Virtual Router Redundancy Protocol) ------ Virtual Router Redundancy Protocol

Namely: Standby Routing Protocol
when pc1 or pc2 communication with the external network, you need to know first-hop router, and hope the first hop router fails, the router can automatically enable the backup, restore communications in a short time, and will not for a long time interrupt communications.

 

 

Step:
(1), [vlan10 switcher switch configuration may be arranged not Plug and Play]
(2), respectively, to route all ports R1 and R2 and R3 also disposed IP
(. 3), each router is configured RIP
( 4), the two routers R1 and R2 two interfaces g0 / 0/0 command are arranged ip vrrp: 192.168.10.1 pc1 and pc2 a network gateway; vrid are set to [10] must be the same at both ends vrid
    priority: 1-254; default value: 100, routes the larger value of priority, the R1 is g0 / 0/0 priority settings: 200, R2 is g0 / 0/0 to 150, the routing will pc1 access pc3 by R1- > R3 -> PC3.
      PC1> the tracert 172.16.30.100
        the traceroute to 172.16.30.100, hops max. 8
        . 1 192.168.10.11 MS 32 MS 32 MS 46 is
        2 172.16.13.3 MS 47 MS 47 MS 46 is
        . 3 * 16 MS 47 MS 172.16.30.100

(5), optimization; when R1 is a lower network failure, such as: the route R1 g0 / 0/1 port is faulty, this time elapsed is pc1 access pc3:

      PC1> the tracert 172.16.30.100
      the traceroute to 172.16.30.100, hops max. 8
        . 1 MS 31 is 192.168.10.11 MS 47 MS 31 is
          first accessed R1G0 / 0/0 ports (since the configuration of R1 is greater than R2 priority200 150), it was found later G0 / 0 / barrier 1, and go back to line R2-R3, and finally to the PC3;
          so if there are multiple failures vlan easy, by modifying the value Master configuration can eliminate the influence of this loop
        2 192.168.10.12 78 ms 63 ms 62 ms
        MS MS 62 is 63 is 172.16.23.3. 3 MS 63 is
        . 4 * 47 MS 78 MS 172.16.30.100

    [R1-the GigabitEthernet0 / 0/0] VRRP vrid 10 Track interface g0 / 0/1 reduced 150
      (this R1 router port g0 / 0/1, if a fault, then R1's priority g0 / 0/0 drop 150, the value 50 becomes less than 150, so pc1 pc3 access router configured to route R2 R1 and go directly to give a route R2)
      the PC> the tracert 172.16.30.100
        the traceroute to 172.16.30.100, hops max. 8
        . 1 MS 47 MS 31 is 192.168.10.12 47 ms here does not pass the router R
        2 172.16.23.3 MS 32 MS 46 is 47 ms
        . 3 46 is 172.16.30.100 MS 32 MS 47 ms

 

Configuration

switch:

<Huawei>sys
[Huawei]sys sw1
[sw1]vlan 10
[sw1]port-group group-member e0/0/1 e0/0/2 e0/0/11 e0/0/12
[sw1-port-group]port link-type access

[sw1-port-group]port default vlan 10                 (1)

----
[R1]
GigabitEthernet0/0/0 192.168.10.11/24
GigabitEthernet0/0/1 172.16.13.1/24                 (2)
[R1]rip
[R1-rip-1]version 2
[R1-rip-1]undo summary
[R1-rip-1]network 172.16.0.0
[R1-rip-1]network 192.168.10.0                   (3)
[R1-GigabitEthernet0/0/0]vrrp vrid 10 virtual-ip 192.168.10.1
[R1-GigabitEthernet0/0/0]vrrp vrid 10 priority ?
    INTEGER<1-254> The level of priority 说明:default is 100
[R1-GigabitEthernet0/0/0]vrrp vrid 10 priority 200            (4)
[R1-GigabitEthernet0/0/1]shutdown
[R1-GigabitEthernet0/0/0]vrrp vrid 10 track interface g0/0/1 reduced 150    (5)

 

-----
[R2]
GigabitEthernet0/0/0 192.168.10.12/24
GigabitEthernet0/0/1 172.16.23.2/24                 (2)
[R2]rip
[R2-rip-1]version 2
[R2-rip-1]undo summary
[R2-rip-1]network 192.168.10.0
[R2-rip-1]network 172.16.0.0                    (3)
[R2-GigabitEthernet0/0/0]vrrp vrid 10 virtual-ip 192.168.10.1
[R2-GigabitEthernet0/0/0]vrrp vrid 10 priority 150             (4)
-----

[R3]
GigabitEthernet0/0/0 172.16.23.3/24
GigabitEthernet0/0/1 172.16.13.3/24
GigabitEthernet0/0/2 172.16.30.1/24                  (2)
[R3]rip
[R3-rip-1]version 2
[R3-rip-1]undo summary
[R3-rip-1]network 172.16.0.0                      (3)

Guess you like

Origin www.cnblogs.com/xccjmpc/p/12460114.html