From: [email protected] <[email protected]> on behalf of Sastry Sista via
lists.fd.io <[email protected]>
Date: Tuesday, 30 November 2021 at 02:35
To: [email protected] <[email protected]>
Subject: Re: [vpp-dev] MPLS: fib table 1 display issue #mpls
Hi Neale,
Then, mpls table ID we give for mpls commands always
represents ip table id?
for example: mpls local-label 100 del 10.10.20.0/24 table 3 ==> here table is
represents ip fib id?
Yes. Label 100 is added to mpls table 0, and is ‘bound to’, i.e. uses the same
set of paths as, 10.10.20.0/24 in IP table 3.
Also, what is the use of non zero mpls table ID at all? could you please
provide one use case?
There are some MPLS multicast scenarios where the label is assigned by an
upstream peer, so the device needs a table per-upstream peer (since the labels
from peers can clash).
Second, if I wanted to know prefix for local_label, how do I get it from show
commands? We wanted to implement show commands where we would like to get label
and prefix for local_labels.
sh ip fib 10.10.20.0/24
that will display for all VRFs. You can do ‘sh ip fib index X …’ when you know
the index (not the table id).
Look for the ‘mpls’ source. For example
09:35:26,073 ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto
flowlabel ] epoch:0 flags:none locks:[adjacency:1, default-route:1, ]
10.0.0.1/32 fib:0 index:78 locks:3
API refs:1 src-flags:added,contributing,active,
path-list:[102] locks:2 flags:shared, uPRF-list:18 len:1 itfs:[1, ]
path:[126] pl-index:102 ip4 weight=1 pref=0 attached-nexthop:
oper-flags:resolved,
172.16.1.2 pg0
[@0]: ipv4 via 172.16.1.2 pg0: mtu:9000 next:3 flags:[]
02010000ff0202feffb04b720800
Extensions:
path:126 labels:[[45 pipe ttl:64 exp:0]]
mpls refs:1 src-flags:added, local-label:44 <<<<<<<<<< HERE
path-list:[103] locks:1 flags:drop, uPRF-list:87 len:0 itfs:[]
path:[127] pl-index:103 ip4 weight=1 pref=0 special: cfg-flags:drop,
[@0]: dpo-drop ip4
forwarding: unicast-ip4-chain
[@0]: dpo-load-balance: [proto:ip4 index:81 buckets:1 uRPF:18 flags:[]
to:[0:0]]
[0] [@13]: mpls-label[@0]:[45:64:0:eos]
[@1]: mpls via 172.16.1.2 pg0: mtu:9000 next:2 flags:[]
02010000ff0202feffb04b728847
There’s:
Sh mpls fib 44
That will show the forwarding for the local label, but here isn’t a show
command like:
Sh mpls bind …
That would show the result of your ‘mpls local-label 100 del 10.10.20.0/24
table 3’
Please do write one.
/neale
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20562): https://lists.fd.io/g/vpp-dev/message/20562
Mute This Topic: https://lists.fd.io/mt/87373182/21656
Mute #mpls:https://lists.fd.io/g/vpp-dev/mutehashtag/mpls
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-