cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
87454
Views
55
Helpful
19
Replies
Highlighted
Enthusiast

Difference between Default-originate and network 0.0.0.0 in BGP

Hello,

Please i need someone to clarify what is the difference between the "default-originate" command and "network 0.0.0.0 - ip route 0.0.0.0 0.0.0.0 null0" commands. I see both are serving the same purpose by advertising a default route to a peer but in the same time i feel a difference on them.

Thx

Regards,

A.M.

19 REPLIES 19
Highlighted

Peter, can you explain a scenario where you would use a route map with the neighbor X.X.X.X default-originate?

Highlighted

Hello,

 

take the example below.

 

The default route to neighbor 10.10.10.2 is injected only if there is a route to 192.168.1.0.

 

access-list 1 permit 192.168.1.0
!
route-map DEFAULT 10 permit
match ip address 1
!
router bgp 1
network 10.0.0.0 mask 255.0.0.0
neighbor 10.10.10.2 remote-as 2
neighbor 10.10.10.2 default-originate route-map DEFAULT

Highlighted

Hi,

 

Thanks for the information, but i still have a little doubt, what is the difference between "default-information originate and default-information originate always" ???

Highlighted
Beginner

Adding 1 more question to this question ::

Hi,

what is the difference between "default-information originate and default-information originate always" ???
Highlighted

Hi Uttkap...

 

There is no such command in BGP - default-information originate always... this is for OSPF...

 

In OSPF the default-information originate will advertise a default route when such a route is present in the RIB

 

default-information originate always will make the router advertise a default route regardless of the presence of a default route in the router - hence it ALWAYS originates a default route...