I assume from your question you only really want to control inbound traffic to your 2 networks from the ISPs.
You need to alter the routing decision for upstream networks, 2 ways you could do thist with 2 independent ISPs are:
- increase the AS path when advertising the network to the provider you want to act as a backup (AS path prepending)
- by advertising multiple routes that are more specific than the original aggregate routes (more specific routes)
With AS path prepending you literally insert your AS into the AS path multiple times to artificially increase the length. To preprend on a cisco use a route map such as below:
route-map PREPEND permit 10
match ip address prefix-list PREPREND_ROUTES
set as-path prepend 65001 65001 65001 65001
Using your example, you might prepend 220.127.116.11/24 when advertising to ISP2, and prepend 18.104.22.168/24 when advertising to ISP1. This would cause traffic for 22.214.171.124/24 to arrive via ISP2 in normal circumstances, with the reverse being true for 126.96.36.199/24.
To use more specific routes, you take for example a /23 route and advertise the 2 inner /24 routes instead, making these routes more specific and preferred over any larger (less specific) aggregate routes. Using your example networks:
ISP1 - advertise 188.8.131.52/24, 184.108.40.206/25, 220.127.116.11/25
ISP2 - advertise 18.104.22.168/25, 22.214.171.124/25 126.96.36.199/24
The above would cause traffic for 188.8.131.52/24 to come via ISP1 in normal circumstances, and 184.108.40.206/24 to come via ISP2.
The more-specific routes option is more reliable if you upstream providers will allow you to advertise with the more specific prefix length to them, some providers may block all routes with a prefix length longer than 24 for example. The reason it is more reliable is that it is possible that using AS path prepending that some networks will still have a shorter path via the prepended route due to a real shorter path of networks.