- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
00-H3C S12500 SPBM Configuration Examples | 217.8 KB |
General configuration restrictions and guidelines
Feature compatibility requirements
Example: Configuring SPBM with tandem replication
Configuration restrictions and guidelines
Configuring BEB 2, BEB 3, and BEB 4
Example: Configuring SPBM with head-end replication
Configuration restrictions and guidelines
Example: Performing SPBM ECT migration by changing the B-VLAN
Configuration files (before ECT migration)
Introduction
This document provides examples for configuring SPBM.
Prerequisites
The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
This document assumes that you have basic knowledge of SPBM.
General configuration restrictions and guidelines
When you configure SPBM, follow the restrictions and guidelines in this section.
Feature compatibility requirements
When you use SPBM in conjunction with other features, follow the restrictions and guidelines in Table 1.
Table 1 SPBM and other features compatibility
Feature |
Restrictions and guidelines |
System operating mode |
The system operating mode must be advanced, enhanced Layer 2, or enhanced Layer 3 mode. For more information about system operating modes, see device management in Fundamentals Configuration Guide. |
IRF |
You must configure the irf mac-address persistent always command to prevent the IRF bridge MAC address from changing after a master re-election. |
Spanning tree |
The spanning tree mode must be set to MSTP (the default). For SPBM neighbors to establish adjacencies, you must map all B-VLANs to MSTI 4092 and make sure their in-between links have connectivity. To forward traffic on an SPBM network, you must assign all SPBM nodes to one MST region. For more information about MST region configuration, see Layer 2—LAN Switching Configuration Guide. |
Static MAC |
If a B-MAC is the same as a static MAC in the MAC address table, remove the static MAC. The device can forward SPBM packets to the B-MAC only after the conflict is removed. |
VLAN |
ISIS-SPB protocol frames are transmitted untagged on links. To prevent SPBM-enabled interfaces from dropping these frames, assign each SPBM-enabled interface to the port VLAN (PVID) as an untagged member. You must configure the provider network ports on BEBs and BCBs as trunk or hybrid ports, and assign the ports to all B-VLANs as tagged VLAN members. |
Hardware restrictions
In an MDC on an SPBM node, a provider network port cannot be in the same port group as an IRF physical port, EVI tunnel source interface, or Layer 3 Ethernet interface.
Table 2 Port groups on interface cards
Card type |
Port groups |
Port assignment |
48-port 1000 Mbps Ethernet fiber interface card 48-port 1000 Mbps Ethernet copper interface card |
2 |
Group 1—Lowest numbered 24 ports. Group 2—Highest numbered 24 ports. |
4-port 10-Gigabit Ethernet fiber interface card |
2 |
Group 1—Lowest numbered 2 ports. Group 2—Highest numbered 2 ports. |
8-port 10-Gigabit Ethernet fiber interface card |
4 |
Group 1—Ports 1 and 2. Group 2—Ports 3 and 4. Group 3—Ports 5 and 6. Group 4—Ports 7 and 8. |
16-port 10-Gigabit Ethernet fiber interface card |
8 |
Group 1—Ports 1 and 3. Group 2—Ports 2 and 4. Group 3—Ports 5 and 7. Group 4—Ports 6 and 8. Group 5—Ports 9 and 11. Group 6—Ports 10 and 12. Group 7—Ports 13 and 15. Group 8—Ports 14 and 16. |
20-port 10-Gigabit Ethernet interface card |
1 |
All ports are in one group. |
32-port 10-Gigabit Ethernet fiber interface card |
4 |
Group 1—Ports 1, 3, 5, 7, 9, 11, 13, 15. Group 2—Ports 2, 4, 6, 8, 10, 12, 14, 16. Group 3—Ports 17, 19, 21, 23, 25, 27, 29, 31. Group 4—Ports 18, 20, 22, 24, 26, 28, 30, 32. |
40-port 10-Gigabit Ethernet fiber interface card |
2 |
Group 1—Lowest numbered 20 ports. Group 2—Highest numbered 20 ports. |
48-port 10-Gigabit Ethernet fiber interface card |
4 |
Group 1—Ports 1 to 12. Group 2—Ports 13 to 24. Group 3—Ports 25 to 36. Group 4—Ports 37 to 48. |
16-port 40-Gigabit Ethernet fiber interface card |
4 |
Group 1—Ports 1 to 4. Group 2—Ports 5 to 8. Group 3—Ports 9 to 12. Group 4—Ports 13 to 16. |
4-port 100-Gigabit Ethernet fiber interface card |
2 |
Group 1—Lowest numbered 2 ports. Group 2—Highest numbered 2 ports. |
Example: Configuring SPBM with tandem replication
Network requirements
As shown in Figure 1, deploy an SPBM network to meet the following requirements:
· Use I-SID 3001 to extend VLAN 100 across customer sites 1, 2, 3, and 4.
· Assign B-VLAN 3001 to I-SID 3001.
· Use tandem replication for multicast in the SPBM network.
|
NOTE: BCB 2 uses the same port numbering scheme as BCB 1. BEB 2, BEB 3, and BEB 4 use the same port numbering scheme as BEB 1. |
Configuration restrictions and guidelines
When you configure SPBM, follow these restrictions and guidelines:
· The following MST region parameters must be the same across all SPBM nodes:
? Region name.
? Revision level.
? All B-VLANs mapped to MSTI 4092.
· Multicast replication mode must be the same across all BEBs.
· You must enable the multicast B-VLAN feature on all nodes in the SPBM network if the following requirements are met:
? Tandem replication is used.
? A BEB uses interfaces on an EC or EF interface card as provider network ports.
An EC or EF interface card is an interface card suffixed with EC or EF. For more information about the multicast B-VLAN feature, see SPB Configuration Guide.
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Configuration procedures
Configuring BEB 1
# Create C-VLAN 100 and B-VLAN 3001.
<BEB1> system-view
[BEB1] vlan 100
[BEB1-vlan100] quit
[BEB1] vlan 3001
[BEB1-vlan3001] quit
# Configure MST region parameters. This example uses the default (0) for the revision level.
[BEB1] stp region-configuration
[BEB1-mst-region] region-name spb
[BEB1-mst-region] instance 4092 vlan 3001
[BEB1-mst-region] active region-configuration
[BEB1-mst-region] quit
# Enable SPBM both globally and on provider network ports. Assign the provider network ports to B-VLAN 3001.
[BEB1] spbm
[BEB1-spbm] quit
[BEB1] interface range Ten-GigabitEthernet 1/0/2 to Ten-GigabitEthernet 1/0/3
[BEB1-if-range] undo shutdown
[BEB1-if-range] port link-type trunk
[BEB1-if-range] port trunk permit vlan 3001
[BEB1-if-range] spbm enable
[BEB1-if-range] quit
# Enable L2VPN.
[BEB1] l2vpn enable
# Configure 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
# Enable tandem multicast replication for the SPB VSI.
[BEB1-vsi-test-3001] multicast replicate-mode tandem
[BEB1-vsi-test-3001] quit
[BEB1-vsi-test] quit
# Assign the customer network port Ten-GigabitEthernet 1/0/1 to C-VLAN 100.
[BEB1] interface Ten-GigabitEthernet1/0/1
[BEB1-Ten-GigabitEthernet1/0/1] undo shutdown
[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 C-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
Configuring BEB 2, BEB 3, and BEB 4
# Configure the BEBs in the same way you configure BEB 1. (Details not shown.)
Configuring BCB 1
# Create B-VLAN 3001.
<BCB1> system-view
[BCB1] vlan 3001
[BCB1-vlan3001] quit
# Configure MST region parameters. This example uses the default (0) for the revision level.
[BCB1] stp region-configuration
[BCB1-mst-region] region-name spb
[BCB1-mst-region] instance 4092 vlan 3001
[BCB1-mst-region] active region-configuration
[BCB1-mst-region] quit
# Enable SPBM both globally and on provider network ports. Assign the provider network ports to B-VLAN 3001.
[BCB1] spbm
[BCB1-spbm] quit
[BCB1] interface range Ten-GigabitEthernet 2/0/1 to Ten-GigabitEthernet 2/0/4
[BCB1-if-range] undo shutdown
[BCB1-if-range] port link-type trunk
[BCB1-if-range] port trunk permit vlan 3001
[BCB1-if-range] spbm enable
[BCB1-if-range] quit
Configuring BCB 2
# Configure BCB 2 in the same way you configure BCB 1. (Details not shown.)
Verifying the configuration
Verify the configuration on BEBs (for example, BEB 1):
# Verify that the BEB has ISIS-SPB adjacency with its neighbors.
[BEB1] display spbm peer
Peer information for SPBM
-------------------------
System ID Port Circuit ID State Holdtime
0011.2200.1501 XGE1/0/2 2 Up 29s
0011.2200.1601 XGE1/0/3 3 Up 29s
# Verify that the BEB has established tunnels to other BEBs.
[BEB1] display l2vpn vsi name test verbose
VSI Name: test
VSI Index : 0
VSI State : Up
MTU : 1500
Bandwidth : 102400 kbps
Broadcast Restrain : 5%
Multicast Restrain : -
Unknown Unicast Restrain: -
MAC Learning : Enabled
MAC Table Limit : Unlimited
Drop Unknown : -
SPB I-SID : 3001
SPB Connections:
BMAC BVLAN Link ID Type
0011-2200-1201 3001 64 Unicast
0011-2200-1301 3001 65 Unicast
0011-2200-1401 3001 66 Unicast
6380-ff00-0bb9 3001 - Multicast
ACs:
AC Link ID State
XGE1/0/1 srv1 0 Up
Configuration files
· BEB 1, BEB 2, BEB 3, and BEB 4:
vlan 100
#
vlan 3001
#
stp region-configuration
region-name spb
instance 4092 vlan 3001
active region-configuration
#
spbm
#
l2vpn enable
#
vsi test
spb i-sid 3001
b-vlan 3001
multicast replicate-mode tandem
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
service-instance 1
encapsulation s-vid 100
xconnect vsi test
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
· BCB 1 and BCB 2:
vlan 3001
#
stp region-configuration
region-name spb
instance 4092 vlan 3001
active region-configuration
#
spbm
#
interface Ten-GigabitEthernet2/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet2/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet2/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet2/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
Example: Configuring SPBM with head-end replication
Network requirements
As shown in Figure 2, deploy an SPBM network to meet the following requirements:
· Use I-SID 3001 to extend VLAN 100 across customer sites 1, 2, and 3.
· Assign B-VLAN 3001 to I-SID 3001.
· Use head-end replication for multicast in the SPBM network.
Configuration restrictions and guidelines
When you configure SPBM, follow these restrictions and guidelines:
· The following MST region parameters must be the same across all SPBM nodes:
? Region name.
? Revision level.
? All B-VLANs mapped to MSTI 4092.
· Multicast replication mode must be the same across all BEBs.
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Configuration procedures
Configuring BEB 1
# Create C-VLAN 100 and B-VLAN 3001.
<BEB1> system-view
[BEB1] vlan 100
[BEB1-vlan100] quit
[BEB1] vlan 3001
[BEB1-vlan3001] quit
# Configure MST region parameters. This example uses the default (0) for the revision level.
[BEB1] stp region-configuration
[BEB1-mst-region] region-name spb
[BEB1-mst-region] instance 4092 vlan 3001
[BEB1-mst-region] active region-configuration
[BEB1-mst-region] quit
# Enable SPBM both globally and on the provider network port Ten-GigabitEthernet 1/0/2. Assign the provider network port to B-VLAN 3001.
[BEB1] spbm
[BEB1-spbm] quit
[BEB1] interface Ten-GigabitEthernet1/0/2
[BEB1-Ten-GigabitEthernet1/0/2] undo shutdown
[BEB1-Ten-GigabitEthernet1/0/2] port link-type trunk
[BEB1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 3001
[BEB1-Ten-GigabitEthernet1/0/2] spbm enable
[BEB1-Ten-GigabitEthernet1/0/2] quit
# Enable L2VPN.
[BEB1] l2vpn enable
# Configure 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 the customer network port Ten-GigabitEthernet 1/0/1 to C-VLAN 100.
[BEB1] interface Ten-GigabitEthernet1/0/1
[BEB1-Ten-GigabitEthernet1/0/1] undo shutdown
[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 C-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
Configuring BEB 2 and BEB 3
# Configure the BEBs in the same way you configure BEB 1. (Details not shown.)
Configuring the BCB
# Create B-VLAN 3001.
<BCB> system-view
[BCB] vlan 3001
[BCB-vlan3001] quit
# Configure MST region parameters. This example uses the default (0) for the revision level.
[BCB] stp region-configuration
[BCB-mst-region] region-name spb
[BCB-mst-region] instance 4092 vlan 3001
[BCB-mst-region] active region-configuration
[BCB-mst-region] quit
# Enable SPBM both globally and on provider network ports. Assign the provider network ports to B-VLAN 3001.
[BCB] spbm
[BCB-spbm] quit
[BCB] interface range Ten-GigabitEthernet 2/0/1 to Ten-GigabitEthernet 2/0/3
[BCB-if-range] undo shutdown
[BCB-if-range] port link-type trunk
[BCB-if-range] port trunk permit vlan 3001
[BCB-if-range] spbm enable
[BCB-if-range] quit
Verifying the configuration
Verify the configuration on BEBs (for example, BEB 1):
# Verify that the BEB has ISIS-SPB adjacency with its neighbor.
[BEB1] display spbm peer
Peer information for SPBM
-------------------------
System ID Port Circuit ID State Holdtime
0000.eeee.0101 XGE1/0/2 2 Up 29s
# Verify that the BEB has established tunnels to other BEBs.
[BEB1] display l2vpn vsi name test verbose
VSI Name: test
VSI Index : 0
VSI State : Up
MTU : 1500
Bandwidth : 102400 kbps
Broadcast Restrain : 5%
Multicast Restrain : -
Unknown Unicast Restrain: -
MAC Learning : Enabled
MAC Table Limit : Unlimited
Drop Unknown : -
SPB I-SID : 3001
SPB Connections:
BMAC BVLAN Link ID Type
0000-eeee-0141 3001 64 Unicast
0000-9999-0141 3001 65 Unicast
ACs:
AC Link ID State
XGE1/0/1 srv1 0 Up
Configuration files
· BEB 1, BEB 2, and BEB 3:
vlan 100
#
vlan 3001
#
stp region-configuration
region-name spb
instance 4092 vlan 3001
active region-configuration
#
spbm
#
l2vpn enable
#
vsi test
spb i-sid 3001
b-vlan 3001
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
service-instance 1
encapsulation s-vid 100
xconnect vsi test
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
· BCB:
vlan 3001
#
stp region-configuration
region-name spb
instance 4092 vlan 3001
active region-configuration
#
spbm
#
interface Ten-GigabitEthernet2/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet2/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
interface Ten-GigabitEthernet2/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001
spbm enable
#
Example: Performing SPBM ECT migration by changing the B-VLAN
Network requirements
As shown in Figure 3, perform ECT migration for the SPBM network (I-SID 3001) in "Example: Configuring SPBM with tandem replication."
Move I-SID 3001 from the original ECT algorithm to ECT algorithm 9. Change the B-VLAN from 3001 to 3003 for I-SID 3001.
Requirements analysis
To perform the ECT migration, you must perform the following tasks:
· Create B-VLAN 3003, and map B-VLAN 3003 to MSTI 4092 on all SPBM nodes.
· Map B-VLAN 3003 to ECT algorithm 9 on all SPBM nodes.
· Change the B-VLAN from 3001 to 3003 for I-SID 3001 on BEBs.
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Configuration procedures
Adding B-VLAN 3003
Configuring BEB 1
# Create B-VLAN 3003.
<BEB1> system-view
[BEB1] vlan 3003
[BEB1-vlan3003] quit
# Configure MST region parameters. This example uses the default (0) for the revision level.
[BEB1] stp region-configuration
[BEB1-mst-region] instance 4092 vlan 3003
[BEB1-mst-region] active region-configuration
[BEB1-mst-region] quit
# Assign provider network ports to B-VLAN 3003.
[BEB1] interface range Ten-GigabitEthernet 1/0/2 to Ten-GigabitEthernet 1/0/3
[BEB1-if-range] port trunk permit vlan 3003
[BEB1-if-range] quit
# Map B-VLAN 3003 to ECT algorithm 9.
[BEB1] spbm
[BEB1-spbm] ect 9 b-vlan 3003
[BEB1-spbm] quit
Configuring BEB 2, BEB 3, and BEB 4
# Configure the BEBs in the same way you configure BEB 1. (Details not shown.)
Configuring BCB 1
# Create B-VLAN 3003.
<BCB1> system-view
[BCB1] vlan 3003
[BCB1-vlan3003] quit
# Configure MST region parameters. Map B-VLAN 3003 to MSTI 4092.
[BCB1] stp region-configuration
[BCB1-mst-region] instance 4092 vlan 3003
[BCB1-mst-region] active region-configuration
[BCB1-mst-region] quit
# Assign provider network ports to B-VLAN 3003.
[BCB1] interface range Ten-GigabitEthernet 2/0/1 to Ten-GigabitEthernet 2/0/4
[BCB1-if-range] port trunk permit vlan 3003
[BCB1-if-range] quit
# Map B-VLAN 3003 to ECT algorithm 9.
[BCB1] spbm
[BCB1-spbm] ect 9 b-vlan 3003
[BCB1-spbm] quit
Configuring BCB 2
# Configure BCB 2 in the same way you configure BCB 1. (Details not shown.)
Performing ECT migration
Configuring BEB 1
# Change the B-VLAN to 3003 for the SPB VSI test.
[BEB1] vsi test
[BEB1-vsi-test] spbm i-sid 3001
[BEB1-vsi-test-3001] b-vlan 3003
Configuring BEB 2, BEB 3, and BEB 4
# Configure the BEBs in the same way you configure BEB 1. (Details not shown.)
Verifying the configuration
Before ECT migration
# Before the ECT migration, verify that I-SID 3001 uses B-VLAN 3001 to transmit customer traffic on BEBs (for example BEB 1).
[BEB1] display spbm ect-migration i-sid 3001
ECT B-VLAN T R
00-80-c2-01 3001 1 1
After ECT migration
# Approximately 2 minutes later after the ECT migration, verify that I-SID 3001 uses B-VLAN 3003 to transmit customer traffic on BEBs (for example BEB 1).
[BEB1-spbm] display spbm ect-migration i-sid 3001
ECT B-VLAN T R
00-80-c2-09 3003 1 1
Configuration files (before ECT migration)
· BEB 1, BEB 2, BEB 3, and BEB 4:
vlan 100
#
vlan 3001
#
vlan 3003
#
stp region-configuration
region-name spb
instance 4092 vlan 3001 3003
active region-configuration
#
spbm
ect 9 b-vlan 3003
#
l2vpn enable
#
vsi test
spb i-sid 3001
b-vlan 3001
multicast replicate-mode tandem
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
service-instance 1
encapsulation s-vid 100
xconnect vsi test
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
· BCB 1 and BCB 2:
vlan 3001
#
vlan 3003
#
stp region-configuration
region-name spb
instance 4092 vlan 3001 3003
active region-configuration
#
spbm
ect 9 b-vlan 3003
#
interface Ten-GigabitEthernet2/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
interface Ten-GigabitEthernet2/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
interface Ten-GigabitEthernet2/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
interface Ten-GigabitEthernet2/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 3001 3003
spbm enable
#
Related documentation
· H3C S12500 Routing Switch Series SPB Configuration Guide
· H3C S12500 Routing Switch Series SPB Command Reference
· H3C S12500 Routing Switch Series Layer 2—LAN Switching Configuration Guide
· H3C S12500 Routing Switch Series Layer 2—LAN Switching Command Reference
· H3C S12500 Routing Switch Series MPLS Configuration Guide
· H3C S12500 Routing Switch Series MPLS Command Reference