TL;DR
- One ISP? Take a default route.
- Two ISPs? Default plus partial routes covers most needs.
- Need per-destination control? Take the full table, but only on a router with room for 1.3M+ routes.
- Always: set max-prefix limits, filter in and out, and match your inbound and outbound preferences.
Overview
When you buy Dedicated Internet Access (DIA) and run BGP with your ISP, you have to decide which routes the ISP sends you. Most ISPs offer three choices:
- A default route only
- A default route plus a partial table
- The full Internet table
You can also take more routes than you need and filter them down yourself. The right choice depends on how many ISPs you connect to, how much control you need over outbound traffic, and what your router can hold.
How big is the Internet routing table?
The global table keeps growing every year. Here’s where it stands:
Sources: APNIC weekly routing table reports (IPv4, IPv6).
Two kinds of router memory matter here:
- RIB (routing information base): every path the router learns, held in control-plane memory. Two full-table ISPs means roughly two copies of every prefix.
- FIB (forwarding information base): only the best path per prefix, programmed into forwarding hardware (TCAM or similar). A full IPv4 + IPv6 table needs a FIB sized for about 1.3 million routes, plus room to grow.
Tip: IPv6 entries take more FIB space than IPv4 entries on many platforms. Check your router’s datasheet for its FIB limit in both address families before asking for a full table.
The three options
Option 1
Default route only
The ISP sends a single route: 0.0.0.0/0 for IPv4 and ::/0 for IPv6. Everything not on your own network goes to that ISP.
| Good for | A single ISP, or a primary/backup pair where you only need failover. |
| Pros | Almost no memory or CPU, nothing to tune, and works on small edge routers and firewalls. |
| Cons | No per-destination path choice. If the ISP loses reachability to some destination, your router can’t tell, because the default route stays up. |
You still need BGP here. It brings the default route up and down with the session, and it advertises your own prefixes to the ISP.
Option 2 · Most common
Default route plus partial routes
The ISP sends a default route plus a subset of specific prefixes, usually its own networks and its direct customers’ networks. Some ISPs call this “customer routes” or “provider and customer routes.” Many let you pick the subset with BGP communities.
| Good for | Two ISPs where you want traffic to each ISP’s own customers to stay on that ISP, with a default route for everything else. |
| Pros | Much smaller than a full table (often tens of thousands of prefixes). A direct path to destinations on each ISP’s network, which usually means fewer hops and less latency. |
| Cons | Size and content vary by ISP and change over time. Destinations outside the partial set still follow the default route. |
Ask each ISP: what its partial table contains, roughly how many prefixes it is, and which communities control it.
Option 3
Full Internet routing table
The ISP sends every prefix it knows: about 1.08 million IPv4 and 245,000 IPv6 routes today. You usually take a default route as well, as a safety net.
| Good for | Organizations with two or more ISPs that need the best outbound path to every destination, or that run their own traffic engineering. |
| Pros | Full control over outbound path selection, per prefix. If an ISP loses a destination, the route is withdrawn and traffic shifts on its own. |
| Cons | Needs enough RIB memory for every ISP’s copy and a FIB with headroom. Session resets take longer to recover, and it takes more skill to run. |
Warning: a full table on an undersized router is worse than a default route. When the FIB fills up, some platforms drop routes or fall back to slow software forwarding.
Filtering the table yourself
Few ISPs will build a custom table to your specification. The usual approach is to take full or partial routes and filter them on your own router with inbound prefix lists or route maps.
Common filters:
- Keep only prefixes with a short AS path (for example, the ISP’s AS plus one more hop).
- Keep only the ISP’s own and customer routes, matched on the communities it tags them with.
- Drop long prefixes, such as anything longer than
/24for IPv4 or/48for IPv6. - Always keep a default route for whatever you filtered out.
This gives you a table sized to your router and your policy, and you control it without waiting on the ISP.
Primary/backup and multihoming
With two ISPs, you control outbound and inbound traffic separately, using different tools.
Outbound (leaving your network)
Set a higher local preference on routes from the primary ISP. Your routers prefer the primary for everything and use the backup only when primary routes disappear.
Inbound (coming to you)
You can’t set the ISP’s preference directly, so you influence it with AS-path prepending, ISP communities, or more-specific prefixes.
- AS-path prepending: advertise your prefixes to the backup ISP with your AS repeated a few times, so the path looks longer and less attractive.
- ISP communities: many ISPs publish communities that lower your route’s local preference inside their network. These usually work better than prepending.
- More-specific prefixes: advertising a longer prefix on the primary also pulls traffic to it, but it adds routes to the global table, so use it sparingly.
Watch for asymmetric routing. A common setup is a full or partial table on the primary and a default route on the backup. That works for failover, but when both links are up, traffic can leave on one ISP and return on the other. Stateful firewalls and NAT often break with asymmetry, so make sure inbound and outbound preferences point the same way.
Safety settings for any option
Whatever you take from the ISP, set these on every BGP session:
| Setting | Why |
|---|---|
| Maximum-prefix limit | Caps how many routes the session accepts, with a warning threshold. Leave headroom for a full table; set it low for default-only. Protects you if the ISP leaks routes. |
| Inbound filters | Reject your own prefixes, private and reserved ranges (bogons), and overly long prefixes. |
| Outbound filters | Advertise only your own prefixes, so a mistake can’t turn you into a transit path between your ISPs. |
| RPKI origin validation | Drop RPKI-invalid routes, and create ROAs for your own prefixes so others can validate them. |
| BFD or tuned timers | Default BGP timers can take minutes to detect a dead link. BFD cuts that to under a second where the ISP supports it. |
Choosing an option
| Option | Routes received | Router needs | Outbound control | Best fit |
|---|---|---|---|---|
| Default only | 1 per address family | Minimal | None | Single ISP, simple failover |
| Default + partial | Default + ISP and customer routes | Moderate | Good for each ISP’s customers | Dual ISP on mid-range routers |
| Full table | ~1.08M IPv4 + ~245K IPv6 | High RIB and FIB capacity | Complete | Dual ISP with traffic engineering |
| Filtered locally | What you keep, plus default | Depends on filters | As much as you keep | Tailoring the table to your hardware |
Bottom line
Start from the least you need. With one ISP, a default route is enough. With two, default plus partial routes covers most needs. Take the full table only when you need per-destination control and your routers have headroom for years of growth. Whichever you choose, set prefix limits and filters on every session, and confirm your inbound and outbound preferences match so failover behaves the way you expect.