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.
Many hosting and dedicated server providers accept customer address space. Some announce it for you from their ASN, and others set up a BGP session so you announce it yourself. The process is usually called BYOIP (bring your own IP). Each provider has its own form or ticket process, but they all ask the same questions. This guide explains how to prepare a BYOIP request for a leased /24 from IPYE. The examples use the documentation prefix 198.51.100.0/24, your ASN AS64500 and the provider's ASN AS64520.
Two models
- The provider announces the /24 from its ASN and routes it to your server or VLAN. You don't need an ASN or a BGP session. The ROA has to name the provider's ASN,
AS64520. - You announce from your own ASN over a BGP session with the provider. The ROA names your ASN,
AS64500, and the provider adds your prefix to its filters for your session.
Model 1 is simpler for a single site. Model 2 gives you control and lets you use the same /24 with several providers. Decide which you want before you contact the provider, because it decides which ASN goes on the lease.
Information the provider will ask for
- The prefix, exactly as announced,
198.51.100.0/24. - The origin ASN, either theirs or yours.
- A LOA from the address holder naming that ASN.
- The ROA status, often checked automatically.
- The server, VLAN or BGP session the prefix should be routed to.
- For model 2, your BGP details: ASN, peer address and MD5 password if they use one.
Set up the lease to match
When you lease the /24 from IPYE, set the origin ASN to match your model, AS64520 for model 1 or AS64500 for model 2. The ROA follows the ASN you set, and the LOA you download will name it. If the provider uses several ASNs, ask which one will originate the route.
Write the ticket
Subject: BYOIP request - 198.51.100.0/24 to server srv-12345 We'd like to bring our own IPv4 range: Prefix: 198.51.100.0/24 Origin ASN: AS64520 (your ASN - please announce on our behalf) Route to: server srv-12345, primary interface ROA: published for AS64520, maxLength 24 LOA: attached Please confirm the date the announcement will start. For model 2, replace the routing part with your session details, and ask them to add the prefix to your inbound filter.
On the server
With model 1, providers usually route the /24 to your server's main address, so that you don't need ARP for each address. Put the addresses on a loopback or a dummy interface:
ip link add dummy0 type dummy ip link set dummy0 up ip addr add 198.51.100.1/24 dev dummy0 Some providers instead put the range on-link in your VLAN with a gateway at .1. Ask which they do, because it changes which addresses you can use. A routed /24 gives you all 256. An on-link setup loses the network, gateway and broadcast addresses.
Test it
From outside:
ping -c3 198.51.100.1 traceroute 198.51.100.1 The last hop before your server should be the provider's router. Then check a looking glass or route collector to confirm the prefix shows with the expected origin ASN and a valid RPKI status.
When something goes wrong
- The ticket is waiting on "LOA verification". The provider may want to contact the address holder. Make sure the LOA's contact details are current.
- The route shows as RPKI invalid. The lease ASN doesn't match the announcing ASN. Change it in the lease settings.
- Traffic arrives but replies go out from the wrong address. Set the source address on the default route (
src 198.51.100.1) or use policy routing.
Get a range ready for BYOIP
IPYE's /24 leases include a LOA, a ROA and reverse DNS, and changing the ASN applies automatically, which suits both BYOIP models.
Next step
Pick a model, set the matching origin ASN in the IPYE portal, and send your provider a ticket with all the details in one message.
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
