/
IPV6 Labeled-BGP Configuration

IPV6 Labeled-BGP Configuration


Scenario 1:Incoming three layer label

 

 

Step 1:Configure Loopback interface

switchA:

admin@XorPlus#set vlan-interface loopback address 2828::28 prefix-length 128

switchB:

admin@XorPlus#set vlan-interface loopback address 1717::17 prefix-length 128

switchC:

admin@XorPlus#set vlan-interface loopback address 3131::31 prefix-length 128

Step 2:Configure Vlan-interface

switchA:

admin@XorPlus#set vlans vlan-id 200 l3-interface "vlan200"
admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlan-interface interface vlan200 vif vlan200 address 2001::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/6 family ethernet-switching native-vlan-id 300
admin@XorPlus#set interface gigabit-ethernet te-1/1/38 family ethernet-switching native-vlan-id 200

switchB:

admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::2 prefix-length 64 
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::2 prefix-length 64 
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching native-vlan-id 500 
admin@XorPlus#set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 300

switchC:

admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlans vlan-id 700 l3-interface "vlan700"
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan700 vif vlan700 address 7000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/46 family ethernet-switching native-vlan-id 500
admin@XorPlus#set interface gigabit-ethernet te-1/1/48 family ethernet-switching native-vlan-id 700

Step 3:Configure static route on switchA,B,C, So that the loopback interface could be reachable

switchA:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 3000::2

switchB:

admin@XorPlus#set protocols static route 3131::31/128 next-hop 5000::1
admin@XorPlus#set protocols static route 2828::28/128 next-hop 3000::1

switchC:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 5000::2

Step 4.Configure BGP

switchA:

admin@XorPlus#set protocols bgp bgp-id 28.28.28.28
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp fast-external-fallover disable true
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "2828::28"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

switchB:

admin@XorPlus#set protocols bgp bgp-id 17.17.17.17
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp route-reflector cluster-id 17.17.17.17
admin@XorPlus#set protocols bgp peer 2828::28 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 2828::28 as "17"
admin@XorPlus#set protocols bgp peer 2828::28 next-hop-self true
admin@XorPlus#set protocols bgp peer 2828::28 client true
admin@XorPlus#set protocols bgp peer 2828::28 ipv6-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 3131::31 as "17"
admin@XorPlus#set protocols bgp peer 3131::31 next-hop-self true
admin@XorPlus#set protocols bgp peer 3131::31 client true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-unicast true

switchC:

admin@XorPlus#set protocols bgp bgp-id 31.31.31.31
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "3131::31"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

Step 5:Enable Labeled-BGP on switchA,B,C

switchA:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

switchB:

admin@XorPlus#set protocols bgp peer 2828::28 ipv6-label-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-label-unicast true

switchC:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

Step 6:switchA distribute a bgp route

switchA:

admin@XorPlus#set protocols bgp network6 2001::/64

Step 7:Check BGP route table

switchA:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 :: nolabel/nolabel
admin@XorPlus#

switchB:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 2828::28 19/imp-null
admin@XorPlus#

switchC:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 1717::17 19/19
admin@XorPlus#

Step 8:Check mpls forwarding table on switchA,B,C

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus#

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

Step 9:Configure MPLS label mapping on switchC

switchC:

admin@XorPlus#set protocols mpls in-label 1000 connect6 2001::/64

Note : The label 1000 is the top label that incoming BGP domain

Step 10:Configure MPLS label mapping on switchA

admin@XorPlus#set protocols mpls in-label 2000 next-hop6 2001::2

Note : The label 2000 is the second-level label that incoming BGP domain , and it's the outgoing label that out of BGP domain,the next-hop is indicate the next-hop ip address where the mpls packet forwarding and with a label 2000

Step 11:Check the mpls forwarding table on switchA ,B,C

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
2000 2000 -- -- 2001::2
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus# 

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
1000 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

Step 12:H2 send mpls packet with 3-level mpls label

Step13.Check the packet out of switchA, the top label 1000 will be popped at the Penultimate Hop


Scenario 2:Incoming two layer label

 

Step 1:Configure Loopback interface

switchA:

admin@XorPlus#set vlan-interface loopback address 2828::28 prefix-length 128

switchB:

admin@XorPlus#set vlan-interface loopback address 1717::17 prefix-length 128

switchC:

admin@XorPlus#set vlan-interface loopback address 3131::31 prefix-length 128

Step 2:Configure Vlan-interface

switchA:

