R3303-HP HSR6800 Routers MPLS Command Reference

48
Examples
# Set the maximum hop count for loop detection to 25 for the public network LDP instance.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] hops-count 25
# Set the maximum hop count for loop detection to 25 for LDP instance vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] hops-count 25
Related commands
loop-detect
path-vectors
label advertise
Use label advertise to specify what type of label the egress should distribute to the penultimate hop.
Use undo label advertise to restore the default.
Syntax
label advertise { explicit-null | implicit-null | non-null }
undo label advertise
Default
The egress distributes an implicit null label to the penultimate hop.
Views
MPLS view
Default command level
2: System level
Parameters
explicit-null: Specifies the egress to distribute an explicit null label of 0 to the penultimate hop.
implicit-null: Specifies the egress to distribute an implicit null label of 3 to the penultimate hop.
non-null: Specifies the egress to distribute a normal label of not less than 1024 to the penultimate hop.
Usage guidelines
The type of label for an egress to distribute depends on whether the penultimate hop supports PHP. If the
penultimate hop supports PHP, you can configure the egress to distribute the explicit null or implicit null
label to the penultimate hop. If the penultimate hop does not support PHP, configure the egress to
distribute a normal label.
If LDP sessions have been established, use the reset mpls ldp command to reset the sessions to bring the
label advertise command into effect.
Examples
# Configure the egress to distribute an explicit null label to the penultimate hop.
<Sysname> system-view