Hi Choonho,

An interface can only reside in (a.k.a be bound to) a single table. So each 
time you do;
  Set int ip table loop0 X
You are changing the table it is bound to, not adding tables. So the output you 
see at the end of the sequence is correct, the loopback has two addresses and 
is bound to table 5.

However, this is not a supported sequence of events. You MUST remove all 
configured IP address on an interface before you change the interface’s table.

Regards,
neale


From: <vpp-dev-boun...@lists.fd.io> on behalf of Choonho Son 
<choonho....@gmail.com>
Date: Tuesday, 17 January 2017 at 00:17
To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Subject: [vpp-dev] show interface address with multiple tables

With multiple tables(VRF), show interface addr display wrong table ID.
DBGvpp# create loopback interface
loop0
DBGvpp# set interface ip table loop0 1
DBGvpp# set interface ip address loop0 1.0.0.250/16<http://1.0.0.250/16>
DBGvpp# sh int addr
local0 (dn):
loop0 (dn):
1.0.0.250/16<http://1.0.0.250/16> table 1
DBGvpp# set interface ip table loop0 5
DBGvpp# set interface ip address loop0 5.0.0.250/16<http://5.0.0.250/16>
DBGvpp# sh int addr
local0 (dn):
loop0 (dn):
1.0.0.250/16<http://1.0.0.250/16> table 5
5.0.0.250/16<http://5.0.0.250/16> table 5
DBGvpp#
The reason looks like
ip4_main_t has single fib_index_by_sw_if_index.
Even though sw_if_index has two table ID(fib_index) 1 and 5.
Last updated fib_index(Table 5) is updated at ip4_main_t.
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to