Showing posts with label EIGRP. Show all posts
Showing posts with label EIGRP. Show all posts

CCNP Routing: EIGRP Quick Notes

EIGRP Quick Notes
Make sure you know all the below concept before appearing for CCNP Routing exam
  • AD of EIGRP Internal Route is 90
  • AD of EIGRP external Route is 170
  • AD of EIGRP summary Route is 5
Passive Interface: In EIGRP (and OSPF) the passive interface command stops sending outgoing hello packets, hence the router cannot form any neighbor relationship via the passive interface. This behavior stops both outgoing and incoming routing updates

Feasible successor is a route whose Advertised Distance is less than the Feasible Distance of the current best path. A feasible successor is a backup route, which is not stored in the routing table but stored in the topology table.

EIGRP stub advertises summary and directly connected routes. EIGRP stub routing feature improves network stability, reduce resources utilization and simplifies stub router configuration. Any neighbor that receives a packet informing it of the stub status will not query the stub router for any routes.EIGRP stub configuration command increases scalability by limiting the
EIGRP query range

Active State: When a route (current successor) goes down, the router first checks its topology table for a feasible successor but it can’t find one. So it goes active on the that route to find a new successor by sending queries out to its neighbors requesting a path to the lost route.

Below is the order of the events happen when EIGRP topology change is detected:
· Dual is notified
· The neighbor adjacency is deleted
· Remove all topology entries learned from that neighbor
· The feasible route is used

Possible causes for EIGRP stuck-In-Active Routers ?
· Some query or reply packets are lost between the routers
· A failure causes traffic on a link between two neighboring routers to flow in only one direction(unidirectional link)

Prefix lists are configured to match an exact prefix length or prefix range.The ge and le keywords ae used to specify a range Prefix lists are configured with permit or deny keywords to either permit or deny the prefix based on matching condition.

EIGRP manual summarization is configured on a per interface basis. The summary address is entered into the routing table and is shown to be sourced from the null0 interface
NOTE : EIGRP performs an auto-summarization each time it crosses a border between two different major networks.

Key Concept of configuring EIGRP stub routing feature in a hub and spoke network ?
· Only remote routers are configured as stubs
· Stub routers are not queried for routes
· A stub router should have only EIGRP hub routers as neighbors

In a frame-relay environment, spoke routers can be configured as EIGRP stubs

Variance 1 in EIGRP means unequal load balancing is disabled ,it supportequal-cost load balancing

In EIGRP, If the multipoint network has different speeds allocated to the VCs,take the lowest CIR and simply multiply it by the number of circuits. This is because in Frame-relay all neighbors share the bandwidth equally, regardless of the actual CIR of each individual PVC, so we have to get the lowest speed CIR rate and multiply it by the number of circuits. This result will be applied on the main interface (or multipoint connection interface).

EIGRP Bandwidth: By default, EIGRP will limit itself to using no more than 50% of the interface bandwidth. The primary benefit of controlling EIGRP’s bandwidth usage is to avoid losing EIGRP packets, which could occur when EIGRP generates data faster than the interface line can absorb it. This is of particular benefit on Frame Relay networks, where the access interface bandwidth and the PVC capacity may be very different.


Notice that the “maximum-paths” command is used to share traffic to equal cost path while the “variance” command can share traffic to unequal cost path.

The ip summary-address eigrp {AS number} {address mask} command is used to configure a summary aggregate address for a specified interface.
Read More...

EIGRP Configuration and Troubleshooting commands

EIGRP Configuration

Syntax

Router(config)#router eigrp <Autonomous-system-number>
Router(config-router)#network <network address>[wild card-mask] (wild card mask is optional)
Router(config-router)#no auto-summary
Router(config-router)#variance <multiplier> (Optional)
 

To influence the metric,it is possible to configure bandwidth on the interfaces:

Router(config)#Interface<interface>
Router(config-if)#bandwidth<BW in kbps>

Configure Default paths in EIGRP
Method 1:
Specify a default network:

Router(config)# ip default-network < network_address >

Method 2:
Create a static default route and then include network 0.0.0.0 in
EIGRP:

