IBM Cloud Docs
Filtering routes using Transit Gateway prefix filtering

Filtering routes using Transit Gateway prefix filtering

If you use IBM Cloud Transit Gateway with IBM Cloud Direct Link, you can filter direct link routes using the Transit Gateway prefix filtering capability. For example, if you have a direct link connected to a transit gateway, place the filters on the transit gateway/direct link connection as shown. This allows you to control what prefixes are learned by the transit gateway and is advantageous if you have dozens of on-prem prefixes, but only want the VPC connection to be able to talk to one prefix, or a select few.

The prefix filter will only filter prefixes into the transit gateway. There is no prefix filter to block prefixes learned by the transit gateway out to networks that are connected to it. This means that the direct link sees all the prefixes from all the networks participating in the transit gateway.

Filtering routes using Transit Gateway prefix filtering
Figure 1. Filtering routes using Transit Gateway prefix filtering