ECT migration by changing B-VLAN example

Network requirements

As shown in Figure 13, deploy an SPBM network to meet the following requirements:

Figure 13: Network diagram

Configuration procedure

  1. Configure BEB 1:

    # Create VLAN 100, B-VLAN 3001, and B-VLAN 3003.

    <BEB1> system-view
    [BEB1] vlan 100
    [BEB1-vlan100] quit
    [BEB1] vlan 3001
    [BEB1-vlan3001] quit
    [BEB1] vlan 3003
    [BEB1-vlan3003] quit
    

    # Configure MST region parameters on BEB 1. Make sure B-VLAN 3001 and B-VLAN 3003 are mapped to MSTI 4092.

    [BEB1] stp region-configuration
    [BEB1-mst-region] region-name spb
    [BEB1-mst-region] instance 4092 vlan 3001 3003
    [BEB1-mst-region] active region-configuration
    [BEB1-mst-region] quit
    

    # Enable SPBM globally.

    [BEB1] spbm
    

    # Map B-VLAN 3003 to ECT algorithm 9.

    [BEB1-spbm] ect 9 b-vlan 3003
    [BEB1-spbm] quit
    

    # Enable SPBM on the provider network ports on BEB 1. Assign the provider network ports to B-VLAN 3001 and B-VLAN 3003.

    [BEB1] interface ten-gigabitethernet 1/0/2
    [BEB1-Ten-GigabitEthernet1/0/2] port link-type trunk
    [BEB1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 3001 3003
    [BEB1-Ten-GigabitEthernet1/0/2] spbm enable
    [BEB1-Ten-GigabitEthernet1/0/2] quit
    [BEB1] interface ten-gigabitethernet 1/0/3
    [BEB1-Ten-GigabitEthernet1/0/3] port link-type trunk
    [BEB1-Ten-GigabitEthernet1/0/3] port trunk permit vlan 3001 3003
    [BEB1-Ten-GigabitEthernet1/0/3] spbm enable
    [BEB1-Ten-GigabitEthernet1/0/3] quit
    

    # Enable L2VPN.

    [BEB1] l2vpn enable
    

    # Create an SPB VSI (I-SID 3001).

    [BEB1] vsi test
    [BEB1-vsi-test] spb i-sid 3001
    

    # Assign B-VLAN 3001 to the SPB VSI.

    [BEB1-vsi-test-3001] b-vlan 3001
    [BEB1-vsi-test-3001] quit
    [BEB1-vsi-test] quit
    

    # Assign customer network port Ten-GigabitEthernet 1/0/1 to VLAN 100.

    [[BEB1] interface ten-gigabitethernet 1/0/1
    [BEB1-Ten-GigabitEthernet1/0/1] port link-type trunk
    [BEB1-Ten-GigabitEthernet1/0/1] port trunk permit vlan 100
    

    # Configure Ethernet service instance 1 to match VLAN 100, and map the service instance to the SPB VSI.

    [BEB1-Ten-GigabitEthernet1/0/1] service-instance 1
    [BEB1-Ten-GigabitEthernet1/0/1-srv1] encapsulation s-vid 100
    [BEB1-Ten-GigabitEthernet1/0/1-srv1] xconnect vsi test
    [BEB1-Ten-GigabitEthernet1/0/1-srv1] quit
    [BEB1-Ten-GigabitEthernet1/0/1] quit
    
  2. Repeat the previous steps to configure the MST parameters and SPBM feature on BEB 2. (Details not shown.)

  3. Configure BCB 1:

    # Create B-VLAN 3001 and B-VLAN 3003.

    <BCB1> system-view
    [BCB1] vlan 3001
    [BCB1-vlan3001] quit
    [BCB1] vlan 3003
    [BCB1-vlan3003] quit
    

    # Configure MST region parameters on BCB 1. Make sure B-VLAN 3001 and B-VLAN 3003 are mapped to MSTI 4092.

    [BCB1] stp region-configuration
    [BCB1-mst-region] region-name spb
    [BCB1-mst-region] instance 4092 vlan 3001 3003
    [BCB1-mst-region] active region-configuration
    [BCB1-mst-region] quit
    

    # Enable SPBM globally.

    [BCB1] spbm
    

    # Map B-VLAN 3003 to ECT algorithm 9.

    [BCB1-spbm] ect 9 b-vlan 3003
    [BCB1-spbm] quit
    

    # Enable SPBM on the provider network ports on BCB 1. Assign the provider network ports to B-VLAN 3001 and B-VLAN 3003.

    [BCB1] interface ten-gigabitethernet 1/0/1
    [BCB1-Ten-GigabitEthernet1/0/1] port link-type trunk
    [BCB1-Ten-GigabitEthernet1/0/1] port trunk permit vlan 3001 3003
    [BCB1-Ten-GigabitEthernet1/0/1] spbm enable
    [BCB1-Ten-GigabitEthernet1/0/1] quit
    [BCB1] interface ten-gigabitethernet 1/0/2
    [BCB1-Ten-GigabitEthernet1/0/2] port link-type trunk
    [BCB1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 3001 3003
    [BCB1-Ten-GigabitEthernet1/0/2] spbm enable
    [BCB1-Ten-GigabitEthernet1/0/2] quit
    
  4. Configure BCB 2 in the same way you configure BCB 1. (Details not shown.)

  5. Perform ECT migration:

    # On BEB 1, change the B-VLAN to 3003 for the SPB VSI test.

    [BEB1] vsi test
    [BEB1-vsi-test] spb i-sid 3001
    [BEB1-vsi-test-3001] b-vlan 3003
    [BEB1-vsi-test-3001] quit
    [BEB1-vsi-test] quit
    

    # Configure BEB 2 in the same way you configure BEB 1. (Details not shown.)

Verifying the configuration

  1. Before you perform ECT migration, verify the configuration on BEBs (for example, BEB 1):

    # Verify that the BEB has ISIS-SPB adjacencies with all its neighbors.

    [BEB1] display spbm peer
                               Peer information for SPBM
                               -------------------------
     System ID         Port                        Circuit ID    State    Holdtime
     0000.eeee.0101    XGE1/0/2                    2             Up       29s
     0000.eeee.0141    XGE1/0/3                    3             Up       29s
    

    # Verify that the BEB has established a tunnel to the other BEB.

    [BEB1] display l2vpn vsi name test verbose
    VSI Name: test
      VSI Index               : 1
      VSI State               : Up
      MTU                     : 1500
      Bandwidth               : Unlimited
      Broadcast Restrain      : Unlimited
      Multicast Restrain      : Unlimited
      Unknown Unicast Restrain: Unlimited
      MAC Learning            : Enabled
      MAC Table Limit         : -
      MAC Learning rate       : -
      Drop Unknown            : -
      SPB I-SID               : 3001
      Flooding                : Enabled
      Statistics              : Disabled
      VXLAN ID                : -
      SPB Connections:
        BMAC            BVLAN            Link ID    Type
        0000-9999-0141  3001             65         Unicast
      ACs:
        AC                               Link ID    State    Type
        XGE1/0/1 srv1                    0          Up       Manual
    

    # Verify that I-SID 3001 uses B-VLAN 3001 to transmit customer traffic.

    [BEB1] display spbm ect-migration i-sid 3001
    ECT            B-VLAN    T    R
    00-80-c2-01    3001      1    1
    
  2. After you perform ECT migration, verify that I-SID 3001 uses B-VLAN 3003 to transmit customer traffic (for example, on BEB 1):

    [BEB1] display spbm ect-migration i-sid 3001
    ECT            B-VLAN    T    R
    00-80-c2-09    3003      0    1