Router(config)# ip route 0.0.0.0 0.0.0.0 < next_hop_ip >
Router(config)# router eigrp < as_no >
Router(config-router)# network 0.0.0.0

To view exchange process

Router#debug eigrp packets

To view update process

Router#debug ip eigrp

To view the neighbor table:

Router#show ip eigrp neighbors

To view the EIGRP Topology Table, containing all EIGRP route information: 

Router#  show ip eigrp topology

To view information on EIGRP traffic sent and received on a router: 

Router#  show ip eigrp traffic

To view the bandwidth, delay, load, reliability and MTU values of an interface: 

Router#  show interface s0

To view information specific to the EIGRP protocol: 

Router#  show ip protocols

This command provides us with information on EIGRP timers, EIGRP metrics and summarization

To view the IP routing table: 

Router#  show ip route

To view a specific route within the IP routing table: 

Router#  show ip route 10.3.0.0

To debug EIGRP in realtime: 

Router#  debug eigrp neighbors
Router#  debug eigrp packet
Router#  debug eigrp route
Router#  debug eigrp summary
Read More...

EIGRP Stub

EIGRP Stub

In EIGRP topology,to prevent unnecessary querying, “spoke” routers in a “hub-and-spoke” environment can be configured as Stub routers. A stub router builds a neighbor adjacency with its hub router(s), and will inform neighbors of its stub status.

 

The stub router will still build the full topology table and it will still receives all routes from its neighbors by default.Once EIGRP stub is configured on router,it will immediately respond to any Query packets with an “Inaccessible” message. Neighbors will eventually stop querying the stub router, which helps EIGRP converge quicker and conserves bandwidth. 

.

Syntax:

Router(config)# router eigrp < as_no.>

Router(config-router)# eigrp stub <receive-only / connected/ static/summary/ redistributed> 

Example
Router(config)#  router eigrp 100
Router(config-router)#  eigrp stub connected

 

EIGRP stub Command Options

Receive-only : Prevents the router from advertising any networks 

Connected : Enables the router to advertise connected routes.These must either be included in a network statement or redistributed into EIGRP

Static : Enables the router to advertise static routes. They must be redistributed

into EIGRP

Summary : Enables the router to advertise summary routes, both those created

manually and automatically.

Redistributed: Allows the router to advertise routes redistributed into  EIGRP  from another protocol or AS

 

The connected and static parameters will only advertise those networks if they have been injected into the EIGRP process, either using network statements or using route redistribution. By default, EIGRP stubs will only send connected and summary routes to neighbors.

 

LAB :

Read More...

EIGRP Load-Balancing

EIGRP Load-Balancing

By default, EIGRP will automatically load-balance across equal-metric routes (four by default, six maximum). EIGRP also supports load-balancing across routes with an unequal metric. We must use the variance command to tell EIGRP to load-balance across unequal-metric links

Syntax

Router(config)#  router eigrp 100
Router(config-router)#  variance 2
Router(config-router)#  maximum-paths 6

The variance command assigns a “multiplier,” in this instance of 2. We multiply this variance value by the metric of our Feasible Distance.Thus, any Feasible Successors with a metric within twice that of our Feasible Distance will now be used for load balancing by EIGRP. 

 

Remember, only Feasible Successors can be used for load balancing.The maximum-paths command adjusts the number of links EIGRP can load-balance across.

 

Click here for EIGRP MAXIMUM PATH AND VARIANCE Lab with GNS3

Read More...

EIGRP Authentication

EIGRP Authentication
If you don’t use authentication and you are running EIGRP someone could try to form an EIGRP neighbor adjacency with one of your routers and try to hack into your network.We can use MD5 authentication with EIGRP.
 
By using authentication your router will authenticate the source of each routing update packet that it will receive. it can also used to prevents false routing updates from sources that are not approved. By enabling authentication its possile to ignore malicious routing updates.
Steps
1. Configure a key chain to group the keys.
2. Configure one or more keys within that key chain. The router checks all inbound packets against the list of keys and uses the first valid one it finds.
3. Configure the password or authentication string for that key.Repeat Steps 2 and 3 to add more keys if desired.
4. Optionally configure a lifetime for the keys within that key chain.If you do this, be sure that the time is synchronized between the two routers.
5. Enable authentication and assign a key chain to an interface.
6. Designate MD5 as the type of authentication
 
