Got it

BGP default route

Created: May 28, 2020 01:38:41Latest reply: Jun 5, 2020 23:40:56 500 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi all,

I know both the peer default-route-advertise and default-route import commands can import the default route to BGP. What's their difference?

I need the default route can be imported to BGP only when there is a default route in the local routing table, which is similar to the import default route to OSFP without the 'always' parameter. In addition, the default route should be sent only to the specified peer.

How do I configure the policy to achieve this effect?

Thanks.

Featured Answers
Popeye_Wang
Admin Created May 28, 2020 01:42:22

Hello,

If you use the default-route imported command to import the default route, you need to run the import-route command first. If you run only the default-route imported command, the default route cannot be imported. In addition, the default-route imported command is used to import only the default routes that exist in the local routing table.

And after the peer default-route-advertise command is used on a device, the device sends a default route with the local address as the next-hop address to a specified peer, regardless of whether there is a default route in the routing table.

If you want to send the default route to a specified BGP peer only when the default route exists in the local routing table, kindly use the following command:

peer xx.xx.xx.xx default-route-advertise conditional-route-match-all 0.0.0.0 0


View more
  • x
  • convention:

All Answers

Hello,

If you use the default-route imported command to import the default route, you need to run the import-route command first. If you run only the default-route imported command, the default route cannot be imported. In addition, the default-route imported command is used to import only the default routes that exist in the local routing table.

And after the peer default-route-advertise command is used on a device, the device sends a default route with the local address as the next-hop address to a specified peer, regardless of whether there is a default route in the routing table.

If you want to send the default route to a specified BGP peer only when the default route exists in the local routing table, kindly use the following command:

peer xx.xx.xx.xx default-route-advertise conditional-route-match-all 0.0.0.0 0


View more
  • x
  • convention:

Glad to learned this.
View more
  • x
  • convention:

Very pleased
View more
  • x
  • convention:

Comment

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

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

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.
Reminder
Please bind your phone number to obtain invitation bonus.