admin@XorPlus#set vlans vlan-id 200 l3-interface "vlan200"
admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlan-interface interface vlan200 vif vlan200 address 2001::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/6 family ethernet-switching native-vlan-id 300
admin@XorPlus#set interface gigabit-ethernet te-1/1/38 family ethernet-switching native-vlan-id 200

switchB:

admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::2 prefix-length 64 
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::2 prefix-length 64 
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching native-vlan-id 500 
admin@XorPlus#set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 300 

switchC:

admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlans vlan-id 700 l3-interface "vlan700"
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan700 vif vlan700 address 7000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/46 family ethernet-switching native-vlan-id 500
admin@XorPlus#set interface gigabit-ethernet te-1/1/48 family ethernet-switching native-vlan-id 700


Step 3:Configure static route on switchA,B,C, So that the loopback interface could be reachable

switchA:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 3000::2

switchB:

admin@XorPlus#set protocols static route 3131::31/128 next-hop 5000::1
admin@XorPlus#set protocols static route 2828::28/128 next-hop 3000::1

switchC:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 5000::2

Step 4.Configure BGP

switchA:

admin@XorPlus#set protocols bgp bgp-id 28.28.28.28
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp fast-external-fallover disable true
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "2828::28"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

switchB:

admin@XorPlus#set protocols bgp bgp-id 17.17.17.17
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp route-reflector cluster-id 17.17.17.17
admin@XorPlus#set protocols bgp peer 2828::28 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 2828::28 as "17"
admin@XorPlus#set protocols bgp peer 2828::28 next-hop-self true
admin@XorPlus#set protocols bgp peer 2828::28 client true
admin@XorPlus#set protocols bgp peer 2828::28 ipv6-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 3131::31 as "17"
admin@XorPlus#set protocols bgp peer 3131::31 next-hop-self true
admin@XorPlus#set protocols bgp peer 3131::31 client true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-unicast true

switchC:

admin@XorPlus#set protocols bgp bgp-id 31.31.31.31
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "3131::31"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

Step 5:Enable Labeled-BGP on switchA,B,C:

switchA:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

switchB:

admin@XorPlus#set protocols bgp peer 2828::28 ipv6-label-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-label-unicast true

switchC:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

Step 6:A distribute a bgp route

switchA:

admin@XorPlus#set protocols bgp network6 2001::/64

Step 7:Check BGP route table

switchA:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 :: nolabel/nolabel
admin@XorPlus#

switchB:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 2828::28 19/imp-null
admin@XorPlus#

switchC:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 1717::17 19/19
admin@XorPlus#

Step 8:Check mpls forwarding table on switchA,B,C:

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus#

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

Step 9:Configure MPLS label mapping on switchC

switchC:

admin@XorPlus#set protocols mpls in-label 1000 connect6 2001::/64

Note : The label 1000 is the top label that incoming BGP domain

Step 10:Configure MPLS label mapping on switchA

admin@XorPlus#set protocols mpls in-label 2000 next-hop6 2001::2

Note : The label 2000 is the second-level label that incoming BGP domain , and it's the outgoing label that out of BGP domain,the next-hop is indicate the next-hop ip address where the mpls packet forwarding and with a label 2000

Step 11:Check the mpls forwarding table on A ,B,C

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
2000 2000 -- -- 2001::2
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus# 

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
1000 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#


Step 12:H2 send mpls packet with 2-level mpls label

Step 13.Check the packet out of A, the top label 1000 will be popped at the Penultimate Hop


Scenario 3:Incoming one layer label

 

 

Step 1:Configure Loopback interface

switchA:

admin@XorPlus#set vlan-interface loopback address 2828::28 prefix-length 128

switchB:

admin@XorPlus#set vlan-interface loopback address 1717::17 prefix-length 128

switchC:

admin@XorPlus#set vlan-interface loopback address 3131::31 prefix-length 128

Step 2:Configure Vlan-interface

switchA:

admin@XorPlus#set vlans vlan-id 200 l3-interface "vlan200"
admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlan-interface interface vlan200 vif vlan200 address 2001::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/6 family ethernet-switching native-vlan-id 300
admin@XorPlus#set interface gigabit-ethernet te-1/1/38 family ethernet-switching native-vlan-id 200

switchB:

admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::2 prefix-length 64 
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::2 prefix-length 64 
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching native-vlan-id 500 
admin@XorPlus#set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 300

switchC:

admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlans vlan-id 700 l3-interface "vlan700"
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan700 vif vlan700 address 7000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/46 family ethernet-switching native-vlan-id 500
admin@XorPlus#set interface gigabit-ethernet te-1/1/48 family ethernet-switching native-vlan-id 700


