For example if main is selected, then only routes from main routing table will be…