/
Labeled BGP Support

Labeled BGP Support


Labeled BGP Support

Restrictions 

  • The Pica8 Switch supports only the client functionality of RFC 3107 and not its area border router (ABR) functionality.
  • The Pica8 Switch does not support two label-pop (Label pop is the process of removing label header).
  • MPLS label push is not supported.
  • MPLS Ping and MPLS traceroute is not supported.

Overview 

The Labeled BGP Support feature provides the option to use the BGP update message (that is used to distribute the route) to re-distribute Multiprotocol Label Switching (MPLS) label mapped to that route. The label mapping information is added (using send-label option of RFC 3107) to the same BGP message that is used to distribute the route. This process is useful in inter-domain routing.

 

How to Configure 

Procedure

 

Command or Action

Purpose

Step1

configure terminal

Example:

admin@XorPlus> configure

Enters the global configuration mode.

Step2

set protocols bgp bgp-id <IPv4>

Example:

admin@XorPlus# set protocols bgp bgp-id 1.1.1.1

Configure BGP router-id

Step3

set protocols bgp local-as <text>

Example:

admin@XorPlus# set protocols bgp local-as 1

Configure bgp AS Number,it have two type: <1..4294967295> or 4-byte-as-number  <0..65535>.<0..65535>

Step4

set protocols bgp peer <peer ip address> as <as-number>

Example:

admin@XorPlus# set protocols bgp peer 1.1.1.1 as 1

Configure BGP peer and specify the as number of the BGP peer

Step5

set protocols bgp peer <peer ip address> local-ip <ip-addess>

Example:

admin@XorPlus# set protocols bgp peer 1.1.1.1 local-ip 2.2.2.2

Configure BGP peer and specify the local-IP address for this BGP peer

Step6

set protocols bgp peer <peer ip address> ipv4-label-unicast/ ipv6-label-unicast  <true/false>

Example:

admin@XorPlus# set protocols bgp peer 1.1.1.1 ipv4-label-unicast true

 

 

Configures the Pica8 Switch to associate a BGP label to the prefix

Step7

set protocols mpls in-label [16..1048575] connect/connect6 <IPv4Net>/<IPv6Net>

Example:

admin@XorPlus# set protocols mpls in-label 44 connect 192.168.2.0/24

Configure the MPLS label mapping for the top level label, then the destination network will associate with the top level mpls label

Step8

set protocols mpls in-label [16..1048575] next-hop  <IPv4>/ <IPv6>

Example:

admin@XorPlus# set protocols mpls in-label 44 next-hop 1.1.1.1

Configure the MPLS label mapping where MPLS packet out of border BGP router, the next-hop indicate where the MPLS packet will be forwarded and with a label you configured




Copyright © 2025 Pica8 Inc. All Rights Reserved.