Got it

default-route-advertise using conditional-route-match-any

Created: Jun 3, 2020 22:55:20Latest reply: Jun 5, 2020 08:00:01 140 7 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello Everyone, 


I have two routers connected on two diferents carrier/isp  and receiving full routing from each carrier, so, there is an ibgp section between this my two routers, so, I have to send default-route from these two routers to one S6720, ( unfortunatelly I can't send the full routing to it), but I wouldn't like to request the Service Providers to send me the default route and then advertise to my IBGP sections. Looking up on the documentation I've found this conditional sample below, then, I am wondering if would be possible, I sent the default routing just after receiving routes from my Service Provider, and when it goes down, this default-route should be taken out.


--part of the documentation from Huawei 

Run peer { group-name | ipv4-address } default-route-advertise [ route-policy route-policy-name ] [ conditional-route-match-all { ipv4-

address1 { mask1 | mask-length1 } } &<1-4> | conditional-route-match-any { ipv4-address2 { mask2 | mask-length2 } } &<1-4> ]


The device is configured to send a default route to the specified peer or a peer group.

If route-policy route-policy-name is set, the BGP device changes attributes of the default route based on the specified route policy.

If conditional-route-match-all { ipv4-address1 { mask1 | mask-length1 } } &<1-4> is set, the BGP device sends the default route to the peer only when routes that match all the all specified conditions exist in the local routing table.

If conditional-route-match-any { ipv4-address2 { mask2 | mask-length2 } } &<1-4> is set, the local device sends a default route to the peer when routes that match any of the specified conditions exist in the local routing table.

--


Can someone help with this question? 

Thx


  • x
  • convention:

Featured Answers

Recommended answer

Admin Created Jun 4, 2020 01:59:20 Helpful(0) Helpful(0)

Hi,
You can use the peer xx.xx.xx.xx default-route-advertise conditional-route-match-all 0.0.0.0 0 command. 

Then the routers send the default route to the S6720 only when the default route exists in the local routing table.

I hope this helps.

View more
  • x
  • convention:

All Answers
Popeye_Wang Admin Created Jun 4, 2020 01:59:20 Helpful(0) Helpful(0)

Hi,
You can use the peer xx.xx.xx.xx default-route-advertise conditional-route-match-all 0.0.0.0 0 command. 

Then the routers send the default route to the S6720 only when the default route exists in the local routing table.

I hope this helps.

View more
  • x
  • convention:

Unicef MVE Created Jun 4, 2020 02:04:33 Helpful(0) Helpful(0)

Posted by Popeye_Wang at 2020-06-04 01:59 Hi,You can use the peer xx.xx.xx.xx default-route-advertise conditional-route-match-all 0.0.0.0 0 c ...
Good
View more
  • x
  • convention:

Live%20Lead%20Love%20%3A)
welisson_br Created Jun 4, 2020 02:57:58 Helpful(0) Helpful(0)

Popeye,

Actually I am not going to receive the default-route from any Service Provider to my Router, in this scenario I will receive the full routing table,so, let's call router A (connected with Service Provider A) and router B (connected with Service Provider B) either, ISP will send full routing, but I would like to send to ibgp section default routing just when the service providers are UP.
View more
  • x
  • convention:

Luisjre Created Jun 4, 2020 10:57:58 Helpful(0) Helpful(0)

Thank you for the information
View more
  • x
  • convention:

Telecomunication%20Engineer
Luisjre Created Jun 4, 2020 10:58:09 Helpful(0) Helpful(0)

Nice job
View more
  • x
  • convention:

Telecomunication%20Engineer
Popeye_Wang Admin Created Jun 5, 2020 03:51:51 Helpful(0) Helpful(0)

Posted by welisson_br at 2020-06-04 02:57 Popeye,Actually I am not going to receive the default-route from any Service Provider to my Router, ...
I think the command I've been given will satisfy this need.
When the ISP does not send the default route to Router A/B, the conditional-route-match-all parameter does not match 0.0.0.0 and the default route is not sent to IBGP.
View more
  • x
  • convention:

ViktorG
ViktorG Created Jun 5, 2020 08:00:01 Helpful(0) Helpful(0)

Hello @welisson_br !

You can put as a conditional route your directly connected network with ISP :)
This route will be matched as long as you have the direct link is UP.
But, if you want more precise control (sometimes, your upstream ISP may lose the its own upstream peering connections) you can select the most stable networks in the internet, Like Facebook and Google and use for conditional matching, if these routes are lost from your Routing table, it mostly means that your upstream also lost it, and it’s time to withdraw your
0.0.0.0/0 advertisement.
peer xx.xx.xx.xx default-route-advertise conditional-route-match-any Google/24 Facebook /24
Thank you and have a great day!
Viktor
View more
  • x
  • convention:

Take%20care%20and%20have%20a%20great%20day!%3Cbr%2F%3E%3Cbr%2F%3EViktor

Comment

Comment
You need to log in to comment to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.