Step 3:Configure static route on switchA,B,C, So that the loopback interface could be reachable

switchA:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 3000::2

switchB:

admin@XorPlus#set protocols static route 3131::31/128 next-hop 5000::1
admin@XorPlus#set protocols static route 2828::28/128 next-hop 3000::1

switchC:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 5000::2

Step 4.Configure BGP

switchA:

admin@XorPlus#set protocols bgp bgp-id 28.28.28.28
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp fast-external-fallover disable true
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "2828::28"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

switchB:

admin@XorPlus#set protocols bgp bgp-id 17.17.17.17
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp route-reflector cluster-id 17.17.17.17
admin@XorPlus#set protocols bgp peer 2828::28 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 2828::28 as "17"
admin@XorPlus#set protocols bgp peer 2828::28 next-hop-self true
admin@XorPlus#set protocols bgp peer 2828::28 client true
admin@XorPlus#set protocols bgp peer 2828::28 ipv6-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 3131::31 as "17"
admin@XorPlus#set protocols bgp peer 3131::31 next-hop-self true
admin@XorPlus#set protocols bgp peer 3131::31 client true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-unicast true

switchC:

admin@XorPlus#set protocols bgp bgp-id 31.31.31.31
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "3131::31"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

Step 5:Enable Labeled-BGP on switchA,B,C:

switchA:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

switchB:

admin@XorPlus#set protocols bgp peer 2828::28 ipv6-label-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-label-unicast true

switchC:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

Step 6:A distribute a bgp route

switchA:

admin@XorPlus#set protocols bgp network6 2001::/64

Step 7:Check BGP route table

switchA:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 :: nolabel/nolabel
admin@XorPlus#

switchB:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 2828::28 19/imp-null
admin@XorPlus#

switchC:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 1717::17 19/19
admin@XorPlus#

Step 8:Check mpls forwarding table on switchA,B,C:

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus#

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

Step 9:Configure MPLS label mapping on switchC

switchC:

admin@XorPlus#set protocols mpls in-label 1000 connect6 2001::/64

Note : The label 1000 is the top label that incoming BGP domain

Step 10:Configure MPLS label mapping on switchA

admin@XorPlus#set protocols mpls in-label 2000 next-hop6 2001::2

Note : The label 2000 is the second-level label that incoming BGP domain , and it's the outgoing label that out of BGP domain,the next-hop is indicate the next-hop ip address where the mpls packet forwarding and with a label 2000

Step 11:Check the mpls forwarding table on switchA,B,C

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
2000 2000 -- -- 2001::2
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus# 

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
1000 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

 

Step 12:H2 send mpls packet with 1-level mpls label

Step 13.Check the packet out of A, the top label 1000 will be popped at the Penultimate Hop

 

Scenario 4:Incoming IPv6 packet with no label

 

 

 

Step 1:Configure Loopback interface

switchA:

admin@XorPlus#set vlan-interface loopback address 2828::28 prefix-length 128

switchB:

admin@XorPlus#set vlan-interface loopback address 1717::17 prefix-length 128

switchC:

admin@XorPlus#set vlan-interface loopback address 3131::31 prefix-length 128

Step 2:Configure Vlan-interface

switchA:

admin@XorPlus#set vlans vlan-id 200 l3-interface "vlan200"
admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlan-interface interface vlan200 vif vlan200 address 2001::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/6 family ethernet-switching native-vlan-id 300
admin@XorPlus#set interface gigabit-ethernet te-1/1/38 family ethernet-switching native-vlan-id 200

switchB:

admin@XorPlus#set vlans vlan-id 300 l3-interface "vlan300"
admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlan-interface interface vlan300 vif vlan300 address 3000::2 prefix-length 64 
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::2 prefix-length 64 
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching native-vlan-id 500 
admin@XorPlus#set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 300 

switchC:

admin@XorPlus#set vlans vlan-id 500 l3-interface "vlan500"
admin@XorPlus#set vlans vlan-id 700 l3-interface "vlan700"
admin@XorPlus#set vlan-interface interface vlan500 vif vlan500 address 5000::1 prefix-length 64
admin@XorPlus#set vlan-interface interface vlan700 vif vlan700 address 7000::1 prefix-length 64
admin@XorPlus#set interface gigabit-ethernet te-1/1/46 family ethernet-switching native-vlan-id 500
admin@XorPlus#set interface gigabit-ethernet te-1/1/48 family ethernet-switching native-vlan-id 700

Step 3:Configure static route on switchA,B,C, So that the loopback interface could be reachable

switchA:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 3000::2

switchB:

