Got it

OSPF route import and default route

Latest reply: Dec 24, 2018 10:06:00 753 4 8 0 0

Default-route-advertise: When an external route has a default route, the route is imported and is flooded in the OSPF area. Default-route-advertise always: Regardless of whether the default route exists, an external route is generated in the OSPF area. This method is used to import the default route.

Import route is an OSPF route that imports other protocols, such as static, bgp, and rip. External default routes cannot be imported.

R2, R3, and R4 use the OSPF protocol. The configuration is as follows:

R1

#
Interface Ethernet0/0/0
Description to-R2
Ip address 10.10.1.1 255.255.255.252
#


#
Interface LoopBack0
Ip address 1.1.1.1 255.255.255.255
#
Ip route-static 0.0.0.0 0.0.0.0 10.10.1.2
#


R2

#
Interface Ethernet0/0/0
Description to-R1
Ip address 10.10.1.2 255.255.255.252
#
Interface Ethernet0/0/1
Description to-R3
Ip address 10.10.2.1 255.255.255.252
Ospf authentication-mode md5 1 cipher CM)gG6|w^8pe} @HMNPn@t>a#
Ospf network-type p2p
#


#
Interface LoopBack0
Ip address 2.2.2.2 255.255.255.255
Ospf enable 1 area 0.0.0.0
#
Ospf 1 router-id 2.2.2.2
Import-route static
Area 0.0.0.0
Network 10.10.1.0 0.0.0.255
Network 10.10.2.0 0.0.0.255
#
Ip route-static 1.1.1.1 255.255.255.255 10.10.1.1
#


R3

#
Interface Ethernet0/0/0
Description to-R2
Ip address 10.10.2.2 255.255.255.252
Ospf authentication-mode md5 1 cipher mokG=CKHnX+/Y@:Y>Lw(Q~##
Ospf network-type p2p
#
Interface Ethernet0/0/1
Description to-R4
Ip address 10.10.3.1 255.255.255.252
#


#
Interface LoopBack0
Ip address 3.3.3.3 255.255.255.255
Ospf enable 2 area 0.0.0.0
#
Ospf 2 router-id 3.3.3.3
Area 0.0.0.0
Network 10.10.2.0 0.0.0.3
Network 10.10.3.0 0.0.0.3
#


R4

#
Interface Ethernet0/0/0
Description to-R3
Ip address 10.10.3.2 255.255.255.252
#
Interface Ethernet0/0/1
Description to-R5
Ip address 10.10.4.1 255.255.255.252
#


#
Interface LoopBack0
Ip address 4.4.4.4 255.255.255.255
Ospf enable 3 area 0.0.0.0
#
Ospf 3 router-id 4.4.4.4
Import-route static
Area 0.0.0.0
Network 10.10.3.0 0.0.0.3
Network 10.10.4.0 0.0.0.3
#
Ip route-static 5.5.5.5 255.255.255.255 10.10.4.2
#


R5

#
Interface Ethernet0/0/0
Description to-R5
Ip address 10.10.4.2 255.255.255.252
#


#
Interface LoopBack0
Ip address 5.5.5.5 255.255.255.255
#
Ip route-static 0.0.0.0 0.0.0.0 10.10.4.1
#


R2 and R4 import static routes and advertise detailed routes. If the default route is advertised through default-route-advertise on R2 or R4, the default route has a higher priority than the route learned through OSPF. As a result, the route to 1.1.1 or 5.5.5.5 is unreachable.

  • x
  • convention:

YOO
Created Dec 24, 2018 06:17:54

Regardless of whether the default route exists, an external route is generated in the OSPF area. can you pls share more information on the topic?
View more
  • x
  • convention:

yiyi0519
Created Dec 24, 2018 06:18:21

when we advertise the default routing through the OSPF, if the device not have the default routing on the FIB, we can add one command "always", It will automatically generate a default route
View more
  • x
  • convention:

dagui
Created Dec 24, 2018 06:19:38

What are the main scenarios in which OSPF route import and default route are used?
View more
  • x
  • convention:

user_2915719
Created Dec 24, 2018 10:06:00

I still did not understood the import, how is the source was specified.
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.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.