BGP at the internet edge: single-homed, dual-homed and multihomed designs
In short: BGP at the edge lets an organisation stay reachable through more than one provider using its own address block and AS number. You choose how many links and providers, whether to receive full routes or just a default route, and then use local preference for outbound traffic and AS path prepending or communities for inbound traffic.
Do you need BGP at all?
Small sites usually do not. If you have one provider, a static default route is simpler. BGP becomes worth it when you need to stay reachable on the same public addresses through two providers, for example for a public website, VPN concentrator or hosting platform. For that you need your own AS number and a provider-independent address block (in practice at least a /24 for IPv4 and a /48 for IPv6, because smaller prefixes are filtered by many networks). These come from your regional internet registry, such as RIPE NCC, ARIN or APNIC, or through a sponsoring provider.
The four designs
- Single-homed: one link to one ISP. BGP is optional; many ISPs simply route your block to you statically.
- Dual-homed: two links to the same ISP. Protects against a link or router failure, but not an ISP outage.
- Multihomed: links to two different ISPs. Both advertise your prefix, so you stay reachable if one ISP fails.
- Dual multihomed: two ISPs, each on its own edge router, with iBGP between your routers. This is the usual enterprise and data centre design.
What to receive from your providers
- Default route only: lightest on memory. Outbound traffic choice is crude.
- Default plus partial routes (the provider's own customers): sends traffic for those networks directly to that provider.
- Full table: around one million IPv4 prefixes and over 200,000 IPv6 prefixes by 2026. Gives the best outbound choices, but needs routers with enough memory.
Basic edge configuration
router bgp 64500
bgp log-neighbor-changes
neighbor 198.51.100.1 remote-as 65010
neighbor 198.51.100.1 description ISP-A
address-family ipv4
network 203.0.113.0 mask 255.255.255.0
neighbor 198.51.100.1 activate
neighbor 198.51.100.1 prefix-list OUR-PREFIX out
neighbor 198.51.100.1 prefix-list DEFAULT-ONLY in
!
ip prefix-list OUR-PREFIX permit 203.0.113.0/24
ip prefix-list DEFAULT-ONLY permit 0.0.0.0/0
ip route 203.0.113.0 255.255.255.0 Null0
The outbound prefix list is essential. Without it, a multihomed router can accidentally advertise ISP A's routes to ISP B and become a transit network. The Null0 static route keeps the network statement's prefix in the routing table so it is always advertised. (AS 64500 and 65010 are documentation and private examples.)
Steering traffic
- Outbound (traffic leaving you): set a higher local preference on routes from the preferred ISP. It is shared with all your routers through iBGP.
- Inbound (traffic coming to you): you can only ask. AS path prepending makes a path look longer, more specific prefixes attract traffic (if allowed), and provider communities can tell the ISP to lower preference or not advertise to certain peers.
Also sign your prefixes with RPKI ROAs at your registry, so networks that validate routes will reject anyone else announcing your addresses.
Real-world example: the backup ISP that took everything
A hosting company added a cheaper second ISP as backup and prepended its AS three times on that link. Inbound traffic still split roughly 50/50. The backup ISP had set a high local preference for all customer routes, so their own network and their customers ignored the prepending. The provider's documented "backup" community fixed it: once tagged, the backup ISP lowered its own preference and inbound traffic moved to the main provider.
Practice
What two resources do you normally need for true multihoming with BGP?
Why is an outbound prefix list important on a multihomed edge router?
Which attribute do you use to choose the exit for outbound traffic?
Key takeaways
- Use BGP at the edge when you must stay reachable on your own addresses via several links.
- Multihoming needs your own AS and provider-independent address space.
- Filter outbound advertisements so you never become transit.
- Local preference steers outbound traffic; prepending and communities influence inbound.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.