FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
vnet/vnet/mpls

mpls local-label

Summary/usage

Create/Delete MPL local labels.

Declaration and implementation

Declaration: mpls_local_label_command (vnet/vnet/mpls/mpls.c line 476)

Implementation: vnet_mpls_local_label.

mpls tunnel

Summary/usage

mpls tunnel via [addr] [interface] [out-labels].

Description

This command create a uni-directional MPLS tunnel

Example usage
vpp# create mpls tunnel
 create mpls tunnel via 10.0.0.1 GigEthernet0/8/0 out-label 33 out-label 34

Declaration and implementation

Declaration: create_mpls_tunnel_command (vnet/vnet/mpls/mpls_tunnel.c line 630)

Implementation: vnet_create_mpls_tunnel_command_fn.

set interface mpls

Summary/usage

Enable/Disable an interface for MPLS forwarding.

Description

This command enables an interface to accpet MPLS packets

Example usage
vpp# set interface mpls
 set interface mpls GigEthernet0/8/0 enable

Declaration and implementation

Declaration: set_interface_ip_table_command (vnet/vnet/mpls/interface.c line 117)

Implementation: mpls_interface_enable_disable.

show mpls tunnel

Description

This command to show MPLS tunnels

Example usage
vpp# sh mpls tunnel 2
[@2] mpls_tunnel2: sw_if_index:5 hw_if_index:5
 label-stack:
   3, 
 via:
  index:26 locks:1 proto:ipv4 uPRF-list:26 len:1 itfs:[2, ]
    index:26 pl-index:26 ipv4 weight=1 attached-nexthop:  oper-flags:resolved,
     10.0.0.2 loop0
        [@0]: ipv4 via 10.0.0.2 loop0: IP4: de:ad:00:00:00:00 -> 00:00:11:aa:bb:cc

Declaration and implementation

Declaration: show_mpls_tunnel_command (vnet/vnet/mpls/mpls_tunnel.c line 717)

Implementation: show_mpls_tunnel_command_fn.