Is there any way I can add an ip to an interface , but interface route gets created on a routing table other than 'main' routing table in linux?
For ex: If I add an IP 10.11.20.10/24 to eth0, it creates an interface route in the main table.
ip route show 10.11.20.0/24 dev eth1 proto kernel scope link src 10.11.20.10
But I don't want this interface route to be created on 'main' table but a different routing table with table id 10. It seems 'ip addr' doesn't take table id as an option, only way I could think of is deleting the interface route from 'main' table and add it into other routing table.