次の出力では、動的に割り当てられたラベル 16 〜 983039 から 200 〜 100000 に使用される範囲が mpls label range コマンドによって再設定されます。また、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
次の出力では、新しいラベルの範囲はリロードが発生するまで適用されないことが show mpls label range コマンドによって示されています。
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
次の出力では、リロード後に実行される show mpls label range コマンドによって、新しいラベルの範囲が有効になっていることが示されています。
Device# show mpls label range
Downstream label pool: Min/Max label: 200/100000
Range for static labels: Min/Max/Number: 16/199
次の出力では、mpls static binding ipv4 コマンドによってスタティック Prefix/Label バインディングが設定されています。さまざまなプレフィックスの着信(ローカル)と発信(リモート)のラベルも設定されています。
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
次の出力では、show mpls static binding ipv4 コマンドによってスタティック Prefix/Label バインディングが表示されています。
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