admin@XorPlus#set protocols static route 3131::31/128 next-hop 5000::1
admin@XorPlus#set protocols static route 2828::28/128 next-hop 3000::1

switchC:

admin@XorPlus#set protocols static route 1717::17/128 next-hop 5000::2

Step 4.Configure BGP

switchA:

admin@XorPlus#set protocols bgp bgp-id 28.28.28.28
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp fast-external-fallover disable true
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "2828::28"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

switchB:

admin@XorPlus#set protocols bgp bgp-id 17.17.17.17
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp route-reflector cluster-id 17.17.17.17
admin@XorPlus#set protocols bgp peer 2828::28 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 2828::28 as "17"
admin@XorPlus#set protocols bgp peer 2828::28 next-hop-self true
admin@XorPlus#set protocols bgp peer 2828::28 client true
admin@XorPlus#set protocols bgp peer 2828::28 ipv6-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 local-ip "1717::17"
admin@XorPlus#set protocols bgp peer 3131::31 as "17"
admin@XorPlus#set protocols bgp peer 3131::31 next-hop-self true
admin@XorPlus#set protocols bgp peer 3131::31 client true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-unicast true

switchC:

admin@XorPlus#set protocols bgp bgp-id 31.31.31.31
admin@XorPlus#set protocols bgp local-as "17"
admin@XorPlus#set protocols bgp peer 1717::17 local-ip "3131::31"
admin@XorPlus#set protocols bgp peer 1717::17 as "17"
admin@XorPlus#set protocols bgp peer 1717::17 next-hop-self true
admin@XorPlus#set protocols bgp peer 1717::17 ipv6-unicast true

Step 5:Enable Labeled-BGP on switchA,B,C:

switchA:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

switchB:

admin@XorPlus#set protocols bgp peer 2828::28 ipv6-label-unicast true
admin@XorPlus#set protocols bgp peer 3131::31 ipv6-label-unicast true

switchC:

admin@XorPlus#set protocols bgp peer 1717::17 ipv6-label-unicast true

 

Step 6:A distribute a bgp route

switchA:

admin@XorPlus#set protocols bgp network6 2001::/64

Step 7:Check BGP route table

switchA:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 :: nolabel/nolabel
admin@XorPlus#

switchB:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 2828::28 19/imp-null
admin@XorPlus#

switchC:

admin@XorPlus# run show bgp routes ipv6 label 
Status Codes: * valid route, > best route
Prefix Nexthop In-label/Out-label
---------------------------- ------------------------ ---------------------------
*> 2001::/64 1717::17 19/19
admin@XorPlus#

Step 8:Check mpls forwarding table on switchA,B,C:

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 imp-null 2001::/64 te-1/1/2 3000::1
admin@XorPlus#

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all 
In-label Out-label Destination Outgoing-Interface Next Hop
-------- --------- ----------- ------------------ --------
19 19 2001::/64 te-1/1/44 5000::2
admin@XorPlus#

Step 9:Configure MPLS label mapping on switchC

switchC:

admin@XorPlus#set protocols mpls in-label 1000 connect6 2001::/64

Note : The label 1000 is the top label that incoming BGP domain

Step 10:Configure MPLS label mapping on switchA

admin@XorPlus#set protocols mpls in-label 2000 next-hop6 2001::2

Note : The label 2000 is the second-level label that incoming BGP domain , and it's the outgoing label that out of BGP domain,the next-hop is indicate the next-hop ip address where the mpls packet forwarding and with a label 2000.

Step 11:Check the mpls forwarding table on switchA ,B,C

switchA:

admin@XorPlus# run show mpls forwarding-table ipv6 all
In-label  Out-label  Destination         Outgoing-Interface  Next Hop
--------  ---------  -----------         ------------------  --------
2000      2000       --                  --                  2001::2
admin@XorPlus#

switchB:

admin@XorPlus# run show mpls forwarding-table ipv6 all
In-label  Out-label  Destination         Outgoing-Interface  Next Hop
--------  ---------  -----------         ------------------  --------
19        imp-null   2001::/64           te-1/1/2            3000::1
admin@XorPlus#

switchC:

admin@XorPlus# run show mpls forwarding-table ipv6 all
In-label  Out-label  Destination         Outgoing-Interface  Next Hop
--------  ---------  -----------         ------------------  --------
19        19         2001::/64           te-1/1/44           5000::2
1000      19         2001::/64           te-1/1/44           5000::2
admin@XorPlus#

Step 12:H2 send IPv6 packet with no-label

Step 13.Check the packet out of switchA

 

 

 

 

 

 

Copyright © 2025 Pica8 Inc. All Rights Reserved.