dppagc wrote: » That is where I am confused with OSPF and BGP. For ospf I can put router ospf 1 network X.X.X.X 0.0.0.0 area 0 The wildcard mask (for OSPF) is 0.0.0.0 BUT the ip address mask is not 255.255.255.255. But the routes still get advertise.
dppagc wrote: » However, for BGP the mask for the ip address and the router bgp must match. Am I right to say that?
Dieg0M wrote: » Gonzalo, using network 1.1.1.1 255.255.255.255 would not advertise anything, the prefix to match is 1.1.1.0/24.
dppagc wrote: » However, for bgp, I can assume that any interfaces assigned an ip address within the range of the network address will have bgp advertised?
late_collision wrote: » No, and this is why its difficult to understand the difference of the network statement. For OSPF, when an interface is enabled via the network statement, that interface then participates in sending/receiving hello's, discovers all neighbors on the link, and forms adjacencies. These adjacencies are "link local" in the fact that they are all directly connected (1 hop away). You cannot form an adjacency with another router that is not directly connected (physically, or virtually (like with a tunnel)). BGP does not discover neighbors. You must define neighbors using the neighbor statement. BGP neighbors do not have to be "link local", they just have to be reachable at the network layer. That means, you can form a BGP neighborship out any of the interfaces on your local router, so long as they can reach the BGP neighbor (i.e. have a route to it). (I am running a little late for work, so this post is rushed. Someone may be able to clean up this post if it's confusing.)
dppagc wrote: » I think I get it. The bgp neighbor is not the "neighbor" or next hop so to speak. It can be far far away. But so far the labs that I have done involve next hop routers. Next question. Can I use the neighbor X.X.X.X Y.Y.Y.Y command if the neighbor is in a different subnet since it is far far away from the originating router?
joetest wrote: » Though there's a reason why eBGP has TTL of 1 meaning you can only talk BGP with the next-hop router in a different AS number(eBGP)
rjon17469 wrote: » Default TTL of 1 for eBGP, but configurable.
dppagc wrote: » Ok. I got 2 other questions. 1) What is the default ttl for ibgp? 2) For MPLS, why is there an ibgp route from the PE to PE when there is an IGP running between them?