- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-BIER commands | 138.15 KB |
display bier forward ipv6 statistics
display bier inter-as bfr-info
display bier inter-as routing-table
BIER commands
bfr-id
Use bfr-id to specify a BFR ID for a BIER edge device.
Use undo bfr-id to delete the BFR ID of a BIER edge device.
Syntax
bfr-id bfr-id
undo bfr-id
Default
The device does not have a BFR ID.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
bfr-id: Specifies a BFR ID in the range of 1 to 65535.
Usage guidelines
A BFR refers to a BFIR or BFER. In a BIER sub-domain, a BFIR or BFER must have a unique BFR ID. If a BIER edge device belongs to more than one sub-domain, it can have the same or different BFR IDs in different sub-domains.
Examples
# Specify a BFR ID of 1000 for the device.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 1 ipv6
[Sysname-bier-sub-domain-1-ipv6] bfr-id 1000
Related commands
display bier sub-domain
bfr-prefix
Use bfr-prefix to specify a BFR prefix.
Use undo bfr-prefix to restore the default.
Syntax
bfr-prefix interface interface-type interface-number
undo bfr-prefix
Default
The device does not have a BFR prefix.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number. Only loopback interfaces are supported.
Usage guidelines
As an equivalent to a router ID in a routing protocol, a BFR prefix identifies a BFR in a sub-domain. In a sub-domain, a BFR must have a unique BFR prefix that is routable.
Only the IP address of a loopback interface can be configured as a BFR prefix. After the IP address of a loopback interface is configured as a BFR prefix, the loopback interface cannot be deleted.
If a BFR belongs to more than one sub-domain, it can have the same or different BFR prefixes in different sub-domains.
Examples
# Specify the IPv6 address of a loopback interface as the BFR prefix.
<Sysname> system-view
[Sysname] interface LoopBack 0
[Sysname-LoopBack0] ipv6 address 100::1 32
[Sysname-LoopBack0] quit
[Sysname] bier
[Sysname-bier] sub-domain 0 ipv6
[Sysname-bier-sub-domain-0-ipv6] bfr-prefix interface loopback 0
Related commands
display bier sub-domain
bfr-neighbor mpra
Use bfr-neighbor mpra to specify a BFR neighbor and the BFR ID range of BIER edge devices that can be reached through the BFR neighbor.
Use undo bfr-neighbor mpra to remove the specified BFR neighbor and BFR ID range.
Syntax
bfr-neighbor mpra ipv6-address bfr-id bfr-id-start [ to bfr-id-end ] [ preference preference-value ]
undo bfr-neighbor mpra ipv6-address [ bfr-id bfr-id-start [ to bfr-id-end ] ]
Default
No BFR neighbor and BFR ID range are specified.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies a BFR neighbor by its IPv6 unicast address (MPRA).
bfr-id bfr-id-start: Specifies a single BFR ID (if you do not specify the to bfr-id-end option) or the start BFR ID of a BFR ID range (if you specify the to bfr-id-end option). The value range for the bfr-id-start argument is 1 to 65535.
to bfr-id-end: Specifies the end BFR ID of the BFR ID range, in the range of 2 to 65535.
preference preference-value: Specifies the priority of the link to reachable BFR IDs, in the range of 1 to 255. The default is 60. The smaller the priority value, the higher the priority.
Usage guidelines
In a cross-AS BIER deployment, if the ASBR in an AS does not support BIER forwarding, BIER packets cannot be forwarded among ASs. To solve this problem, you can specify the BFR neighbor on the BFR directly connected to the ASBR and the BFR ID range of BIER edge devices that can be reached through the BFR neighbor.
If all BFR IDs are removed or the undo bfr-neighbor mpra command is executed, the corresponding BFR neighbor will be removed from the BIRT.
You can execute this command repeatedly to configure multiple BFR neighbors and multiple BFR ID ranges.
In a cross-AS BIER deployment, you can configure the priorities of different links to the same BFR IDs reachable through a BFR neighbor to ensure reliable transmission of multicast traffic forwarding. The device selects the link with the highest priority to forward multicast traffic. If the link with the highest priority fails, the device quickly switch over the traffic to a low-priority link. If a large amount of multicast traffic, you can configure the same priority for different links to form ECMP links and load balances the traffic.
You can configure a maximum of four BFR neighbors with the same link priority for reaching a BFR ID.
The configuration takes effect only on the BIRT of the local node and will not be advertised to other nodes.
The total number of BFR neighbors in all BIER sub-domains on the device cannot exceed 2000. The number of BFR IDs reachable through one BFR neighbor cannot exceed 256.
Examples
# In BIER sub-domain 1, specify 3000::1 as a BFR neighbor and specify the BFR ID range as 100 to 300 and link priority as 50.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 1 ipv6
[Sysname-bier-sub-domain-1-ipv6] bfr-neighbor mpra 3000::1 bfr-id 100 to 300 preference 50
Related commands
encapsulation-type
bier
Use bier to enable BIER and enter BIER view.
Use undo bier to disable BIER.
Syntax
bier
undo bier
Default
BIER is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Bit Index Explicit Replication (BIER) is a new architecture for the forwarding of multicast data packets. BIER encapsulates the destination nodes of multicast packets in a bit string. It does not require a protocol for explicitly building multicast distribution trees, nor does it require intermediate nodes to maintain any per-flow state.
BIER requires only the encapsulation of a bit string on the BEIR without requiring operating transit BFRs. BIER is applicable to quick deployment of multicast services through the controller in an SDN network.
The undo bier command will delete all settings in BIER view. Please use it with caution.
Examples
# Enable BIER and enter BIER view.
<Sysname> system-view
[Sysname] bier
[Sysname-bier]
bier bfr-prefix proxy
Use bier bfr-prefix proxy to enable BGP BFR prefix proxying.
Use undo bier bfr-prefix proxy to disable BGP BFR prefix proxying.
Syntax
bier bfr-prefix proxy
undo bier bfr-prefix proxy
Default
BGP BFR prefix proxying is disabled.
Views
BGP IPv6 unicast address family view
Predefined user roles
network-admin
Usage guidelines
In a cross-AS BIER deployment, the BFR ID range is used by the BIER to learn BFR IDs in another BIER domain. After being enabled with BGP BFR prefix proxying, an ASBR A node enabled with BGP BFR prefix proxying is called a BFR proxy node. An ASBR enabled with BGP BFR prefix proxying advertises cross-AS BFR ID range information. All multicast packets in an AS can be forwarded by the ASBR to other ASs. This prevents multicast traffic forwarding failures if the devices in an AS cannot generate correct forwarding entries.
|
NOTE: Routes with local BIER information generated after the bier enable command is executed do not include BFR ID range information. Routes redistributed by using the import-bier command include BFR ID range information. |
A BFR proxy node does not directly forward routes carrying BIER information learned from a BGP peer to other BGP peers and advertises them as follows:
1. Advertises the BIER information (including BFR ID range information) in learned routes to the BIER module.
2. The BIER module modifies the BFR prefix in the BIER information as the BFR prefix of the local node and summarizes received BFR ID range information.
3. The BIER module advertises the modified BIER information to the BGP module. The BGP module generates a BGP route that carries the modified BIER information (including BFR ID range information) and sends it to BGP peers.
4. After receiving the BGP route, an IBGP or EBPG peer generates cross-AS BIRT entry. The BRF prefix of the edge node is the BRF prefix of the BFR proxy node.
When a device forwards a cross-AS packet, it will encapsulate the MPRA of the BFR proxy node and sends the packet to the BFR proxy node. The BFR proxy node forwards the received packet according to the BIFT.
To avoid loops and ensure correct BIRT entries, perform this task only on one end of an EBGP session.
Before executing this command, you must execute the bier enable command.
Examples
# In the BGP IPv6 unicast address family, enable BGP BFR prefix proxying.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv6 unicast
[Sysname-bgp-default-ipv6] bier enable
[Sysname-bgp-default-ipv6] bier bfr-prefix proxy
Related commands
bier enable
import-bier
peer capability bier
bier enable
Use bier enable to enable BIER for BGP.
Use undo bier enable to disable BIER for BGP
Syntax
bier enable
undo bier enable
Default
BIER is disabled for BGP.
Views
BGP IPv6 unicast address family view
Predefined user roles
network-admin
Usage guidelines
In a BIER network, a node encapsulates the following BIER information in UPDATE messages:
· BFR prefix—Encapsulated in the NLRI field.
· BIER Path Attribute—A new attribute that contains information such as BIER sub-domain, BFR ID, BSL, and MPRA.
If BIER is enabled for BGP, BGP imports the BFR IDs and BFR prefixes from the BIER module and generates BGP routes carrying BIER information (excluding BFR ID range information).
The device generates a BGP IPv6 unicast route without BIER information and advertises the route to the BGP IPv6 unicast peers. The BGP IPv6 unicast route uses the locally configured MPRA and BFR prefix as the reachability prefix information of the NLRI field. The BGP IPv6 unicast route can guide the forwarding of BIER packets on devices that do not support BIER forwarding. If the peer capability bier command is also executed, the BGP routes generated by the local BFR prefix carry BIER path attributes can be advertised to the specified peer or peer group.
You must execute this command before executing the peer capability bier, bier bfr-prefix proxy, and import-bier commands.
Examples
# In the BGP IPv6 unicast address family, enable BIER for BGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv6 unicast
[Sysname-bgp-default-ipv6] bier enable
Related commands
bier local-prefix proxy
import-bier
peer capability bier
display bier forward ipv6 statistics
Use display bier forward ipv6 statistics to display BIER packet statistics.
Syntax
In standalone mode:
display bier forward ipv6 statistics slot slot-number [ cpu cpu-number ]
In IRF mode:
display bier forward ipv6 statistics chassis chassis-number slot slot-number [ cpu cpu-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)
cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.
Examples
# Display BIER packet statistics.
<Sysname> display bier forward ipv6 statistics
BIER packet statistics:
Entered BIER sub-domain packets :6
Received packets: 5
Received PHP packets: 5
Forwarded packets: 12
Sent to overlay packets: 3
BIER error statistics:
Tunnel and BIFT info mismatch: 0
Invalid BIFT encapsulation type: 0
Invalid tunnel encapsulation type: 0
Invalid packet encapsulation type: 0
No memory error: 0
Get vn error: 0
Invalid tunnel ID: 0
TTL value is zero: 0
BitString non-zero: 0
Bier head check error: 0
Get BIFT error: 0
Table 1 Command output
Field |
Description |
Entered BIER sub-domain packets |
Number of packets that join the BIER sub-domain. |
Received PHP packets |
Number of packets that are processed by PHP. |
Sent to overlay packets |
Number of packets that are sent to the multicast flow overlay. |
Related commands
reset bier forward ipv6 statistics
display bier inter-as bfr-info
Use display bier inter-as bfr-info to display cross-AS BFR information.
Syntax
display bier inter-as bfr-info [ sub-domain sub-domain-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
sub-domain sub-domain-id: Specifies a sub-domain by its ID in the range of 0 to 255. If you do not specify a BFR prefix, this command displays the cross-AS BFR information of all sub-domains.
Usage guidelines
The cross-AS BFR information is learned through EBGP and does not include the configuration of the bfr-neighbor mpra command.
Examples
# Display the cross-AS BFR information of sub-domain 3.
<Sysname> display bier inter-as bfr-info sub-domain 3
Sub-domain 3
BFR prefix: 300::1
AS number: 33
Protocol: EBGP
Process ID: 0
BFR ID range: 30 to 90, 100 to 105, 200 to 300
BFR prefix: 400::1
AS number: 50
Protocol: EBGP
Process ID: 0
BFR ID range: 91 to 99
Table 2 Command output
Field |
Description |
BFR prefix |
BFR prefix of the ASBR in another domain. |
AS number |
Number of the AS where the BFR resides. |
Protocol |
Routing protocol that transfers cross-AS BFR information. |
BFR ID range |
BFR ID range of BIER edge devices that can be reached through the BFR neighbor. |
Related commands
display bier prefix
display bier inter-as routing-table
Use display bier inter-as routing-table to display cross-AS BIRT information.
Syntax
display bier inter-as routing-table [ sub-domain sub-domain-id [ bfr-id bfr-id-start [ to bfr-id-end ] ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
sub-domain sub-domain-id: Specifies a sub-domain by its ID in the range of 0 to 255. If you do not specify a BFR prefix, this command displays the cross-AS BIRT information of all sub-domains.
bfr-id bfr-id-start: Specifies a single BFR ID (if you do not specify the to bfr-id-end option) or the start BFR ID of a BFR ID range (if you specify the to bfr-id-end option). The value range for the bfr-id-start argument is 1 to 65535. If you do not specify BFR IDs, this command displays cross-AS BIRT information for all BFR IDs.
to bfr-id-end: Specifies the end BFR ID of the BFR ID range, in the range of 2 to 65535.
Usage guidelines
The cross-AS BFR information is learned through EBGP and does not include the configuration of the bfr-neighbor mpra command.
Examples
# Display the cross-AS BIRT information of all sub-domains.
<Sysname> display bier inter-as routing-table
Sub-domain 0
BFR ID: 2
BFR prefix/MPRA: 300::1
AS: 30
Protocol: IS-IS
Preference: N/A
BFR ID: 3
BFR prefix/MPRA: 3333::1
AS: 40
Protocol: EBGP
Preference: N/A
BFR prefix/MPRA: 300::2
AS: 40
Protocol: EBGP
Preference: N/A
BFR ID: 4
BFR prefix/MPRA: 300::1
AS: N/A
Protocol: Static
Preference: 60
Table 3 Command output
Field |
Description |
BFR ID |
BFR ID of the BFER. |
AS |
Number of AS where the BFR resides. |
BFR prefix/MPRA |
BFR prefix or MPRA of the edge node. |
Protocol |
Routing protocol that transfers cross-AS BFR information. |
Preference |
Link priority of the static route to BFR IDs reachable through a BFR neighbor. This field displays N/A for a dynamic routing protocol. |
Related commands
display bier routing-table
display bier prefix
Use display bier prefix to display the BIER information of BFR prefixes.
Syntax
display bier prefix [ prefix-ip ] [ sub-domain sub-domain-id [ bsl bsl-value ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
prefix-ip: Specifies a BFR prefix. If you do not specify a BFR prefix, this command displays the BIER information of all BFR prefixes.
sub-domain sub-domain-id: Specifies a sub-domain by its ID. If you do not specify a sub-domain ID, this command displays the BIER information of BFR prefixes in all sub-domain IDs.
bsl bsl-value: Specifies a BSL value. Valid values for the bsl-value argument are 64, 128, and 256. If you do not specify a BSL value, this command displays the BIER information of BFR prefixes for all BSL values.
Examples
# Display the BIER information of all BFR prefixes.
<Sysname> display bier prefix
Sub-domain 1
Total BFR prefixes: 2
BFR prefix: 100::1(LoopBack1)
BFR ID: 4
PHP: Disabled
Encapsulation type: G-BIER
Encapsulation MPRA: 200::1
Encapsulation:
BSL Max-SI
128 1
256 0
Inter-AS information:
AS number : 33
BFR ID range: 30 to 90, 100 to 105, 200 to 300
AS number : 40
BFR ID range: 91 to 99
BFR prefix: 100::2(LoopBack1)
BFR ID: 5
PHP: Disabled
Encapsulation type: G-BIER
Encapsulation MPRA: 300::1
Encapsulation:
BSL Max-SI
128 1
256 0
# Display the BIER information of BFR prefix 100::1.
<Sysname> display bier prefix 100::1
Sub-domain ID: 0
Total BFR prefixes: 1
BFR prefix: 100::1(LoopBack1)
BFR ID: 4
PHP: Disabled
Encapsulation type: G-BIER
Encapsulation MPRA: 200::1
Encapsulation:
BSL Max-SI
128 1
256 0
Inter-AS information:
AS number : 35
BFR ID range: 30 to 90, 100 to 105, 200 to 300
Table 4 Command output
Field |
Description |
Total BFR prefixes |
Total number of local BFR prefixes and remote BFR prefixes. |
BFR prefix(LoopBack1) |
Local BFR prefix, which is the IPv6 address of loopback interface 1. |
AS number |
Number of the AS where the reachable BFRs reside. |
BFR ID range |
BFR ID range of BIER edge devices that can be reached through the BFR neighbor. |
PHP |
BIER PHP enabling status: · Enabled. (BIER PHP cannot be enabled for the BFR in the current software version.) · Disabled. |
display bier protocol
Use display bier protocol to display the IGP that registered with BIER.
Syntax
display bier protocol
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the IGP that registered with BIER.
<Sysname> display bier protocol
Protocol Instance Address family
ISIS - IPv4/IPv6
Table 5 Command output
Field |
Description |
Instance |
IGP instance number, displayed only when the protocol is BGP. This field displays "-" for the IS-IS unicast routing protocol. |
Address family |
Address family supported by the IGP. |
Related commands
display bier sub-domain
display bier routing-table
Use display bier routing-table to display the BIER information of BFR prefixes.
Syntax
display bier routing-table [ sub-domain sub-domain-id [ bsl bsl-value ] ] [ prefix prefix-ip ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
sub-domain sub-domain-id: Specifies a sub-domain ID. If you do not specify a sub-domain ID, this command displays the BIRT information of all sub-domains.
bsl bsl-value: Specifies a BSL value. Valid values for the bsl-value argument are 64, 128, and 256. If you do not specify a BSL value, this command displays the BIRT information of all BSL values.
prefix prefix-ip: Specifies a BFR prefix. If you do not specify a BFR prefix, this command displays the BIRT information of all BFR prefixes.
verbose: Displays detailed BIRT information. If you do not specify this keyword, the command displays brief BIRT information.
Examples
# Display brief BIRT information.
<Sysname> display bier routing-table
Sub-domain 0
Total BFERs: 2
BFR ID: 1
BFR prefix: 1::2(Local)
PHP: Disabled
Flag: Active
BFR-conflicted nodes: N/A
BFR neighbors: N/A
BFR ID: 16
BFR prefix: C::C
PHP: Disabled
Flag: Active
BFR-conflicted nodes: N/A
BFR neighbors: 1
BFR prefix: C::C
Next hop list:
Out interface Next hop
XGE3/1/1 FE80::A6FA:76FF:FEF5:E0FF
XGE3/1/2 FE80::A6FA:76FF:FEF5:E0FF
# Display detailed BIRT information.
<Sysname> display bier routing-table verbose
Sub-domain 0
Total BFERs: 3
BFR ID: 1
BFR prefix: 1::2(Local)
PHP: Disabled
Flag: Active
Encapsulation type: G-BIER
Encapsulation MPRA: A::20
Encapsulation:
BSL Max-SI
64 0
256 0
BFR-conflicted nodes: N/A
BFR neighbors: N/A
BFR ID: 16
PHP:Disabled
BFR prefix: C::C
Flag: Active
Encapsulation type: G-BIER
Encapsulation MPRA: C::20
Encapsulation:
BSL Max-SI
64 0
256 1
BFR-conflicted nodes: N/A
BFR neighbors: 1
BFR prefix: C::C
Underlay protocol: IS-IS
Sub protocol: Level-1
System ID: ab00.0000.0103
Multi-topology: Standard
Process ID: 1
Next hop list:
Out interface Next hop
XGE3/1/1 FE80::A6FA:76FF:FEF5:E0FF
XGE3/1/2 FE80::A6FA:76FF:FEF5:E0FF
Table 6 Command output
Field |
Description |
BFR prefix |
(Local) indicates a local BFR prefix. If (Local) does not appear, the prefix is a remote BFR prefix. If a BFR ID conflict exists, this field displays Invalid. |
Flag |
BFER status: · Active—The BFER is available. · Conflict—A BFR ID conflict exists, and the BFER is unavailable. |
BFR-conflicted nodes |
Edge nodes that have conflicting BFR IDs. If no conflict exists, this field displays N/A. |
BFR neighbors |
If a BFR ID conflict exists, this field displays Invalid. If no BFR neighbor exists, this field displays N/A. |
Underlay protocol |
Routing protocol used to advertise BFR information. |
Multi-topology |
IS-IS IPv6 unicast topology mode: · Standard—IPv6 unicast topology standard mode. · Compatible—IPv6 unicast topology compatible mode. This value is not supported in the current software version. |
Process ID |
IS-IS process ID. |
PHP |
BIER PHP enabling status: · Enabled. (BIER PHP cannot be enabled for the BFR in the current software version.) · Disabled. |
display bier sub-domain
Use display bier sub-domain to display the BIER information of BFR prefixes.
Syntax
display bier sub-domain [ sub-domain-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
sub-domain sub-domain-id: Specifies a sub-domain by its ID. If you do not specify a sub-domain, this command displays information about all sub-domains.
Examples
# Display information about all sub-domains.
<Sysname> display bier sub-domain
Total BIER subdomains: 1
Sub-domain ID: 0
Multi-topology: Standard
Address family: IPv6
BFR prefix: 100::1(LoopBack1)
BFR ID: 1
PHP: Disabled
TTL mode: Uniform
TTL value: 0
Encapsulation type: G-BIER
Encapsulation MPRA: 200::1
Encapsulation:
BSL Max-SI
256 2
# Display information about sub-domain 1.
<Sysname> display bier sub-domain 1
Sub-domain ID: 1
Multi-topology: Standard
Address family: IPv6
BFR prefix: 100::1(LoopBack1)
BFR ID: 1
PHP: Disabled
TTL mode: Uniform
TTL value: 0
Encapsulation type: G-BIER
Encapsulation MPRA: 200::1
Encapsulation:
BSL Max-SI
128 1
256 2
Table 7 Command output
Field |
Description |
Multi-topology |
IS-IS IPv6 unicast topology mode: · Standard—IPv6 unicast topology standard mode. · Compatible—IPv6 unicast topology compatible mode. This value is not supported in the current software version. |
Address family |
Only the IPv6 address family is supported in the current software version. |
BFR prefix(LoopBack1) |
Local BFR prefix, which is the IPv6 address of loopback interface 1. |
BFR ID |
Local BFR ID. |
Encapsulation type |
BIER encapsulation type. If no encapsulation type is configured, this field displays N/A. |
Encapsulation MPRA |
MPRA used by G-BIER. If no MPRA is configured, this field displays N/A. |
Encapsulation |
Encapsulation information. If no encapsulation type is configured, this field will not appear. |
PHP |
BIER PHP enabling status: · Enabled. (BIER PHP cannot be enabled for the BFR in the current software version.) · Disabled. |
encapsulation-type
Use encapsulation-type to configure the encapsulation type, BSL, and maximum SI.
Use undo encapsulation-type to restore the default.
Syntax
encapsulation-type g-bier bsl bsl-value max-si max-si-value
undo encapsulation-type g-bier bsl bsl-value
Default
The encapsulation type, BSL, and maximum SI are not configured.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
g-bier: Specifies generalized BIER (G-BIER) as the encapsulation type.
bsl bsl-value: Specifies the BSL. Valid values for the bsl-value argument are 64, 128, and 256.
max-si max-si-value: Specifies the maximum SI. An SI can a value in the range of 0 to the maximum SI. The value range for the max-si-value argument is 0 to 255.
Usage guidelines
BFRs in the same sub-domain must have the same BSL.
If the BSL is smaller than the maximum BFR ID in a sub-domain, a set identifier (SI) is used.
The maximum SI is (Maximum BFR ID–1)/BSL rounded down to the nearest integer. For example, if the maximum BFR ID is 1024 in a BIER sub-domain and the bit string length is 256, the bit string needs to be divided into four SIs (SI 0, SI 1, SI 2 and SI 3).
As a best practice to reduce the number of Sis and the number of encapsulated packets, configure contiguous BFR IDs.
Examples
# Specify the encapsulation type G-BIER, BSL 256, and maximum SI 2.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 0 ipv6
[Sysname-bier-sub-domain-0-ipv6] encapsulation-type g-bier bsl 256 max-si 2
Related commands
display bier sub-domain
g-bier mpra
Use g-bier mpra to configure a reserved address for the G-BIER multicast policy.
Use undo g-bier mpra to restore the default.
Syntax
g-bier mpra ipv6-address
undo g-bier mpra
Default
No reserved address for the G-BIER multicast policy is configured.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies an IPv6 address as the reserved address for the G-BIER multicast policy.
Usage guidelines
Before executing this command, you must configure the encapsulation type as G-BIER by using the encapsulation-type command.
A BFR must have a unique reserved address in a sub-domain.
When the encapsulation type is G-BIER, you must configure a routable IPv6 address reserved for the G-BIER multicast policy in a sub-domain. The IPv6 address is carried in the IS-IS sub-sub-TLV to be advertised to neighbors as the destination IPv6 address in G-BIER packets.
When a BFR receives a G-BIER packet, it compares the destination IPv6 address in the packet with the configured IPv6 address. If they are the same, the BFR performs BIER forwarding on the packet. If they are different, the BFR performs IP forwarding on the packet.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Configure 2001:0:5054:ff::fe5c:8350 as the reserved address for the G-BIER multicast policy.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 0 ipv6
[Sysname-bier-sub-domain-0-ipv6] encapsulation-type g-bier bsl 256 max-si 2
[Sysname-bier-sub-domain-0-ipv6] g-bier mpra 2001:0:5054:ff::fe5c:8350
Related commands
display bier sub-domain
encapsulation-type
import-bier
Use import-bier to enable BGP to redistribute the BIER information from an IGP.
Use undo import-bier to disable BGP from redistributing the BIER information from an IGP.
Syntax
import-bier isisv6 { process-id | all-processes }
undo import-bier isisv6 { process-id | all-processes }
Default
BGP does not redistribute the BIER information from an IGP.
Views
BGP IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
isisv6: Redistributes the BIER information of IPv6 IS-IS routes.
process-id: Specifies a process by its number in the range of 1 to 65535.
all-processes: Redistributes the BIER information from all processes of the specified routing protocol.
Usage guidelines
The imported BIER information includes the BFR ID range information. The following rules apply to the inclusion of BFR ID range information when BGP routes generated based on the BIER information are advertised:
· If BGP BFR prefix proxying is not enabled:
¡ The BFR ID range information is not included when BGP routes are advertised to an IBGP peer.
¡ The BFR ID range information is included when BGP routes are advertised to an EBGP peer.
· If BGP BFR prefix proxying is enabled, the BFR ID range information is included when BGP routes are advertised to either an EBGP peer or an IBGP peer.
After you redistribute the BIER information from all processes of a routing protocol by using the all-processes keyword, this command does not take effect on any processes of the protocol.
Before executing this command, you must execute the bier enable command.
Examples
# In the BGP IPv6 unicast address family, redistribute the BIER information from a process 1 of IPv6 IS-IS.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv6 unicast
[Sysname-bgp-default-ipv6] bier enable
[Sysname-bgp-default-ipv6] import-bier isisv6 1
Related commands
bier enable
peer capability bier
Use peer capability bier to enable the device to exchange routes with BIER path attributes with a peer or peer group.
Use undo peer capability bier to disable the device from exchanging routes with BIER path attributes with a peer or peer group.
Syntax
peer { group-name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } capability bier
undo peer { group-name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } capability bier
Default
The device cannot exchange routes with BIER path attributes with any peers or peer groups.
Views
BGP IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created.
ipv4-address: Specifies a peer by its IPv4 address. The peer must have been created.
mask-length: Specifies a mask length in the range of 0 to 32. You can use the ipv4-address and mask-length arguments together to specify a subnet. If you specify a subnet, this command specifies all dynamic peers in the subnet.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
prefix-length: Specifies a prefix length in the range of 0 to 128. You can use the ipv6-address and prefix-length arguments together to specify a subnet. If you specify a subnet, this command specifies all dynamic peers in the subnet.
Usage guidelines
With this command executed, BGP will advertise received BIER information to the BIER module for it to generate a BIRT, which guides the forwarding of multicast packets.
The device cannot exchange routes with BIER path attributes with peers or peer groups other than the specified peer or peer group.
Before executing this command, you must execute the bier enable command.
Examples
# Enable BGP to exchange routes with BIER path attributes with a peer or peer group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv6 unicast
[Sysname-bgp-default-ipv6] bier enable
[Sysname-bgp-default-ipv6] peer 2001::1 capability bier
Related commands
bier enable
reset bier forward ipv6 statistics
Use reset bier forward ipv6 statistics to clear BIER packet statistics.
Syntax
In standalone mode:
reset bier forward ipv6 statistics [ slot slot-number [ cpu cpu-number ] ]
In IRF mode:
reset bier forward ipv6 statistics [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
Views
User view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command clears BIER packet statistics for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays BIER packet statistics for all cards. (In IRF mode.)
cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.
Examples
# Clear BIER packet statistics.
<Sysname> reset bier forward ipv6 statistics
Related commands
display bier forward ipv6 statistics
sub-domain
Use sub-domain to assign the device to a sub-domain and enter sub-domain view.
Use undo sub-domain to remove the device from the sub-domain.
Syntax
sub-domain sub-domain-id ipv6
undo sub-domain sub-domain-id
Default
The device does not belong to any sub-domain.
Views
BIER view
Predefined user roles
network-admin
Parameters
sub-domain-id: Specifies a sub-domain by its ID in the range of 0 to 255.
ipv6: Indicates that the device is in an IPv6 network.
Usage guidelines
All BFRs in a network are referred to as a BIER domain. A BIER domain can contain one or more sub-domains.
To use BIER, you must assign the device to one or more sub-domains.
The maximum number of sub-domains supported on a device is 8.
Examples
# Assign the device to sub-domain 2.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 2 ipv6
[Sysname-bier-sub-domain-2-ipv6]
ttl-mode
Use ttl-mode to configure a TTL processing mode.
Use undo ttl-mode to restore the default.
Syntax
ttl-mode { pipe ttl ttl-value | uniform }
undo ttl-mode
Default
On a BFIR, the TTL processing mode is pipe and the TTL is 255. On a BFER, the TTL processing mode is uniform.
Views
BIER sub-domain view
Predefined user roles
network-admin
Parameters
pipe ttl-value: Specifies the pipe mode. The value range for the ttl-value argument is 1 to 255. On a BFER, the ttl-value argument does not take effect.
uniform: Specifies the uniform mode.
Usage guidelines
When acting as a public network tunnel, a BIER can process TTLs in the following modes:
· uniform—When the ingress node of a public network tunnel adds a BIER header to a multicast packet, it copies the TTL value to the TTL field of the BIER packet. When a BFER decapsulates the BIER packet, it copies the TTL value back to the TTL field of the multicast packet. In this mode, nodes in the public network are visible to packets in the user network. The TTL value of the BIER packet decreases by 1 per hop in the BIER tunnel. A tracert operation can display the actual path that the packet travels.
· pipe—When the ingress node of a public network tunnel adds a BIER header to a multicast packet, it populates the TTL field in the BIER with the configured TTL value instead of copying the TTL value of the multicast packet. When a BFER decapsulates the BIER packet, it does not modify the TTL value the multicast packet. In this mode, nodes in the public network are invisible to packets in the user network. The TTL value of the BIER packet decreases by 1 per hop in the BIER tunnel. A tracert operation does not display each node in the public network so the public network structure is hidden.
The BFIR and BFERs must be configured with the same TTL processing mode.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify the TTL processing mode as pipe and set the TTL to 255.
<Sysname> system-view
[Sysname] bier
[Sysname-bier] sub-domain 0 ipv6
[Sysname-bier-sub-domain-1-ipv6] ttl-mode pipe ttl 255
Related commands
display bier sub-domain