01-29-2008 06:09 AM - edited 03-03-2019 08:28 PM
How do you configure a router to use eBGP on the s0/1 and iBGP on f1/0?
I have two router with a connection to two different ISP's. I'm setting up a lab and testing . I have my IGP running just fine now I'm working on the BGP side of it and i don't know how to configure the iBGP and eBGP.
Solved! Go to Solution.
01-29-2008 06:46 AM
You are running router bgp 120, i.e. AS 120. If you define a neighbor with "remote-as 120", then it will run iBGP with that neighbor. If you define a neighbor with remote-as anything else, then it will run eBGP with it.
As for the network statement, you need a mask as well. BGP only advertises prefixes where the address AND the mask are both correct for an existing route in the routing table, e.g. network 172.16.1.0 mask 255.255.255.0.
However, I am beginning to suspect that there is a fundamental misunderstanding here. Unlike the other routing protocols, BGP does not use the "network" statement to activate BGP on an interface, nor does it discover neighbors automatically. Neighbors have to be configured manually and individually.
Furthermore, by default, BGP does not originate any prefixes. You have to tell it explicitly what to advertise to its neighbors.
I'm sorry if I have misjudged your level of knowledge of BGP, but I'm afraid you might need to do some fundamental reading about BGP before you try configuring it.
Kevin Dorrell
Luxembourg
01-29-2008 06:17 AM
Hi,
When you define neighbor, automatically if neighbors are in the same autonomous system (internal BGP neighbor) then they will run iBGP. If the neighbors are in different autnomous systems (External BGP neighbors)then they will run eBGP.
The link below is "Configuring BGP"; more in particular you can see "BGP Neighbor Configuration Examples":
I hope this helps.
Best regards.
Massimiliano.
01-29-2008 06:27 AM
I'm running a 172.16.x.x between f1/0 on R1 and f1/0 on R2. When i use "rotuer bgp 120"
that works but when i try network 172.16.x.x it says uncomplete command. I am running IOS 12.4
01-29-2008 06:46 AM
You are running router bgp 120, i.e. AS 120. If you define a neighbor with "remote-as 120", then it will run iBGP with that neighbor. If you define a neighbor with remote-as anything else, then it will run eBGP with it.
As for the network statement, you need a mask as well. BGP only advertises prefixes where the address AND the mask are both correct for an existing route in the routing table, e.g. network 172.16.1.0 mask 255.255.255.0.
However, I am beginning to suspect that there is a fundamental misunderstanding here. Unlike the other routing protocols, BGP does not use the "network" statement to activate BGP on an interface, nor does it discover neighbors automatically. Neighbors have to be configured manually and individually.
Furthermore, by default, BGP does not originate any prefixes. You have to tell it explicitly what to advertise to its neighbors.
I'm sorry if I have misjudged your level of knowledge of BGP, but I'm afraid you might need to do some fundamental reading about BGP before you try configuring it.
Kevin Dorrell
Luxembourg
01-29-2008 07:11 AM
Kevin,
I have no knowledge of BGP. I am just trying to setup the test lab. I have the BSCI book but i'm on the policy routing chapter, the next chaper is BGP.
01-29-2008 07:15 AM
I think you should read the BGP chapter before you start configuring in the lab. You will be in for some surprises. ;-)
Kevin Dorrell
Luxembourg
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide