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.
A number of VPS and cloud providers offer BGP sessions to customers, which is a cheap way to announce your own prefixes without renting a rack. Each provider has its own checks before turning the session on, and those checks are stricter when the ASN isn't registered in your name. This guide collects what providers typically ask for, so you can prepare everything before you open the ticket, using prefixes from IPYE. The examples use the documentation prefix 198.51.100.0/24, the IPv6 prefix 2001:db8:100::/48, and the partner ASN AS64510.
Typical requirements
1. An ASN you're authorized to use. If it's registered to someone else, providers want a LOA from the ASN holder naming you (or your account) and the prefixes. Some won't accept non-owned ASNs at all. Check the provider's BGP documentation first.
2. Authorization for each prefix. A LOA from the prefix holder naming the origin ASN, and increasingly a ROA. Many providers check RPKI automatically and reject prefixes without a valid ROA for the stated origin.
3. Matching IRR data. A route object with the right origin, in a source the provider's upstreams use. Some providers build filters only from IRR.
4. An account in good standing. Many require the account to be verified, or a minimum account age, before enabling BGP. It's an anti-abuse measure, because BGP access is attractive to hijackers.
5. Use-case information. What the prefixes are for. Providers are wary of announcements that look like spam operations, open proxies or bulletproof hosting.
How the session is usually set up
- The provider runs route servers or edge routers. You peer from your VPS, often multihop, with a password.
- They often send only a default route, or nothing at all, because the VPS already has a default route.
- You announce your prefixes, and they announce them onward from your ASN (path
... provider 64510).
A typical BIRD configuration on the VPS:
protocol bgp provider_v6 { local as 64510; neighbor 2001:db8:ffff::1 as 64520; multihop 2; password "from-provider-portal"; ipv6 { import none; export where net = 2001:db8:100::/48; }; } Add a static route to the route server if it isn't on-link, and check the provider's documented hop count.
Using the addresses on the VPS
Once announced, put the addresses on the VPS itself:
ip -6 addr add 2001:db8:100::1/128 dev lo ip addr add 198.51.100.1/32 dev lo Then set the source address for outbound traffic, with src on the default route or with SNAT, so replies and new connections use your space. Some providers drop outbound packets from your prefix until the BGP session is up and the prefix is accepted, as an anti-spoofing measure.
Things that slow approval
- A LOA naming a different ASN from the one on the account.
- A ROA for another ASN, often left over from a previous user.
- No IRR route object.
- Vague use-case descriptions.
- Asking for a session from a brand-new account with no history.
A ticket that gets approved
Request: BGP session for AS64510 on VPS vm-12345 Prefixes: 198.51.100.0/24, 2001:db8:100::/48 ROAs: origin AS64510, maxLength 24 / 48 (valid) IRR: route/route6 objects in RADB, origin AS64510 LOAs: prefix holder LOA + ASN holder LOA (attached) Use: web hosting and our own services; abuse contact abuse@example.net Getting the prefixes ready
IPYE leases come with a LOA and a ROA for the origin ASN you set. That covers items 2 and part of 3. Start with the free IPv6 /48 to get the provider's BGP flow working, then add IPv4.
Next step
Read your VPS provider's BGP documentation, set the origin ASN on your prefixes in the IPYE portal, and send one complete ticket with all the documents attached.
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