Create Key Chain:
R(config)#key chain < key chain name >
R(config-keychain)#key < number >
R(config-keychain-key)#key-string < string >
R(config-keychain-key)# send-lifetime < hh:mm:ss > <hh:mm:ss>  (optional)
R(config-keychain-key)# accept-lifetime <hh:mm:ss> <hh:mm:ss> (optional)
Applying Authentication:
R(config)#interface < interface >
R(config-subif)#ip authentication mode eigrp <as_no> md5
R(config-subif)# ip authentication key-chain eigrp <as_no> < key chain name>
Verify
Router# show key chain
Router# debug eigrp packets
Click here for MD5 Authentication Lab
Read More...

EIGRP summarization

By default,Auto summarizing is enabled in EIGRP.Automatic summarization can be disabled using the following command:     
Router(config)#  router eigrp 100
Router(config-router)#  no auto-summary
"No auto-summary" command is needed because by default EIGRP will behave like a classfull routing protocol which means it won’t advertise the subnet mask along the routing information. For example 1.1.1.0/24 and 2.2.2.0/24 will be advertised as 1.0.0.0/8 and 2.0.0.0/8. Disabling auto-summary will ensure EIGRP sends the subnet mask along

Summaries can also be produced manually on any interface
Syntax:
Router(config)# interface < interface >
Router(config-if)# ip summary-address eigrp < as-no> <summarized_network_ip> <summarized_subnet_mask>
Example:

Router(config)#  interface fa 0/0
Router(config-if)#  ip summary-address eigrp 100 79.0.0.0 255.0.0.0
The manually-created summary route is not advertised as an internal EIGRP route, but instead is classified as an EIGRP summary route. An EIGRP summary route has an Administrative Distance of 5.

Labs


Read More...

Configuring EIGRP Unicast Neighbors

EIGRP usually uses a multicast to IP address 224.0.0.10 for its messages.There is an option to configure it to use a unicast address with the command neighbor ip-address .
R(config)# router eigrp < as_no >
R(config-router)# neighbor <ip-address> <interface>
Verification:

R# debug ip packet
Lab:
EIGRP Unicast 

Read More...

EIGRP Passive Interface

EIGRP Passive Interface

In EIGRP (and OSPF) the passive interface command stops sending outgoing hello packets,hence the router cannot form any neighbor relationship via the passive interface.This behavior stops both outgoing and incoming routing updates
 
To enable passive interface on one interface:
Router(config)# router eigrp < as_no.>
Router(config-router)# passive-interface < interface > 
To turn on the passive interface on all interfaces:
Router(config)# router eigrp < as_no.>
Router(config-router)# passive-interface default 
We can configure all interfaces to be passive using the passive-interface default command, and then individually use the no passive-interface command on the interfaces we do want neighbors to be formed on:
Router(config)# router eigrp < as_no.>
Router(config-router)# passive-interface default
Router(config-router)#  no passive-interface <interface> 
To turn off passive interface
Router(config)# router eigrp < as_no.>
Router(config-router)# no passive-interface <default/interface >
Read More...

EIGRP Notes with Interview Questions

EIGRP (Enhanced Interior Gateway Routing Protocol)

