OcNOS SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : MPLS Service Mapping Commands
MPLS Service Mapping Commands
This chapter describes each MPLS Service Mapping command.
color
mode
color
Use this command to set color value for a tunnel policy. This value will be used while selecting transport for given service.
Use the no parameter with this command to un-configure color value for tunnel policy.
Command Syntax
color <1-4294967295>
no color <1-4294967295>
Parameters
color
Configure color code
Command Mode
Tunnel policy mode
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#tunnel-policy policy1
(config-tnl-policy)#color 23
 
mode
Use this command to set tunnel selection mode for a tunnel policy. This will be used while selecting transport for given service. Mode can be dedicated or best-effort.
Use the no parameter with this command to set mode to default mode.
Command Syntax
mode dedicated|best-effort
no mode
Parameters
best-effort
Best effort tunnel selection mode
dedicated
Dedicated tunnel selection mode (Default)
Default
Dedicated
Command Mode
Tunnel policy mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
#configure terminal
(config)#tunnel-policy policy1
(config-tnl-policy)# mode best-effort
mpls 6pe tunnel-select-policy
Use this command to set tunnel-policy for a 6PE services. This will be used while selecting transport for 6PE services. Use the no parameter with this command to unconfigure tunnel selection policy for 6PE.
Command Syntax
mpls 6pe tunnel-select-policy NAME
Parameters
NAME
Name of tunnel-policy
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
#configure terminal
(config)# mpls 6pe tunnel-select-policy policy1
 
 
show running-config tunnel-policy
Use this command to display the current running configuration of all tunnel policies.
Command Syntax
show running-config tunnel-policy
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
#show running-config tunnel-policy
!
tunnel-policy tp1
color 1
!
 
show tunnel-policy
Use this command to display the tunnel policy details.
Command Syntax
show tunnel-policy (NAME (service (((6pe|vpls|vpws|evpn|l3vpn|) details)) | (count)))| service details |)
Parameters
NAME
show tunnel policy table by name
service
show service information
6pe
Display 6PE service details
evpn
Display EVPN service details
l3vpn
Display L3VPN service details
vpls
Display VPLS service details
vpws
Display VPWS service details
count
show counts
details
show details
service
show service information
details
show details
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
The following sample shows the summary of all configured tunnel policies.
 
#show tunnel-policy
tunnel-policy tp1
color 1
tunnel-mode dedicated
tunnel-type any
Total Services attached:
VRF : 1
VPWS : 1
VPLS : 1
EVPN :
 
The following sample shows the summary of specific configured tunnel policy by name.
 
#show tunnel-policy tp1
tunnel-policy tp1
color 1
tunnel-mode dedicated
tunnel-type any
Total Services attached:
VRF : 1
VPWS : 1
VPLS : 1
EVPN : 0
 
The following sample shows the detailed information of all the configured tunnel policies.
#show tunnel-policy service details
List of services configured with tunnel-policy tp1:
VPWS
VPWS-Id: 100, Name: vpws1 Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
L3VPN
VRF id 2
FTN id: 1, Prefix: 20.10.30.0/24, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
FTN id: 2, Prefix: 3001::/64, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
VPLS
VPLS-Id: 300, Name: vpls1, Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
The following sample shows the detailed information of specific configured tunnel policy by name.
# show tunnel-policy tp1 service details
Total services using tunnel-policy tp1:
VPWS
VPWS-Id: 100, Name: vpws1 Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
L3VPN
VRF id 2
FTN id: 1, Prefix: 20.10.30.0/24, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
FTN id: 2, Prefix: 3001::/64, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
VPLS
VPLS-Id: 300, Name: vpls1, Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
The following sample shows the services count of specific tunnel policy by name.
#show tunnel-policy tp1 service count
Total services using tunnel-policy tp1:
VPWS : 1
VPLS : 0
L3VPN : 2
6PE : 0
EVPN : 0
 
The following sample shows the detailed VPLS service information of specific tunnel policy by name.
#show tunnel-policy tp1 service vpls details
Total services using tunnel-policy tp1:
VPLS
VPLS-Id: 300, Name: vpls1, Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
The following sample shows the detailed VPWS service information of specific tunnel policy by name.
#show tunnel-policy tp1 service vpws details
Total services using tunnel-policy tp1:
VPWS
VPWS-Id: 100, Name: vpws1 Status: UP, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
The following sample shows the detailed L3VPN service information of specific tunnel policy by name.
#show tunnel-policy tp1 service l3vpn details
Total services using tunnel-policy tp1:
L3VPN
VRF id 2
FTN id: 1, Prefix: 20.10.30.0/24, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
FTN id: 2, Prefix: 3001::/64, Status: Up, Label: 25664, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
 
The following sample shows the detailed 6PE service information of specific tunnel policy by name.
#show tunnel-policy tp1 service 6pe details
Total services using tunnel-policy tp1:
6PE
FTN id: 3, Prefix: 3002::/64, Status: Up, Label: 25665, Mapped Tunnel: RSVP, ftn_ix 4, color 1
 
The following sample shows the detailed EVPN service information of specific tunnel policy by name.
#show tunnel-policy tp1 service evpn details
Total services using tunnel-policy tp1:
EVPN
EVPN-Id: 30, Tunnel count: 1
Peer: 105.1.1.1, Mapped Tunnel: SR_POLICY, ftn_ix 3, color 202
EVPN-Id: 1001, Tunnel count: 2
Peer: 105.1.1.1, Mapped Tunnel: SR_POLICY, ftn_ix 3, color 202 Peer: 101.1.1.1, Mapped Tunnel: SR_POLICY, ftn_ix 4, color 204
 
 
 
 
 
tunnel-policy
Use this command to create a tunnel policy.
Use the no parameter with this command to un-configure the tunnel policy. Tunnel policy can be un-configured only if no service is using it.
Command Syntax
tunnel-policy NAME
no tunnel-policy NAME
Parameters
NAME
Name to be used for tunnel policy
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#tunnel-policy policy1
 
tunnel-select-policy (For L3VPN service)
Use this command to set tunnel-policy for a VRF instance. This will be used while selecting transport for L3VPN service.
Use the no parameter with this command to un-configure tunnel-policy from VRF instance.
Command Syntax
tunnel-select-policy NAME
no tunnel-select-policy
Parameters
NAME
Name of tunnel-policy
Command Mode
IP VRF mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
#configure terminal
(config)#ip vrf vrf1
(config-vrf)#tunnel-select-policy policy1