CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure VBRP to Link with Track Example

Network Requirements

  • Enable VBRP between Device1 and Device2.
  • Device1 monitors the interface VLAN3 status via Track. When the uplink port VLAN3 of Device1 is down, VBRP can feel and switch the status, making Standby become new Active for forwarding data.

Network Topology

Networking of configuring VBRP to link with Track

Figure 7-3 Networking of configuring VBRP to link with Track

Configuration Steps

Step 1: Configure VLAN and add the port to the corresponding VLAN.(Omitted)

Step 2: Configure the IP address of the interface.(Omitted)

Step 3: Create the VBRP group.

#Configure the virtual IP address of VBRP group 1 on Device1 as 10.1.1.10, enable the preemption function, and configure the priority as 110.

Device1#configure terminal
Device1(config)#interface vlan 2
Device1(config-if-vlan2)#standby 1 ip 10.1.1.10
Device1(config-if-vlan2)#standby 1 preempt
Device1(config-if-vlan2)#standby 1 priority 110

#Configure the virtual IP address of VBRP group1 on Device2 as 10.1.1.10 and enable the preemption function.

Device2#configure terminal
Device2(config)#interface vlan 2
Device2(config-if-vlan2)#standby 1 ip 10.1.1.10
Device2(config-if-vlan2)#standby 1 preempt

#View the VBRP status of Device1.

Device1#show standby
Interface vlan2 
  Primary address 10.1.1.1, state up
Group 1 
  State is Active 
  Virtual IP address is 10.1.1.10 
  Refer to local IP prefix 10.1.1.1/24 
  Local virtual MAC address is 0000.0c07.ac01 
  Current MAC type VMAC, installed into HW 
  Hello time 3 sec, hold time 10 sec 
    Next hello sent in 0.533352 secs 
  Preemption enabled, delay 0 sec 
  Active router is local 
  Standby router is 10.1.1.2, priority 100 (expires in 9.283362 secs) 
  Priority 110 (configured 110) 

#View the VBRP status of Device2.

Device2#show standby  
Interface vlan2 
  Primary address 10.1.1.2, state up
Group 1 
  State is Standby 
  Virtual IP address is 10.1.1.10 
  Refer to local IP prefix 10.1.1.2/24 
  Local virtual MAC address is 0000.0c07.ac01 
  Current MAC type VMAC 
  Hello time 3 sec, hold time 10 sec 
    Next hello sent in 2.516646 secs 
  Preemption enabled, delay 0 sec 
  Active router is 10.1.1.1, priority 110 (expires in 9.516646 secs) 
  Standby router is local 
  Priority 100 (configured 100) 

Step 4: Configure VBRP to link with Track.

#On Device1, configure VBRP to link with Track, monitor the uplink interface VLAN3, and configure the priority decrement as 20.

Device1(config)#interface vlan 2
Device1(config-if-vlan2)#standby 1 track vlan 3 20

#View the VBRP status of Device1.

Device1#show standby
Interface vlan2 
  Primary address 10.1.1.1, state up
Group 1 
  State is Active 
  Virtual IP address is 10.1.1.10 
  Refer to local IP prefix 10.1.1.1/24 
  Local virtual MAC address is 0000.0c07.ac01 
  Current MAC type VMAC, installed into HW 
  Hello time 3 sec, hold time 10 sec 
    Next hello sent in 0.533352 secs 
  Preemption enabled, delay 0 sec 
  Active router is local 
  Standby router is 10.1.1.2, priority 100 (expires in 9.283362 secs) 
  Priority 110 (configured 110) 
Track interface vlan3 state Up decrement 20 

#When the uplink port VLAN3 of Device1 is down, the VBRP priority is reduced by 20. Here, the priority of Device2 is high, so the status switches.

#View the VBRP status of Device1.

Device1#show standby
Interface vlan2 
  Primary address 10.1.1.1, state up
Group 1 
  State is Standby 
  Virtual IP address is 10.1.1.10 
  Refer to local IP prefix 10.1.1.1/24 
  Local virtual MAC address is 0000.0c07.ac01 
  Current MAC type VMAC 
  Hello time 3 sec, hold time 10 sec 
    Next hello sent in 0.800008 secs 
  Preemption enabled, delay 0 sec 
  Active router is 10.1.1.2, priority 100 (expires in 7.766676 secs) 
  Standby router is local 
  Priority 90 (configured 110) 
    Track interface vlan3 state Down decrement 20 

#View the VBRP status on Device2.

Device2#show standby
Interface vlan2 
  Primary address 10.1.1.2, state up
Group 1 
  State is Active 
  Virtual IP address is 10.1.1.10 
  Refer to local IP prefix 10.1.1.2/24 
  Local virtual MAC address is 0000.0c07.ac01 
  Current MAC type VMAC, installed into HW 
  Hello time 3 sec, hold time 10 sec 
    Next hello sent in 0.533352 secs 
  Preemption enabled, delay 0 sec 
  Active router is local 
  Standby router is 10.1.1.1, priority 90 (expires in 9.283362 secs) 
  Priority 100 (configured 100)