cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1657
Views
0
Helpful
11
Replies

BGP config

vishalpatil86
Level 1
Level 1

hi,

I have cisco 2811 router and two ISP copper line.

How can confire it as BGP router. Pls help on this.

11 Replies 11

cadet alain
VIP Alumni
VIP Alumni

Hi,

if you only have 1 ISP and a single router then I don't see the benefit of using BGP.

Could you tell us a little bit more about your infrastructure and what you want to achieve.

Regards.

Alain.

Don't forget to rate helpful posts.

hi alain,

we have two ISPs..... router is connected to core switch, and there it distributes internet traffic to other edge switches

Hi,

Then if you want to use BGP you'll have to ask the IANA for  a Provider-independent IP address and an AS number.

Is it your case already?

Regards.

Alain

Don't forget to rate helpful posts.

Hi Vishal,

Please find the steps below.

1) Configure your router in a private AS (64512 - 65535).

2) Advertise your public/private pools to the both ISPs.

(I am saying private pools if MPLS+BGP cloud and you have a VRF set in your ISP cloud is there)

3)Now Your ISP will remove the originating AS in case of public pool advertisment or not in case of MPLS cloud and VRF configuration...

Please rate if helps.

Ameya

hi,

its done already.i dont know how to configure it...help me on this one

Do you need exact BGP configuraion commands???

Ameya

yes

PLease find config below.

(Config is for one client end router and 2 ISP routers)

router bgp

no synchronization

bgp router-id

bgp log-neighbor-changes

redistribute connected

redistribute static

neighbor remote-as

neighbor description

neighbor soft-reconfiguration inbound

neighbor route-map Routemap1out out

neighbor route-map Routemap2in out

neighbor remote-as

neighbor description

neighbor soft-reconfiguration inbound

neighbor route-map Routemap2out in

neighbor route-map Routemap2in out

no auto-summary

please rate helpful posts.

Ameya

Hi Ameya,

There seems there is a typo in there:

neighbor route-map Routemap1out out


It should bee applied inbound if it is a route-map for outbound selection.

It should be also interesting to give the route-maps configs to the OP.

Are you using AS_PATH prepending to influence inbound selection ?

Maybe he should discuss with the ISPs to see if they accept this  way of doing.

Regards.

Alain.

Don't forget to rate helpful posts.

Hi Cadet,

I just gave a rough example how the config is done as we had insufficient data.

Also we are using Local Pref for selecting exit interface and As-path for inbounf traffic.

I did make a typo :-)

Wrong config:

neighbor route-map Routemap1out out

neighbor route-map Routemap2in out

Correct config:

neighbor route-map Routemap1out out

neighbor route-map Routemap1in in

Ameya

I agree with Cadet. If you have two links to one ISP, you could just set 2 default routes and give one a higher

AD, incase one goes down, it will use the other. But then again, I don't know the way your network is setup.