The VPP CLI to set interface to an IP table also work on sub-interfaces if the name of the sub-interface is specified. For example:
vpp# ip table 10 vpp# create sub-interfaces GigabitEthernet4/0/0 10 GigabitEthernet4/0/0.10 vpp# set int ip table GigabitEthernet4/0/0.10 10 vpp# set int ip address GigabitEthernet4/0/0.10 10.10.10.10/24 vpp# set int state GigabitEthernet4/0/0 up vpp# set int state GigabitEthernet4/0/0.10 up vpp# sho int addr GigabitEthernet4/0/0.10 GigabitEthernet4/0/0.10 (up): L3 10.10.10.10/24 ip4 table-id 10 fib-idx 3 vpp# show ip fib table 10 ipv4-VRF:10, fib_index:3, flow hash:[src dst sport dport proto ] locks:[src:CLI:2, ] 0.0.0.0/0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:45 buckets:1 uRPF:24 to:[0:0]] [0] [@0]: dpo-drop ip4 0.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:49 buckets:1 uRPF:53 to:[0:0]] [0] [@0]: dpo-drop ip4 10.10.10.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:54 buckets:1 uRPF:59 to:[0:0]] [0] [@0]: dpo-drop ip4 10.10.10.0/24 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:53 buckets:1 uRPF:58 to:[0:0]] [0] [@4]: ipv4-glean: GigabitEthernet4/0/0.10: mtu:9000 ffffffffffff00505688b5628100000a0806 10.10.10.10/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:56 buckets:1 uRPF:63 to:[0:0]] [0] [@2]: dpo-receive: 10.10.10.10 on GigabitEthernet4/0/0.10 10.10.10.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:55 buckets:1 uRPF:61 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:51 buckets:1 uRPF:55 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:50 buckets:1 uRPF:54 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:52 buckets:1 uRPF:56 to:[0:0]] [0] [@0]: dpo-drop ip4 Regards, John From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Satya Murthy Sent: Tuesday, August 27, 2019 5:22 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] table id for sub interfaces Hi, Is there anyway I can associate a VPP sub-interface to a particular ip-fib table id ? I could able to associate a physical interface to a table id, but not a sub interface. I did not find a CLI option to do this. Any inputs pls. -- Thanks & Regards, Murthy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13853): https://lists.fd.io/g/vpp-dev/message/13853 Mute This Topic: https://lists.fd.io/mt/33050491/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-