MPLS
Note
This command belongs to the shell mode for newer (logical-table) switch chips and is not available on Trident 3.
Manage MPLS
Built-in help
mpls init
- Init MPLS software system.
mpls cleanup
- Detach MPLS software system.
mpls vpn create vpws VPN=<vpn_id>
- Create VPWS vpn with given id.
mpls vpn create vpls VPN=<vpn_id> BroadcastGroup=<bcast_id>
[Policer=<policer_id>]
- Create VPLS vpn with given id and broadcast group.
mpls vpn port add VPN=<vpn_id> [MplsPortId=<mpls_port_id>]
[Port=<port>] [PortGroup=<port_group>]
PortMatch=<pm>
[IntfFlaGs=<flags>] [VCInitLabel=<vcinit_label>]
[EgrLabelOptions=<labelopt>]
[VCTermLabel=<vcterm_label>] [Vlan=<vlan>]
[TunnelId=<tunnel_id>]
[EgrTTL=<egress_ttl>] [QoSMapID=<qos_map_id>]
[ServiceVID=<vlan>] [ServiceTPID=<tpid>]
[IntfCLass=<val>] [EXPMapPtr=<exp_ptr>] [IntPRI=<pri>]
[InnerVLAN=<vid>] [MTU=<val>] [EgrObj=<egress_obj_id>]
[EncapId=<encap_id>] [TunnelId=<tunnel_id>]
- Add a port to VPN.
mpls vpn port delete VPN=<vpn_id> MplsPort=<mpls_port_id>
- Delete an MPLS port from vpn.
mpls vpn destroy VPN=<vpn_id>
- Destroy a vpn.
mpls vpn show VPN=<vpn_id>
- Show VPN info.
mpls tunnel init set EgrTunnelLabel=<egr_tun_label>
EgrLabelOptions=<egr_label_opt>
EgrTTL=<egre_ttl> INtf=<intf_id>
- Initiate tunnel.
mpls tunnel init clear INtf=<intf_id>
- Clear tunnel.
mpls tunnel switch add SwitchOptions=<label_switch_opt>
ACTion=<act> Port=<gport>
EXPMapPtr=<exp_ptr> IntPRI=<pri>
IngLabel=<label> IngInnerLabel=<inner_label>
IngIntf=<ingress_interface>
EgrLabel=<egr_label>
EgrLabelOptions=<labelopt> EgrLabelTTL=<ttl>
EgrLabelEXP=<exp>
EgrObject=<egr_object_id> VPN=<vpn_id>
- Add ILM for ingress label.
mpls tunnel switch del IngLabel=<label>
- Delete ILM.
mpls tunnel encap create EncapId=<encap_id>
[EncapOptions=<encapopt>]
EgrTunnelLabel=<label> EgrTTL=<ttl>
EgrLabelOptions=<labelopt>
- Create MPLS tunnel encap.
mpls tunnel encap show EncapId=<encap_id>
- Show MPLS tunnel encap.
mpls tunnel encap delete EncapId=<encap_id>
- Delete MPLS tunnel encap.
mpls options Type=[PORT|PortMatch|MplsSwitch|MplsEgressLabel|MplsTunnelEncap]
- List various options/flags used in mpls commands.