37、静默路由

发布时间 2023-08-31 16:12:18作者: 五杀摇滚小拉夫

 拓扑如下:

编辑

AR1的路由器G0/0/0连接的pc,pc并不会发送hello报文,更不会建立邻居关系,可以将端口配置为默认路由,由于端口不收发hello包,从而节省设备的性能。

AR1、AR3 配置静默接口

[AR1]ospf 1 router-id 1.1.1.1
[AR1-ospf-1]sil	
[AR1-ospf-1]silent-interface G0/0/1
[AR1-ospf-1]quit
[AR1]quit
<AR1>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<AR1>
[AR3]ospf 1 router-id 3.3.3.3
[AR3-ospf-1]sil	
[AR3-ospf-1]silent-interface G0/0/1
[AR3-ospf-1]quit
[AR3]quit
<AR3>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<AR3>