passive-interface default でパッシブになるインタフェース

スポンサーリンク
スポンサーリンク

NOTE

同じpassive-interface default でもOSPF とEIGRP では異なる。
OSPF は全てのインタフェース、EIGRP はEIGRP 設定が有るインタフェースが対象となる。

インタフェースはこんな感じ。

R1#sh ip int b | e una
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0         10.1.23.1       YES NVRAM  up                    up      
GigabitEthernet0/1         10.1.7.1        YES NVRAM  up                    up      
Loopback0                  10.0.0.1        YES NVRAM  up                    up      

R1#

プロトコル設定も同条件で、Lo 0とGi0/0 だけ。

R1#sh run | sec router ospf
router ospf 65000
 router-id 10.0.0.1
 network 10.0.0.1 0.0.0.0 area 0
 network 10.1.23.1 0.0.0.0 area 0
R1#
R1#sh run | sec router eigrp
router eigrp 65000
 network 10.0.0.1 0.0.0.0
 network 10.1.23.1 0.0.0.0
 eigrp router-id 10.0.0.1
R1#

passive-interface default を入れる。

R1(config)#router os 65000
R1(config-router)#passive-interface default 
R1(config-router)#       
R1(config-router)#router ei 65000
R1(config-router)#passive-interface default 
R1(config-router)#

結果は以下のとおり。

R1#show ip protocols 
*** IP Routing is NSF aware ***

Routing Protocol is "application"
  Sending updates every 0 seconds
  Invalid after 0 seconds, hold down 0, flushed after 0
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Maximum path: 32
  Routing for Networks:
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 4)

Routing Protocol is "eigrp 65000"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incoming updates
  EIGRP-IPv4 Protocol for AS(65000)
    Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
    Soft SIA disabled
    NSF-aware route hold timer is 240
    Router-ID: 10.0.0.1
    Topology : 0 (base) 
      Active Timer: 3 min
      Distance: internal 90 external 170
      Maximum path: 4
      Maximum hopcount 100
      Maximum metric variance 1

  Automatic Summarization: disabled
  Maximum path: 4
  Routing for Networks:
    10.0.0.1/32
    10.1.23.1/32
  Passive Interface(s):
    GigabitEthernet0/0
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.1.23.2             90      00:00:49
    10.1.23.3             90      00:02:31
  Distance: internal 90 external 170

Routing Protocol is "ospf 65000"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 10.0.0.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.0.0.1 0.0.0.0 area 0
    10.1.23.1 0.0.0.0 area 0
  Passive Interface(s):
    GigabitEthernet0/0
    GigabitEthernet0/1
    GigabitEthernet0/2
    GigabitEthernet0/3
    Loopback0
    RG-AR-IF-INPUT1
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 110)

R1#

passive-interface の機能としての差はないが、パッシブ扱いになるインタフェースは違っている。
上記はCML による結果だが、実機でも同じだった。

R1#sh ver | inc IOS
Cisco IOS Software, IOSv Software (VIOS-ADVENTERPRISEK9-M), Version 15.8(3)M2, RELEASE SOFTWARE (fc2)
ROM: Bootstrap program is IOSv
Cisco IOSv (revision 1.0) with  with 460001K/62464K bytes of memory.
R1#

コメント