logo

Back to Wiki

How to Get Your Own ASN

A practical walkthrough of ASN registration with RIPE — from picking uplinks to announcing your first routes.

An Autonomous System Number (ASN) is what lets your network speak BGP and announce its own IP prefixes to the internet. If you're multi-homed, peering with other providers, or planning to run your own IP space independently of a single upstream, you need one. Here's what the process actually involves.

What is an ASN and why do you need one?

An ASN is a unique number assigned by RIPE NCC that identifies your network on the internet and lets you run BGP sessions with other networks. Without it, your IP prefixes are tied to whichever provider announces them on your behalf — if you want to announce your own space, multihome across several providers, or do traffic engineering, an ASN is a prerequisite.

What documents and information you need

RIPE asks for a short technical justification and some supporting paperwork before it hands out a number:

  • Two upstream providers (your uplinks or peering partners) who agree to set up BGP sessions with your ASN and confirm it in writing, by email or LOA.
  • A valid passport or other government-issued ID for the person registering the resource.
  • A short technical justification for the request — multihoming or traffic engineering are the two most common reasons.
  • A filled-in RIPE ASN request form — we fill this in together with you as part of our ASN Registration & Support service.

An uplink is a network that agrees to carry your routes and run a BGP session with you. RIPE requires two of them to confirm your request before an ASN is issued. If you don't already have two providers lined up, we can help you find uplinks that are a good match for your location and traffic profile as part of our LIR services.

How long registration takes

Once your two uplink confirmations and documents are in order, RIPE typically processes a complete ASN request within a few business days. Most of the time in practice goes into lining up uplinks and getting the paperwork right the first time — which is exactly what our ASN Registration & Support service is for.

Once you have the ASN, how do you use it?

With the ASN in hand, you register route and aut-num objects in the RIPE Database, set up RPKI (ROA) so your announcements validate, configure rDNS for your ranges, and establish BGP sessions with your uplinks. A minimal aut-num object in the RIPE DB looks like this:

aut-num:       AS123456
as-name:        EXAMPLE-AS
org:            ORG-EX1-RIPE
admin-c:        EX1-RIPE
tech-c:         EX1-RIPE
status:         ASSIGNED
mnt-by:         EXAMPLE-MNT
source:         RIPE

Creating the RIPE objects behind your ASN

All of this lives in the RIPE Database, and you create and edit it through RIPE's own web interface: open Create an object, pick the object type from the dropdown — it lists every RPSL object type, from mntner and organisation down to things like route-set or rtr-set you'll rarely touch — fill in the attributes, and submit it signed by your maintainer. For an ASN setup, only a handful of those types matter, and they need to be created roughly in this order.

mntner — your maintainer object

Create this first. A mntner (maintainer) is the authentication layer that protects every object you register afterwards — each one points back to it through a mnt-by attribute, and without the matching credentials nobody, including you, can edit them.

  • mntner: a unique handle for the maintainer, e.g. NETLIR-MNT.
  • auth: how changes are authenticated — an MD5 password hash or single sign-on through your RIPE NCC Access account.
  • upd-to and mnt-nfy: the email addresses notified of update attempts and successful changes.
  • admin-c / tech-c: the contact responsible for it — point this at the person or role object below.

organisation — your company record

The organisation object ties every resource you hold — ASN, address space, domains — back to a single legal entity, and is what RIPE and your upstreams check when verifying who actually controls a resource.

  • org-name and org-type: your company's legal name, and LIR for a direct RIPE member.
  • address, e-mail, phone: your company's contact details.
  • mnt-ref: the maintainer(s) allowed to reference this organisation from their own objects.

person / role — your contact objects

Every object needs an admin-c and tech-c pointing at a contact. A person object represents one individual; a role object lets a whole team share one contact instead of registering each person separately — most operators use a role object for day-to-day administration.

  • nic-hdl: a unique handle RIPE assigns or you choose, referenced as admin-c/tech-c elsewhere.
  • address, phone, e-mail: how to reach the contact.
  • mnt-by: your maintainer object, so only you can edit it.

aut-num — adding your routing policy

RIPE creates the base aut-num object for you once the ASN is approved — you don't create it from scratch. What you do is open it for editing (search your ASN in the RIPE Database and choose update — the text-area edit mode is easiest for multi-line policy) and add the routing policy that tells the world which networks you accept and announce:

  • import / export: IPv4 routing policy toward each upstream — which peer ASN, and which routes you accept or announce to it.
  • mp-import / mp-export: the same policy in multiprotocol form, using afi ipv6.unicast, so it also covers IPv6.

route / route6 — tying prefixes to your ASN

Before upstreams and RPKI validators will trust your announcements, every prefix you plan to announce needs a matching route (IPv4) or route6 (IPv6) object linking it to your ASN as the origin. Create one of each per prefix, logged in with the account tied to your maintainer.

  • route / route6: the prefix itself, e.g. 192.0.2.0/24.
  • origin: your ASN, e.g. AS123456.
  • descr: a short label for the network — it isn't shown on the creation form by default, so add it manually from the attribute dropdown.
  • mnt-by: your maintainer object.

as-set — grouping several ASNs (optional)

If you, or your downstream customers, run more than one ASN, an as-set lets your upstreams build one filter that covers all of them instead of maintaining a separate one per BGP session.

  • as-set: a hierarchical name under your own ASN — e.g. AS123456:AS-NETLIR. RIPE no longer accepts flat, non-hierarchical names.
  • members: the ASNs or nested as-sets it contains — like descr, add this attribute manually, since it isn't shown by default.

Once the as-set exists, reference its name instead of a single ASN in your export lines, and give it to your upstreams so they can filter on it. We cover LOA, ROA, and rDNS setup as part of ASN Registration & Support, and can keep maintaining your mntner, organisation, route, and aut-num objects afterwards through our Object Support/Sponsorship service. See current ASN and LIR pricing or reach out at [email protected] if you'd like us to handle the registration for you.