Important points about EIGRP
  • EIGRP  is  a Cisco proprietary protocol which means it will work only on Cisco routers.
  • EIGRP is also called advanced distance vector or Hybrid routing protocol.
  • Multicast or unicast is used for exchange of information.
  • Multiple network layer protocols are supported.
  • 100% loop-free.
  • By default,EIGRP will limit itself to use no more than 50% of the interface bandwidth
  • Maximum Hop-Count is 255[ 100 by default]
  • EIGRP is classless protocol
  • EIGRP supports VLSM and authentication
  • EIGRP uses Diffusing Update Algorithm (DUAL) to determine the best path among all “feasible” paths. DUAL also helps ensure a loop-free routing environment.
  • EIGRP will form neighbor relationships with adjacent routers in the same Autonomous System (AS)
  • EIGRP uses RTP (Reliable Transport Protocol) and its function is to deliver EIGRP packets between neighbors in a reliable and ordered way.
  • All EIGRP routing information are exchanged between neighbors via multicast using  the address 224.0.0.10
  • EIGRP routers do not send periodic, full-table routing updates.  Updates are sent when a change occurs, and include only the change
  • K-Values are used for calculating metric. By default EIGRP consider k1 and k3 only
  • EIGRP having internal Administrative distance as 90 and external AD as 170 
  • EIGRP summary route AD value is 5
  • In EIGRP Summarization is enabled by default."No auto-summary" command is needed because by default EIGRP will behave like a classfull routing protocol which means it won’t advertise the subnet mask along the routing information. For example 1.1.1.0/24 and 2.2.2.0/24 will be advertised as 1.0.0.0/8 and 2.0.0.0/8. Disabling auto-summary will ensure EIGRP sends the subnet mask along.
  • EIGRP converges rapidly after link failure
  • EIGRP can load balance on both equal and unequal cost paths."Variance" command is used to configure load balancing
  • EIGRP supports up to 6 loop-free paths with a metric lowers than the product of variance and the best metric
  • Manual summarization can be enabled at any interface 
  • If a packet is not acknowledged,EIGRP re transmit the packet to the non responding neighbor as a unicast.No other traffic is sent to this neighbor until it responds.After 16 unacknowledged re-transmissions,the neighbor is removed from the neighbor table
  • The process of neighbor discovery and route exchange between two EIGRP router is as follows
    • Router A sends out a hello
    • Router B sends back a hello and an update.The update contains routing information
    • Router A acknowledges the update
    • Router A sends its update
    • Router B acknowledges
  •  A neighbor is considered as lost if no hello is relieved within 3 hello periods
Why do we call EIGRP an advanced distance vector or hybrid routing protocol?
Because it shares features of both distance vector and link state protocols. For example  EIGRP advertise routes to directly connected neighbors  like a distance vector protocols and it uses a series of tables like link state protocols 

Advantages of EIGRP 
  • EIGRP uses AS (Autonomous system) number ranging from  1-65535 to identify collection of routers that share same information.
  • EIGRP have less convergent time and is more efficient
  • EIGRP supports both auto and manual route summarization
  • Supports multiple routed protocols like IP ,IPX and apple talks
  • EIGRP converges rapidly in the event of link failure
  • EIGRP can load balance equal and unequal cost path.By default EIGRP supports 4 load balancing path.It can be extended to 6 paths 
EIGRP Packet types 
There are 5 packet types
  1. Hello Packet – In normal scenarios  Hello packets are send in 5 seconds .Hello packets are send between directly connected neighbors. Hello packets are send as Multicast
  2. Update – Update packet are used to send triggered updates. EIGRP won’t send periodic updates like distance vector protocols. They  send triggered updates only when a chance is occurred .Update packets are send as Multicast or unicast
  3. Query – Query packets are send when the successor path is failed and there is no feasible successor (back up path).Query packets are send as multicast
  4. Reply – Reply for query packets. Reply packets are send as unicast
  5. ACK – Ack packets are send as Acknowledgement for update and Reply packet. Send as Unicast

 NOTE : Hello packets don’t have to be acknowledged since EIGRP uses a holddown time. If a
router doesn’t receive hello packets in an X amount of time it will drop the neighbor adjacency.

Stuck in Active: When a route (current successor) goes down, the router first checks its topology table for a feasible successor. If  backup path(feasible successor) is not present, it goes active(actively checking to find new route)  on the that route to find a new successor by sending queries out to its neighbors requesting a path to the lost route. Such state of router while waiting for a reply for a query packet is called Stuck in Active. In normal working condition router running EIGRP protocols is in passive state(P).If there is a failure in successor path and there is no back up path, then router will be in Active state(A).

Conditions to form EIGRP neighbors
Must receive HELLO PACKET from neighbor router
AS number must be same
Must have identical K-values or Metric
Adjacencies will not form unless the primary IP addresses on connecting interfaces are on the same subnet.

