实验拓朴:
 
 
 

 

实验配置:

R1R2 基本EBGP邻居关系

 

实验现象:

1.  R2  BGP 配置default-in originate

R1#sh ip bgp

 

R2#sh ip bgp

 

R1R2  Bgp表里为空.

 

 

2.  R2  BGP 配置default-in originate ,并配置静态路由 ip route 0.0.0.0 0.0.0.0 s1/1

R1#sh ip bgp

 

R2#sh ip bgp

 

R2#sh ip route st
S*   0.0.0.0/0 is directly connected, Serial1/1

 

R1R2  Bgp表里仍为空.

 

 

3.  R2 配置ip route 0.0.0.0 0.0.0.0 s1/1 , 并在 BGP 中重分布静态路由.

2 结果

 

 

4.  R2  BGP 配置default-in originate  + 重分布静态 ,并配置静态路由 ip route 0.0.0.0 0.0.0.0 s1/1  .

R1#sh ip bgp
BGP table version is 2, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path
*> 0.0.0.0          10.1.12.2                0             0 2 ?

R1#

 

R2#sh ip bgp
BGP table version is 2, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path
*> 0.0.0.0          0.0.0.0                  0         32768 ?

R3#

 

R1R2 BGP表里出现默认路由 0.0.0.0 .

 

 

实验结论:

 

We have demonstrated that advertising a default route via BGP requires three steps:
Step 1. Create a static default route.  

配置静态默认路由

Step 2. Redistribute static into BGP. 

重分布静态进入BGP

Step 3. Use the BGP command default-information originate. 

使用BGP default-information originate命令