Cisco_RIP被動接口的配置


需求:

  R1、R2、R3上配置回環接口和RIPv2動態路由協議,R2上設置passive-interface(被動接口),不主動發送hello報文,但是可以建立鄰居關系,不宣告2.2.2.2的路由。

拓撲:

配置:

  R1的配置:

interface loopback 0
  ip address 1.1.1.1 255.255.255.255
interface f0/0
  ip address 12.1.1.1 255.255.255.0
  no shutdown
interface f0/1
  ip address 13.1.1.1 255.255.255.0
  no shutdown
router rip
  version 2
  no auto-summary
  network 1.1.1.1
  network 12.1.1.0
  network 13.1.1.0

  R2的配置:

interface loopback 0   ip address 2.2.2.2 255.255.255.255 interface f0/0   ip address 12.1.1.2 255.255.255.0   no shutdown interface f0/1   ip address 23.1.1.2 255.255.255.0   no shutdown router rip   version 2   no auto-summary  
  passive-interface f0/0    #被動接口
  passive-interface f0/1
  network 2.2.2.2
  network 12.1.1.0  
  network 23.1.1.0

  R3的配置:

interface loopback 0   ip address 3.3.3.3 255.255.255.255 interface f0/0   ip address 13.1.1.3 255.255.255.0   no shutdown interface f0/1   ip address 23.1.1.3 255.255.255.0   no shutdown router rip   version 2   no auto-summary   network 3.3.3.3   network 13.1.1.0   network 23.1.1.0

 

需求驗證:

  R1的路由表:

   R2的路由表:

   R3的路由表:

   可以看出R1和R3的路由表上沒有2.2.2.2的路由信息而R2上有1.1.1.1和3.3.3.3的路由信息,說明被動接口配置成功!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM