In the following output, the mpls
label
range command reconfigures the range used for dynamically assigned labels 16–983039 to 200–100000. It configures a static label
range of 16–199.
Device# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# mpls label range 200 100000 static 16 199
% Label range changes take effect at the next reload.
Router(config)# end
In the following output, the show
mpls
label
range command indicates that the new label ranges don’t take effect until a reload occurs:
Device# show mpls label range
Downstream label pool: Min/Max label: 16/983039
[Configured range for next reload: Min/Max label: 200/100000]
Range for static labels: Min/Max/Number: 16/199
In the following output, the show
mpls
label
range command, executed after a reload, indicates that the new label ranges are in effect:
Device# show mpls label range
Downstream label pool: Min/Max label: 200/100000
Range for static labels: Min/Max/Number: 16/199
In the following output, the mpls
static
binding
ipv4 commands configure static prefix/label bindings. They also configure input (local) and output (remote) labels for various
prefixes:
Device# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Device(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 55
Device(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 output 10.0.0.66 2607
Device(config)# mpls static binding ipv4 10.6.0.0 255.255.0.0 input 17
Device(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 output 10.13.0.8 explicit-null
Device(config)# end
In the following output, the show
mpls
static
binding
ipv4 command displays the configured static prefix/label bindings:
Device# show mpls static binding ipv4
10.0.0.0/8: Incoming label: none;
Outgoing labels:
10.13.0.8 explicit-null
10.0.0.0/8: Incoming label: 55 (in LIB)
Outgoing labels:
10.0.0.66 2607
10.66.0.0/16: Incoming label: 17 (in LIB)
Outgoing labels: None