EIGRP maintain 3 tables 
•  Neighbor table – list of all neighboring routers. Neighbors must belong to the same Autonomous System
•  Topology table – list of all routes in the Autonomous System
•  Routing table – contains the best route for each known network

EIGRP Neighbors 
EIGRP forms neighbor relationships, called adjacencies, with other routers in the same AS by exchanging Hello packets. Routers share routing information after forming adjacencies. Hello packets are sent as
multicasts to address 224.0.0.10.  By default, EIGRP Hellos are sent every 5 seconds. On slower connections, EIGRP Hellos are sent every 60 seconds by default.

The EIGRP Hello timer can be adjusted on a per interface basis:
Router(config)#Interface fa 0/1
Router(config-if)#  ip hello-interval eigrp 20 15
The above command allows us to change the hello timer to 15 seconds for Autonomous System 20.

In addition to the Hello timer, EIGRP neighbors have a Hold timer. The Hold timer indicates how long a router should wait before marking a neighbor inactive, if it stops receiving hello packets from that neighbor. 

By default, the Hold timer is three times the Hello timer. On high-speed links the timer is set to 15 seconds, and on slower links the timer is set to 180 seconds.

The Hold timer can also be adjusted on a per interface basis: 
Router(config)#Interface fa 0/1
Router(config-if)#  ip hold-interval eigrp 20 21 
The above command allows us to change the hold timer to 21 seconds for Autonomous System 20. 

Changing the Hello timer does not automatically change the Hold timer. Additionally, Hello and Hold timers do not need to match between routers for an EIGRP neighbor relationship to form.

Successor Path and Feasible Successor path 
EIGRP enabled routers will send HELLO Packets to each other and become neighbors. EIGRP neighbors will exchange routing information which will be saved in the topology table. The best path from the topology table will be copied in the routing table. Such path are called Successor. Metric of the successor path is called Feasible distance.

After finding the successor path ,EIGRP will find another path as a back up path to successor to give redundancy is called Feasible successor. The metric used to find  feasible successor is called Advertised distance (AD) or Reported distance (RD).This Advertised distance (AD) is the distance between neighbor of the source and destination . 
In short,
Advertised distance: How far the destination is away for your neighbor.
Feasible distance: The total distance to the destination. 
successor : The best path to the destination

Condition for choosing Feasible successor
Advertised distance (AD) must be less than the metric of successor path 
Advertised distance of feasible successor < Feasible distance of successor.

Note : While calculation best paths, one thing you must keep in mind is  Split horizon rule which states “whatever you learn on an interface you don’t advertise back out of the same interface.”

Feasible Successors provide EIGRP with redundancy, without forcing routers to re-converge when a topology change occurs. If no Feasible Successor exists and a link fails, a route will enter an Active (converging) state until an alternate route is found.

EIGRP Route States 
An EIGRP route can exist in one of two states, in the topology table:
•  Active state
•  Passive State

A Passive state indicates that a route is reachable, and that EIGRP is fully converged. A stable EIGRP network will have all routes in a Passive state.

A route is placed in an Active state when the Successor and any Feasible Successors fail, forcing the EIGRP to send out Query packets and re-converge. Multiple routes in an Active state indicate an unstable EIGRP network. If a Feasible Successor exists, a route should never enter an Active
state.

