You can enter EIGRP commands from two modes
router configuration mode
enables the protocol, determines which networks will run EIGRP,and sets global characteristics.
Interface configuration mode
covers customisation of metrics, timers etc.To start an EIGRP session use the
command then the AS number which can beany number 1 to 65535, the network numbers connected to the router using the
command followed by the network number. Let’s look at enabling EIGRP for AS 20 on a router connected to two networks with the network 10.3.1.0/24 and 172.16.10.0/24
router eigrp 20
With EIGRP you use classful network address, which has subnet and host bits turned off.To stop EIGRP from working on a specific interface such as a BRI interface or a serial connectionto the internet, we need to flag the interface as passive.For example to make serial 0/1 passive.
router eigrp 20
passive-interface serial 0/1
Doing this stops the interface from sending or receiving hello packets
it won’t send or receive route information on this interface and stop adjacencies forming.The impact of the passive-interface command depends upon the routing protocol e.g. on aninterface
running RIP the passive-interface command prohibits the sending of routeupdates but allows their receipt
.Thus a RIP router with a passive interface will still learn aboutnetworks advertised by other routers.
This is different from EIGRP where a passive interfacewill neither send nor receive updates.
Lets configure the same network configured in the last section it doesn’t matter that RIP andIGRP are already running unless your worried about bandwidth EIGRP has an administrativedistance of 90. (IGRP is 100 RIP is 120) so only EIGRP routes will populate the routing tableseven if all 3 routing protocols are enabled.