Got it

What is the diffence between import-route and network when BGP imports default routes?

Created: Nov 30, 2019 09:39:51Latest reply: Nov 2, 2021 03:28:06 679 8 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi all,

When BGP imports default routes, what are the differences between import-route and network?

 For example:

There is a default route on the device.

#

ip route-static vpn-instance XXX 0.0.0.0 0.0.0.0 null0


I want to import the route to BGP. How to configure?

#

BGP XXX

Ipv4-family vpn-instance XXX

 Import-route static

#


or


#

BGP XXX

Ipv4-family vpn-instance XXX

 Network 0.0.0.0

#


Thanks

Featured Answers
Popeye_Wang
Admin Created Nov 30, 2019 09:41:04

Hi Spout,

BGP can import routes by using the import-route command or network command:

·         In import mode, IGP routes, including RIP, OSPF, and IS-IS routes, are imported into BGP routing tables based on protocol type. To ensure the validity of imported IGP routes, BGP can also import static routes and direct routes in import mode.

·         In network mode, BGP imports the routes in the IP routing table one by one to BGP routing tables. The network mode is more accurate than the import mode.

If the default-route imported command has not been used, BGP cannot import default routes when you run the import-route command to import routes from other protocols.


So you can use the network command or the default-route imported + import-route command.

View more
  • x
  • convention:

jjjjjpp
jjjjjpp Created Aug 26, 2021 11:01:26 (0) (0)
please an example of import-route command with IS-IS to import  
chenhui
chenhui Reply jjjjjpp  Created Aug 26, 2021 11:03:26 (0) (0)
Do you mean import route into IS-IS process?  
jjjjjpp
jjjjjpp Reply chenhui  Created Aug 26, 2021 11:16:08 (0) (0)
i mean import for example IS-IS in RIP. I ask because I saw the basic command but it can be clearer in an example  
chenhui
chenhui Reply jjjjjpp  Created Aug 26, 2021 12:04:05 (0) (0)
We'll talk in your post.  
user_4237671
user_4237671 Created Nov 2, 2021 03:27:57 (0) (0)
 
Laiheang
Laiheang Created Nov 2, 2021 04:10:01 (0) (0)
 
All Answers

Hi Spout,

BGP can import routes by using the import-route command or network command:

·         In import mode, IGP routes, including RIP, OSPF, and IS-IS routes, are imported into BGP routing tables based on protocol type. To ensure the validity of imported IGP routes, BGP can also import static routes and direct routes in import mode.

·         In network mode, BGP imports the routes in the IP routing table one by one to BGP routing tables. The network mode is more accurate than the import mode.

If the default-route imported command has not been used, BGP cannot import default routes when you run the import-route command to import routes from other protocols.


So you can use the network command or the default-route imported + import-route command.

View more
  • x
  • convention:

jjjjjpp
jjjjjpp Created Aug 26, 2021 11:01:26 (0) (0)
please an example of import-route command with IS-IS to import  
chenhui
chenhui Reply jjjjjpp  Created Aug 26, 2021 11:03:26 (0) (0)
Do you mean import route into IS-IS process?  
jjjjjpp
jjjjjpp Reply chenhui  Created Aug 26, 2021 11:16:08 (0) (0)
i mean import for example IS-IS in RIP. I ask because I saw the basic command but it can be clearer in an example  
chenhui
chenhui Reply jjjjjpp  Created Aug 26, 2021 12:04:05 (0) (0)
We'll talk in your post.  
user_4237671
user_4237671 Created Nov 2, 2021 03:27:57 (0) (0)
 
Laiheang
Laiheang Created Nov 2, 2021 04:10:01 (0) (0)
 
nice
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.