networker050184 wrote: » If there is no mask it assumes the classful network.
networker050184 wrote: » Yes you got it. For example, if you are trying to advertise 192.168.1.0/26 then leaving off the network mask won't match the prefix.
notgoing2fail wrote: » Thank you much appreciated! One other quick question. Looking at this config I have, it's two routers, one each going to an ISP. Both belonging to the same AS. RouterA is the primary and RouterB is the secondary. A strange BGP configuration because the primary router has no "network" commands at all? But the secondary router has a bunch. Shouldn't the primary router have "network" commands as well? I guess what I'm getting at is, shouldn't the BGP configs mirror each other as close as possible?
networker050184 wrote: » If it were my set up, then yes they would match. There are other ways of getting the networks into BGP besides the network command though. You can use summaries or redistribution also.
Forsaken_GA wrote: » Well, it's hard to say what might be trying to be accomplished without taking a look at the configs for both routers, but it's not unfeasible that they're having one router announce the routes to the ISP so that all incoming traffic is forced down that particular pipe, and then configure all outbound traffic to go through the other router. I can't imagine a good reason for introducing asymetric routing on purpose, but like I said, without seeing the configs it's hard to divine any intent.
notgoing2fail wrote: » What is the difference between "set local-preference 100" and "set weight 100"?
notgoing2fail wrote: » Thanks guys for your take on local preference and weight. I understand now. Is there a way to confirm that traffic is indeed going out the primary router? Is there some kind of SHOW command that you can do to check?
networker050184 wrote: » Get on one of your devices and look at the route. Same way you would verify any other routing direction.
notgoing2fail wrote: » lol simple enough. I had thought maybe since I have 2 routers communicating with each other via iBGP, that there were some kind of stats that would indicate that traffic is indeed going out the primary with the higher local preference...
notgoing2fail wrote: » Thank you gentlemen I will try both suggestions. Here's another quick general question for you guys. Is eBGP only between your edge network to the ISP? Let's say you are a service provider and you have clients that have their own AS. If they are hanging off your internal equipment. Would your "BGP" to them be considered iBGP or eBGP? I know that iBGP is only within the same AS and since your AS would be different from the customer's AS, I assume it is eBGP but can you have eBGP behind your network? Or is "everything" that is behind your network considered iBGP?
Forsaken_GA wrote: » It depends on how you design it. Simply put, if the neighboring AS is different than your own, it'll be an eBGP connection. If it's the same, it's an iBGP connection (until you get into Confederations anyway)
notgoing2fail wrote: » Thanks, I had assumed that anytime you get two different AS's connecting, you will get eBGP. I just wasn't sure if eBGP is still considered eBGP when inside your network. The customers AS is *not* inside my AS, it's hanging off of it, and then is routed out our primary router....
Forsaken_GA wrote: » You're probably over thinking it. BGP is a pretty simple protocol in operation. It's logic as to whether or not it considers a connection ebgp or ibgp is pretty binary - does the AS number match? if yes, ibgp, if no, ebgp. There are a few tricks that fudge with those rules, but I don't think you're quite there yet. If you've got a customer that's connecting to you via eBGP, then as far as BGP is concerned, that's not part of your network, it's someone elses network, even if the gear is housed in your data center. So their network does whatever it wants inside of itself to route traffic to you over your eBGP connection, then within your network, you do whatever you want until it finally hits an egress router who hands it off to someone else's network who then does the same until it finally reaches it's destination. With someone else's AS hanging off your network, you're basically functioning as a service provider. BGP is more about routing by policy than routing by shortest/best path You can use ibgp or ebgp within your own network as needed. I've seen folks setup ebgp connections internally using private AS numbers in order to avoid the route reflector/confederation infrastructure. I wouldn't really recommend it, but it works pretty well, as long as you strip the private AS numbers from the path before you propagate it to the rest of the world.
jason_lunde wrote: » If your having to deal with BGP at work, its probably worth your time to pick up Internet Routing Architectures and give it a read. The cisco docs are a bit antiquated, and the book will give you a pretty good grasp on BGP.
notgoing2fail wrote: » So I guess my question is this. Why, out of 20 routes, were 5 used in the BGP "network" command? Why were not all 20 static routes also advertised in the "network" command? Since I have static routes, what is the consequences of removing them from the "network" command?
notgoing2fail wrote: » Can you advertise a network that isn't directly connected to your router?
jason_lunde wrote: » Yep, as long as its in your ip routing table you can advertise it.