Octet

What does the network command do in EIGRP, and what does passive-interface change?

Show the answer

Say this first

The network statement with a wildcard mask selects interfaces. Any interface whose primary address falls in the range runs EIGRP: it sends hellos and its subnet is advertised. It does not inject a route the way a BGP network statement does. passive-interface keeps the subnet advertised but stops hellos, so no neighbor can form there. Use it on user and server LANs.

Go deeper

Precise network statements

Cisco IOS
router eigrp 100
 network 10.0.12.0 0.0.0.255
 network 10.1.0.0 0.0.0.255
 passive-interface default
 no passive-interface GigabitEthernet0/0/0

passive-interface default plus explicit exceptions is the safe pattern: a new LAN interface comes up passive, so nobody can plug in a router and start exchanging routes.

Checking it

Output
R1# show ip eigrp interfaces
EIGRP-IPv4 Interfaces for AS(100)
                              Xmit Queue   PeerQ        Mean   Pacing Time   Multicast    Pending
Interface              Peers  Un/Reliable  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Gi0/0/0                  1        0/0       0/0           1       0/0           50           0

Passive interfaces do not appear here, but their subnets are still in the topology table and show ip protocols lists them as passive.

Passive is not the same in every protocol

ProtocolPassive interface
EIGRPNo hellos sent or processed, no neighbors, subnet still advertised
OSPFSame idea: no hellos, subnet still advertised
RIPStops sending updates, but still listens to received updates

Traps

  • Thinking the network command decides which prefixes are advertised regardless of interfaces. It matches interfaces only.
How did you do?Book 3.4 Routing