OSPF调用BFD

OSPF调用BFD_第1张图片

R1
[R1]ospf     //进入OSPF
[R1-ospf-1]area 0     //区域 0
[R1-ospf-1-area-0.0.0.0]network 21.1.1.0 0.0.0.255     //宣告网段
[R1-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.255     //宣告网段
[R1-ospf-1-area-0.0.0.0]quit     //退出
[R1-ospf-1]quit     //退出
[R1]
R2
[R2]ospf     //进入ospf	
[R2-ospf-1]area 0     //区域 0
[R2-ospf-1-area-0.0.0.0]network 21.1.1.0 0.0.0.255     //退出
[R2-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255     //退出
[R2-ospf-1-area-0.0.0.0]quit     //退出
[R2-ospf-1]quit     //退出
[R2]
R1
[R1]dis ip routing-table     //查看路由表
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 11       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  Direct  0    0           D   1.1.1.1         LoopBack0
        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
      1.1.1.255/32  Direct  0    0           D   127.0.0.1       LoopBack0
        2.2.2.2/32  OSPF    10   1           D   21.1.1.2        GigabitEthernet
0/0/1
       21.1.1.0/24  Direct  0    0           D   21.1.1.1        GigabitEthernet
0/0/1
       21.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     21.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R1]
R1
[R1]dis ospf peer brief     //查看OSPF邻接关系

	 OSPF Process 1 with Router ID 1.1.1.1
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/1             2.2.2.2          Full        
 ----------------------------------------------------------------------------
[R1]
R1
[R1]ospf     //进入OSPF
[R1-ospf-1]bfd all-interfaces enable     //将BFD运行在OSPF中 
[R1-ospf-1]quit     //退出
[R1]
R2
[R2]ospf     //进入OSPF
[R2-ospf-1]bfd all-interfaces enable     //将BFD运行在OSPF中
[R2-ospf-1]quit     //退出
[R2]
SW1
system-view     //进入全局模式
[Huawei]undo info-center enable     //关闭信息告警提示
[Huawei]interface g0/0/1     //进入接口
[Huawei-GigabitEthernet0/0/1]stp edged-port enable     //将接口设为边缘端口,加快收敛 
[Huawei-GigabitEthernet0/0/1]interface g0/0/2     //进入接口
[Huawei-GigabitEthernet0/0/2]stp edged-port enable     //将接口设为边缘端口,加快收敛
[Huawei-GigabitEthernet0/0/2]quit     //退出
[Huawei]
R1
[R1]dis bfd session all     //查看BFD信息     
--------------------------------------------------------------------------------
Local Remote     PeerIpAddr      State     Type        InterfaceName            
--------------------------------------------------------------------------------

8193  8193       21.1.1.2        Up        D_IP_IF     GigabitEthernet0/0/1     
--------------------------------------------------------------------------------
     Total UP/DOWN Session Number : 1/0
[R1]

OSPF调用BFD_第2张图片

R1
[R1]dis ospf peer brief          //查看OSPF邻接关系

	 OSPF Process 1 with Router ID 1.1.1.1
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 ----------------------------------------------------------------------------
[R1]

你可能感兴趣的:(#,BFD)