cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1919
Views
40
Helpful
12
Replies

BGP WAN LINKS

I was looking at BGP tutorial and the author said that we do not advertise WAN links in BGP, is that correct and if so how can a remote AS access the subnets of this AS when there is no reachability info for the wan links.

12 Replies 12

Hello,

 

what they mean is: let's say you have a WAN link where one side has IP address 1.1.1.1/30, and the other side has IP address 1.1.1.2/30, you do not need to advertise this network in BGP (network 1.1.1.0 mask 255.255.255.252) for the two sides to connect and establish a BGP neighborship. It happens automatically on directly connected links.

Seroj Hacopian
Level 1
Level 1

Hi,

Bgp establishes neighbor adjacency 

By neighbor manual configuration of 

Neighbor ip address on the Same subnet 

and remote AS or use of loop back ip address

using eBGP  multi hop 2 -254.

BGP is a border gate way protocol 

connecting to other Autonomous networks.

 

Hello
I am not sure what text your referring to however it sounds like they may be suggesting in a dual ISP wan ebgp peering scenario not to advertise WAN Links (prefixes) associated with one ISP to another ISP as this could make your own bgp router(s) become a transit path for either ISP and create suboptimal routing..


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

so what he was trying to implement was 3 AS(as1,as2,as3) connected in a linear fashion. and was redistributing his connected loopbacks in AS3 into bgp. but then used route maps to take the wan links off saying we do not advertise wan links. the other problem im having is i can see those loopback in AS3 being advertised to AS1(*>routes), but i cannot ping these loopback host addresses. and i am thinking the reason behind this is the lack of information about the wan links. can someone elaborate.

Let me take a slightly different approach to answering the question. First let me clarify what I believe that original post is about. When we are dealing with BGP it might be helpful to distinguish types of subnets that might be involved: there are target subnets and these are the subnets where hosts are connected that we need to be able to reach (think customer inside subnets). And there are transit subnets and these are the subnets that connect the BGP peers but do not have any hosts that need to be reachable.

 

I believe that the point of the original post was that in configuring BGP we do need to advertise target subnets and generally do not need to advertise transit subnets. And I believe that in general this is true.

 

Let me suggest an example which may help to explain this point. The original post mentions as1, as2, and as3. So let me suggest this topology:

as1 has a customer router C1 which has loopback interface 1.1.1.1. router C1 connects to the edge router E12 (connects as1 to as2). The link between as1 and as2 is 12.12.12.1 at E12 and connects to 12.12.12.2 at E21 which is the edge router for as2. In as2 is customer router C2 which has loopback interface 2.2.2.2. C2 connects to edge router E23 which has IP 23.23.23.2 and connects to 23.23.23.3 on E32 which is the edge router for as3. as3 has customer router C3 which has loopback interface 3.3.3.3.

 

We will assume that there are appropriate subnets providing connectivity within each as and that an appropriate routing protocol is running in each as so that the customer routers can determine to which edge router they should send their traffic. I am not going to supply those details since they do not really matter in what we need to discuss. 

 

The original poster asks about how as3 can advertise its target subnet (3.3.3.3) without advertising its transit networks. Let me explain it in this way:

- C3 which has the loopback advertises it in its IGP to E32. 

- the IGP on E32 receives the advertisement and creates an entry in the routing table for 3.3.3.3.

- E32 has a network statement for the loopback and sends a EBGP advertisement for 3.3.3.3 to E23. (E32 does not advertise the transit network 23.23.23.0 - and does not need to because both routers know this is how they reach the neighbor AS)

- E23 receives the EBGP advertisement and creates an entry in its BGP table with the target subnet, the originating AS#, and the advertising router.

- E23 sends an IBGP advertisement to E21. E23 does not advertise the transit network because E21 does not need to know about 23.23.23.0 and only needs to know how to reach E23.

- E21 receives the IBGP advertisement and creates an entry in its BGP table with the target subnet, the originating AS#, and the advertising router (which was E23).

- E21 sends an EBGP advertisement to E12 for network 3.3.3.3 with an as path of as2,as3 and itself as the advertising router. E21 does not send any advertisement for either of the transit networks (23.23.23.0 or 12.12.12.0) E12 already knows that 12.12.12.0 is how it reaches the advertising router and has no need to know about 23.23.23.0

- E12 receives the BGP advertisement for 3.3.3.3 and creates an entry in its BGP table with the target subnet, the as path, and the advertising router.

- E12 then advertises into the IGP that network 3.3.3.3 is reachable through E12.

- If C1 wants to access 3.3.3.3 it will use its routing entry and forward the packet to E12. (no need for any transit network information here)

- E12 receives the packet and looks in its table and sees that it needs to forward to E23. (no need for any transit network information here)

- E23 receives the packet and looks in its table and sees that it needs to forward to E32. It does not need any entry in its table for the transit network, since the transit network is known from the neighbor negotiation.

- E32 receives the packet and looks in its table and finds that it needs to forward to C3.

 

In this way the target subnets are advertised in BGP while the transit subnets are not advertised in BGP. I believe this is the main point of the original post.

HTH

Rick

yes you describe the scenarios perfectly, but why can i not ping the loopback/32 in as3 from as1. i can see them as best routes in as1. and i am not advertising wan links any where.

Hello

could be due to your route-maps -can you post ?

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

so i have added the config for R3,and bgp config for R6 1.PNG2.PNG3.PNG4.PNG

Hello

AS77 looks like they dont have any ibgp peering between each other, is that correct?

Can you post the bgp and route tables in that ASN for thsoe rtrs


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

here is the config for router R4. i dont think it matters if the routers are ibpg neighbor. i had a similar scenario with one router in the middle AS and i was still having the same issue. i know its a simple mistake im making.both r4 r6 are configured similarly5.PNG6.PNG

Hello
Youve posted the only bgp table and not the route table for R4 for AS77.
Now from AS5500 the next hop towards AS77 for the prefixes you’ve posted route via R6 not R4.

So to be able to assist further we need to understand how the current routing path for all prefixes between AS5500 and AS711-911 Can you share the below output from these rtrs, include this information into a file and attach to this post please.

sh arp
sh ip bgp
sh ip protocols
sh ip route

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

here is the output from R4. the same reachability issues existed without the Rmaps. 

r4

Gateway of last resort is not set

200.50.2.0/32 is subnetted, 1 subnets
B 200.50.2.1 [20/0] via 10.1.37.2, 00:00:25
200.60.2.0/32 is subnetted, 1 subnets
B 200.60.2.1 [20/0] via 10.1.37.2, 00:00:25
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.24.0 is directly connected, Serial2/0
C 10.1.37.0 is directly connected, Serial2/1
150.1.0.0/32 is subnetted, 1 subnets
B 150.1.50.1 [20/0] via 10.1.37.2, 00:01:10
150.2.0.0/32 is subnetted, 1 subnets
B 150.2.50.1 [20/0] via 10.1.37.2, 00:01:09
R4#
=============================
Network Next Hop Metric LocPrf Weight Path
*> 150.1.50.1/32 10.1.37.2 0 0 911 i
*> 150.2.50.1/32 10.1.37.2 0 0 911 i
*> 200.50.2.1/32 10.1.37.2 0 911 711 i
*> 200.60.2.1/32 10.1.37.2 0 911 711 i
R4#
========================================


R4#show ip pro
Routing Protocol is "bgp 777"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
10.1.24.1
10.1.37.2
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
10.1.37.2 20 00:01:21
Distance: external 20 internal 200 local 200

==========================================
show arp= no output

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: