Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end.
Your first prefix went live smoothly. Six months later you lease a second /24, announce it, and the BGP session drops, taking the first prefix down too. The cause is almost always a max-prefix limit set exactly to your old prefix count, or a filter that hasn't been updated. This guide covers how to add prefixes to an existing announcement safely, whether you use your own ASN or a partner's, with prefixes from IPYE. The examples use the existing prefix 198.51.100.0/24, a new prefix 203.0.113.0/24, your origin AS64500 and the upstream AS64520.
Max-prefix: the session killer
Upstreams set a maximum number of prefixes they'll accept from you. If you send more than that, many configurations tear the session down:
- Cisco and FRR:
neighbor X maximum-prefix 1with nowarning-onlyshuts the session when you exceed 1. - Junos:
prefix-limit maximum 1 teardown.
Some routers restart the session after a timer. Others wait until someone clears it by hand. Either way, everything you announce goes offline.
Before you announce a new prefix
- Ask the upstream for its current max-prefix value. If it's equal to your current count, ask for an increase first. Request some headroom, for example 10 when you announce 2.
- Ask whether the filter is IRR-based or manual. If it's IRR-based, find out how often it refreshes. If it's manual, open a ticket with the new prefix and its LOA.
- Check the new prefix's ROA for your origin:
routinator validate --asn 64500 --prefix 203.0.113.0/24
- Create the IRR route object with the right origin, and confirm it appears in the expansion:
bgpq4 -4 -S RADB -l T AS64500:AS-CUSTOMERS
On your side: limits for what you receive
Set your own max-prefix on what you accept from each upstream, matched to what you expect. For a full table, use a little above the current table size. For a default route only, use a small number:
# BIRD
ipv4 { import limit 1100000 action restart; ... };
# FRR
neighbor 192.0.2.1 maximum-prefix 1100000 90 restart 5
The 90 gives a warning at 90 percent of the limit, and restart 5 re-establishes the session after five minutes rather than waiting for a person.
Update your own export filter
Add the new prefix to the static origination and the export filter in one change:
define MY_V4 = [ 198.51.100.0/24, 203.0.113.0/24 ];
protocol static originate { ipv4; route 198.51.100.0/24 blackhole; route 203.0.113.0/24 blackhole; }
Run bird -p to check the syntax, then birdc configure. In FRR, add the prefix list entry and the network statement, then run clear bgp ipv4 unicast 192.0.2.1 soft out.
Announce and verify
birdc show route export upstream4
You should see two routes. Then check public looking glasses for the new prefix's origin and RPKI status. If the new prefix doesn't appear upstream but the session stays up, the upstream's filter hasn't been updated. Chase the ticket.
If the session dropped
- Remove the new prefix from your export, and re-establish the session (
birdc restart upstream4, orclear bgp). - Confirm the first prefix is back.
- Ask the upstream to raise the limit, then announce again.
Keep a record
For each upstream, keep its max-prefix value, filter type and refresh interval in your network documentation, next to the LOAs. The next prefix addition becomes a five-minute job.
Growing your space
When you need more addresses, IPYE leases IPv4 from /24 to /22. Each lease comes with a LOA and a ROA for the origin ASN you set in the portal, so the paperwork for a new prefix matches the old one.
Next step
Ask each upstream for its current max-prefix limit now, before you need it. Then add the new lease and its origin ASN in the IPYE portal.
About IPYE
IPYE leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS, and ASN and region changes apply automatically. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. More at ipye.com. Questions: ipye@turnel.com.
Disclosure: I run IPYE
Comments
Join the discussionNo comments yet. Be the first to comment.