BGP Session

Hi,
So I just purchased a Dedicated server from this one company and I have a
/24 IPv4 block that I bought from a company on WebHostingTalk, but I am
clueless on how to setup the /24 IPv4 block using the BGP Session. I want
to set it up to run through their network as if it was one of their IPs,
etc. I keep seeing things like iBGP (which I think means like a inner
routing BGP) and eBGP (what I'm talking about??) but I have no idea how to
set those up or which one I would need.

Any help would be appreciated.

Thanks!

I love the From: field :slight_smile:

whats not to love… its DKIM’d & everything

/bill
Neca eos omnes. Deus suos agnoscet.

Just ask your hosting provider to announce it for you and route it from their border to your box?

Wow -- be careful playing with public eBGP sessions unless you know
what you're doing. It can affect the entire Internet.

Since you're just connecting to a single upstream ISP, you wont
qualify for a public AS number. So, you'll have to work with your
upstream ISP to agree on a private AS number you can use.
You will be setting up an eBGP session (which is a session between two
different AS numbers, as opposed to iBGP, wherein the AS numbers are
the same).

As for running BGP on a dedicated server, it'll depend on the OS in
use. Assuming Linux, take a look at Quagga, BIRD, and ExaBGP.
http://www.nongnu.org/quagga/
http://bird.network.cz/
https://code.google.com/p/exabgp/

It may be a *lot* easier for you to just have your upstream ISP
announce your IP space, and route it to your dedicated server, unless
you need the ability to turn it off and on over time.

Cheers,
jof

Hi,
Yeah, I need to turn on and off overtime, but I'm getting my own ASN very
soon so that shouldn't be a problem soon! :slight_smile:
but how would I go about turning off a location at a certain time?

Thanks!

I believe you'll find that all of this gets a lot easier if you try to understand how layer 3 routing itself works instead of asking sparodic questions one at a time.

I recommend picking up a layer 3 routing book for the platform of your choice and going through the basics.

Howdy,

Unless you have (1) a real router available, not a just a server and
(2) an expert available to help you with your first BGP configuration
I strongly recommend you simply ask your service provider to announce
the /24 to the Internet on your behalf.

Server-based BGP software like Quagga for Linux is reasonably good but
it should absolutely not be involved in your _first_ attempt to
connect with the Internet's default-free zone. Simple mistakes with
eBGP can cause tremendous damage to other folks on the Internet. Trial
and error is simply not OK. If it isn't worth it to you to buy a
BGP-capable router then you also aren't prepared to make the
investment in learning it takes to use BGP without causing harm.

Regards,
Bill Herrin

I know, the DC is going to be giving me a BGP session on their router so I
can set it up, I'm not using a Linux server as a router.

A single linux box with a whole /24 on it? What sort of use case is that,
BTW?

Proxying.

An Anycasting node. For example, as part of a reliable DNS service.
A /24 is usually the smallest prefix length that is portably accepted.

Also, applications where connections need to appear to be coming from many
source IPs.

Yeah, we're using it for an anycasted node but like, I'm confused on
certain parts like, just a really basic question.
When doing things like

conf t
router bgp AS1337

neighbor 208.54.128.0 remote-as AS13335
neighbor 208.54.128.0 description BGP with Upstream
neighbor 208.54.128.0 password "lolpass"

address-family ipv4
no synchronization
neighbor 208.54.128.0 activate
neighbor 208.54.128.0 soft-reconfiguration inboung

I'm confused on when doing this, would I need to state like

First go to AS13335 then go to TATA then go to my server or would it just
automatically do that or would my provider do that? I'm confused on that.
how would I state multiple peers.....?

Assuming this isn't some silly troll, you need to either hire someone with a bit more clue or see if your provider is willing to configure your router. It sounds like you have no idea how IP routing works.

Yeah, we're using it for an anycasted node but like, I'm confused on certain
parts like, just a really basic question.
When doing things like

conf t
router bgp AS1337

neighbor 208.54.128.0 remote-as AS13335
neighbor 208.54.128.0 description BGP with Upstream
neighbor 208.54.128.0 password "lolpass"

address-family ipv4
no synchronization
neighbor 208.54.128.0 activate
neighbor 208.54.128.0 soft-reconfiguration inboung

I'm confused on when doing this, would I need to state like

First go to AS13335 then go to TATA then go to my server or would it just
automatically do that or would my provider do that? I'm confused on that.
how would I state multiple peers.....?

AS13335 is Cloudflare.
How does TATA relate? You have a deicated server connected to TATA and
Cloudflare? I'm skeptical.

You really ought to do some more reading, learning, and practicing
before running public BGP.

I would recommend reading this book cover-to-cover:
http://www.bgpexpert.com/‘BGP’-by-Iljitsch-van-Beijnum/
It's only ~250 small pages.
To practice and experiment, emulate some example configurations with
GNS3 and Dynamips, or some Linux VMs with Quagga or BIRD.

Oh no, I just used the first ASNs that came to mind :stuck_out_tongue:

Fundamental routing training would greatly help you here. I would suggest
looking for that.

If you are not peering with TATA, then your routes would not go to TATA
first. (unless the next-hop is indirect and that brings up other
fundamental routing things that you should learn about)

AS13335 is not TATA. So if this is what your provider gave you, one first
assumes you¹d be directly connected to them (that¹s one of the rules in
BGP¹s RFC for external connections).. If you have multiple providers, you
may have multiple peers. Each one would give you information.

But like others have stated, I would strongly suggest you stop your
testing for the moment and either hire someone to help or take some time
to learn the basics on there. Otherwise, successful or not, your testing
will really have no meaning to you.

Just my two cents.

Scott

Yeah, that's probably the best idea in this situation. I've been really
interested in BGP but didn't know where to start, I'll read all the books
that you guys put up above and start reading them.
Also, referring to what you said
"If you are not peering with TATA, then your routes would not go to TATA
first. (unless the next-hop is indirect and that brings up other
fundamental routing things that you should learn about)"
Yeah, I meant that if I was getting a Transit service from them. Like, if
using a DC like Equinix, you have access to countless amounts of
opportunities to use Transits from virtually any provider, if I were to
contact TATA and ask for a transit, I'd set that up in BGP, but I'm
confused on how. I'll look into Fundamental routing.

Thanks!

When did the NANOG list become freeconsulting.org?

Owen

1996