Router eigrp Command on CISCO Router/Switch

Other Cisco Other Cisco Material Original source

Command

router eigrp

Use

The router eigrp command is necessary to enable EIGRP (Enhanced Interior Gateway Routing Protocol). EIGRP must be enabled before carrying out any of the EIGRP commands.

Syntax

R1(config)#router eigrp

Example

In this example, EIGRP is configured on R1 using router eigrp. First, we use the show ip route command to help determine the network layout.

Copy

R1#sh ip route

Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2

i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2

ia – IS-IS inter area, * – candidate default, U – per-user static route

o – ODR, P – periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1 is directly connected, Loopback0

10.0.0.0/24 is subnetted, 2 subnets

C 10.1.1.0 is directly connected, FastEthernet0/0

R1#

Next router eigrp is set on R1.

Copy

R1(config)#router eigrp 101

R1(config-router)#network 10.1.1.0

R1(config-router)#exit

R1(config)#exit

R1#

Afterwards, we do the same to R2.

Copy

R2(config)#router eigrp 101

R2(config-router)#network 10.1.1.0

R2(config-router)#no router eigrp 101

R2(config-router)#exit

R2(config)#

R2#

Now if we type show ip route, we see that EIGRP is enabled and sending routes

Copy

R1#sh ip route

Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2

i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2

ia – IS-IS inter area, * – candidate default, U – per-user static route

o – ODR, P – periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1 is directly connected, Loopback0

10.0.0.0/24 is subnetted, 2 subnets

D 10.2.2.0 [90/30720] via 10.1.1.2, 18:10:59, FastEthernet0/0

C 10.1.1.0 is directly connected, FastEthernet0/0

R1#
← All Other Cisco articles Home