You can check the status of states by using
Router#  show ip eigrp topology 
To view only active routes in the topology table:  
Router#  show ip eigrp topology active 
EIGRP Metrics 
EIGRP can utilize 5 separate metrics to determine the best route to a
destination:
  1. Bandwidth (K1)
  2. Load (K2
  3. Delay of the Line (K3
  4. Reliability (K4)
  5. MTU (K5)

By default, only Bandwidth and Delay of the Line are used 
K1 = 1, K2 = 0, K3 = 1, K4 = 0, K5 = 0

Graceful Shutdown
When an EIGRP process is shut down, the router sends out “goodbye” messages to its neighbors (in the form of hello packets).   The neighbors can then immediately begin recalculating paths to destinations that went through the shutdown router without having to wait for the hold timer to expire.

GNS3 Labs:

Interview Questions 
What is EIGRP?
What are the different tables in EIGRP?
Why EIGRP is called hybrid protocol
What are the different packets in EIGRP?
What are the advantages of EIGRP other routing protocol ?
What type of Authentication is supported by EIGRP ?
What is the use of "variance" Command in EIGRP?
Internal and external Administrative distance in EIGRP ?
What is Feasible successor ?
What is Advertised distance ?
What is successor  ?
What is the muticast address used by EIGRP to send Hello packets ?
What is "Stuck in Active" ?
what is "Graceful shutdown" ?
what is "Goodbye" message recieved in EIGRP ?
Maximum path load balanced by EIGRP ?
How EIGRP support unequal load balancing ?
What happen when we enable passive interface in EIGRP ?
Conditions for EIGRP neigbours
what is meant by active and passive states in EIGRP ?
What are the different K-values used in EIGRP ?
Read More...

Passive Interface (RIP,OSPF and EIGRP) explained with interview questions


Passive-interface command is used in all routing protocols to disable sending updates out from a specific interface. However the command behavior varies from o­ne protocol to another.

In RIP this command will disable sending multicast updates via a specific interface but will allow listening to incoming updates from other RIP enabled neighbors.This simply means that the router will still be able to receive updates o­n that passive interface and use them in the routing table.

Syntax
R1(config)# router ripR1(config-router)#  Version 2R1(config-router)#  network 10.4.0.0
R1(config-router)#  network 10.2.0.0
R1(config-router)#  passive-interface s0

The passive-interface command will prevent updates from being sent out of the Serial0 interface, but R1 will still receive updates on this interface.We can configure all interfaces to be passive using the passive-interface default command, and then individually use the no passive-interface command on the interfaces we do want updates to be sent out:

Syntax
 R1(config)#router rip
 R1(config-router)#  network 10.4.0.0
 R1(config-router)#  network 10.2.0.0
 R1(config-router)#  passive-interface default
 R1(config-router)#  no passive-interface e0

If you used the neighbor command under the RIP process, the router will send unicast updates as well as multicast updates.The passive-interface command must be used disable Multicast/broadcast updates and allowing only unicast.

Router(config)#router rip
Router(config-router)#  passive-interface s0
Router(config-router)#  passive-interface s1
Router(config-router)#  neighbor 10.3.5.1
Router(config-router)#  neighbor 10.4.5.1


In EIGRP the passive-interface command stops sending outgoing hello packets, hence the router can not form any neighbor relationship via the passive interface. This behavior stops both outgoing and incoming routing updates.

Syntax :
R1(config)# router eigrp 10
R1(config-router)# network 10.4.0.0
R1(config-router)# network 10.2.0.0
R1(config-router)# passive-interface s0

In OSPF the passive-interface has a similar behavior to EIGRP. The command suppresses hello packets and hence neighbor relationships.

R1(config)# router OSPF 101
R1(config-router)#  network 10.4.0.0
R1(config-router)#  network 10.2.0.0
R1(config-router)#  passive-interface s0

Passive interface default command can be used in both EIGRP and OSPF like we used in RIP

Always remember, that the passive-interface command will prevent EIGRP (and OSPF) from forming neighbor relationships out of that interface. No routing updates are passed in either direction.

Important: Passive interface command applying on interfaces wont effect on the sub interfaces created under it.If you want to active "passive interface" command on sub interface,it should be given on that specific sub interface

Interview Questions 
  • What is passive interface ?
  • Explain effect of Passive interface on RIP,EIGRP and OSPF ?
  • What is the effect of default passive interface command ?
  • Why does the EIGRP passive-interface command remove all neighbors for an interface?
  • How do I stop individual interfaces from developing adjacency in an OSPF network?
  • What command is used to stop RIP routing updates from exiting out an interface but still allow the interface to receive RIP route updates?
  • How Does the Passive Interface Feature Work in EIGRP?




Did You Enjoy this Article ?

If yes, Then enter your email below to get

more articles on CCNA and CCNP in your inbox

For FREE !

Read More...