CPC H04L 45/28 (2013.01) [H04L 12/66 (2013.01); H04L 45/04 (2013.01); H04L 45/12 (2013.01); H04L 45/645 (2022.05); H04L 69/325 (2013.01)] | 20 Claims |
1. A method, implemented at a computer system that includes a processor and a plurality of network ports, for using BGP (border gateway protocol) for network port failover in a single network stack environment having a single default route, the method comprising:
identifying a plurality of interfaces configured at a network stack that does not perform reverse path forwarding, including identifying at least:
a first interface provided by the network stack as a loopback interface, and that is assigned a first IP (internet protocol) address corresponding to a first IP subnet,
a second interface provided by the network stack as an interface to a first network port of the plurality of network ports, and that is assigned a second IP address corresponding to a second IP subnet that is different than the first IP subnet, and
a third interface provided by the network stack as an interface to a second network port of the plurality of network ports, and that is assigned a third IP address corresponding to a third IP subnet that is different than each of the first IP subnet and the second IP subnet;
configuring BGP to communicate over the second interface with a first port at one or more remote network devices, and to communicate over the third interface with a second port at one or more remote network devices;
announcing, to the one or more remote network devices, a route comprising the first IP address;
configuring a default route of the network stack to egress IP packets via the second interface;
after configuring the network stack to route IP packets via the second interface, determining, based on BGP, that there is a forwarding failure associated with the second interface; and
based on determining that there is a forwarding failure associated with the second interface, configuring the default route of the network stack to egress IP packets via the third interface.
|