





































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































































You can input either host address or network address for ‘network’ command in EIGRP. EIGRP uses IP protocol type 88.
EIGRP uses protocol-dependent module (PDM), which means different routed protocol’s EIGRP is processed independently. Different tables are maintained. When using RTP, the router needs to know how many other routers exist, so it knows how many acknowledgements to expect. Using the neighbor table, if a multicast is not replied by a neighbor, a unicast copy is send, repeatedly (16 times), until the router gives up and neighbor is removed from the table (declared dead). RTP protocol send packets with sequence number so the latest information can be passed around. Hello and ACK don’t require RTP, while Update, Query and Reply does.
EIGRP may sometimes fail to recognize the down state of a neighbor; in this situation, the Hold Timer (15 s for LAN, 60 s for Frame Relay, and 180 s for slow WAN links) is the mechanism to recognize the problem. Other than Hold Timer, EIGRP may also implement Bidirectional Forwarding Detection (BFD) to recognize failure of links. In EIGRP, the Hello Interval and Hold Timer may change on a per-interface basis by applying ‘(config-if)#ip hello-interval eigrp ASN TIMER’ or ‘(config-if)#ip hold-time eigrp ASN TIMER’, where TIMER is the value you would like to configure the timer. Changing the hold time doesn’t change the hello time. If 2 routers (in a neighbor relationship) has different Hello and Hold Timer, with R1 having the smaller values, R2 MUST have a Hello Timer less than R1’s Hold Timer. This way, before R1’s Hold Timer expires, R2 will be able to send Hello messages to R1, to maintain their neighbor relationship. However, if the timer values differ, and R2 has a Hello Timer greater than R1’s Hold Timer, the neighborship continues to fail and recover, flapping routes in and out of routing table. ‘show ip eigrp interface TYPE NUMBER detail’ expose the Hello Timer, but remaining Hold Timer is displayed in ‘show ip eigrp neighbors’. It’s suggested that Hello interval and Hold timer should be set in a 1:3 ratio.
EIGRP authentication is based on PSK generating a MD5 digest, Hello messages are authenticated, this means if authentication fails, neighbor will not be formed. To configure authentication, you need to create a key chain and enable it:
Requirement EIGRP OSPF The routers must be able to send/receive IP packets to one another. Yes Yes Interfaces’ primary (not secondary) IP addresses must be in same subnet. Yes Yes Must not be passive on the connected interface. Yes Yes Must use the same ASN (EIGRP) or process-ID (OSPF) on the router configuration command. Yes No Hello interval/timer, plus either the Hold (EIGRP) or Dead (OSPF) timer, must match. No Yes Must pass neighbor authentication (if configured). Yes Yes Must be in same area. N/A Yes IP MTU must match. No Yes K-values (used in metric calculation) must match. Yes N/A Router IDs must be unique. No[1] Yes You can change the way EIGRP configures its metric by changing some constants (value that don’t change throughout the equation) by ‘(config-router)#metric weights’ command. Mismatched k-value between neighbors prevent routers from becoming neighbors, mismatch will be logged when using ‘show ip protocols’. In ‘show ip protocols’, ‘gateway’ in ‘Routing information source’ displays the interface that connects to the network advertised by ‘network’ command. This doesn’t include the loopback interface. Loopback interface will not have any peers. ‘metric holddown’ enables hold down timer as loop-avoidance measure ‘metric maximum-hops’ enable infinite hop count as loop-avoidance measure, maximum configurable hops is 255 RID is used in EIGRP to identify routers; duplicated RID will not prevent neighborship. ‘show ip eigrp traffic’ display statistics regarding EIGRP messages send/received. ‘show ip eigrp accounting’ display EIGRP RID and ASN
The neighbor table include:
The topology table include:
In frame relay, neighborship can only form between 2 routers with PVC connecting them. In multiprotocol label switching (MPLS) VPN (Layer 3 service, perform routing), each customer edge (CE) router is connected to MPLS at a provide edge (PE) router and forms a EIGRP neighborship. PE routers communicate with each other using MP-BGP. In Metropolitan Ethernet (MetroE), routers connect each other using Ethernet links and see each as in a big VLAN. This technology uses Virtual Private Wire Service (VPWS) for point- to-point topologies, and Virtual Private LAN Service (VPLS) for multipoint topologies. EIGRP neighborship can be form between all routers. Hello (5) Update (1) Query (3) Reply (4) ACK Request No RTP RTP RTP RTP RTP No RTP Multi/Uni-cast Multi/Uni-cast Multicast Unicast Unicast Multi/Unicast Neighbor initialization, Hello(A), Hello(B), Update(B), ACK(A), Update(A), ACK(B) Update and ACK are used to exchange data topology, where Update contains the topology information; ACK acknowledges the receipt of Update, it’s just an EIGRP packet with no data and non-zero acknowledgement number. Update include: 1) prefix, 2) prefix length, 3) metric factor, and 4) non-metrics (MTU and hop count). Note: MTU is used to tracked the minimum MTU you can use on the path. Request packets are used to get specific information from one or more neighbors and are used in route server applications. Version: 0 or 1 [4 bits] OPCode: 1 (Update), 3 (Query), 4 (Reply), or 5 (Hello) [4 bits] Checksum [24 bits] Flags [32 bits]Flags [32 bits]Flags [32 bits] Sequence: used by RTP [32 bits]Sequence: used by RTP [32 bits]Sequence: used by RTP [32 bits] Acknowledgment [32 bits]Acknowledgment [32 bits]Acknowledgment [32 bits] Autonomous System Number [32 bits]Autonomous System Number [32 bits]Autonomous System Number [32 bits] Type Length Values, or TLVs [32 bits]Type Length Values, or TLVs [32 bits]Type Length Values, or TLVs [32 bits]
For instance, A and B are connected to C at C’s multipoint interface over Frame Relay. A and B do not have a PVC link between them, and all routers are using EIGRP. EIGRP neighborship will not be formed between A and B because no Hellos can be send. To make things worse, A and B can’t learn each other’s subnet due to split horizon. A simple solution is to configure ‘(config-subif)#no ip split-horizon eigrp ASN’ on the multipoint interface. If you are using RIP, use ‘(config-subif)#no ip split-horizon’ instead. You can confirm your configuration using ‘show interface’ or ‘debug ip eigrp’ commands. Another problem for EIGRP in Frame Relay in the inability to multicast Hello messages since Frame Relay block broadcast and multicast by default. A router can only generate all the Update messages and encapsulate each with a unicast address. For a network with many links, this may add much overhead to traffic. By default, a router consumes at most 50% bandwidth for EIGRP traffic, you can adjust this with ‘(config-if)#ip bandwidth-percent eigrp ASN PERCENT’ or (config-subif)#; the command HAS to be set in both mode. This way, the messages are buffered, then send out. Suggestion: set the bandwidth of PtP link as the CIR of the PVC Suggestion: the bandwidth MUST match for 2 routers connecting the same PVC When you have multiple PVCs, treat each one as PtP, meaning assign different bandwidth to each other. In multipoint interface, the ‘bandwidth’ is equally divided over all links Set the bandwidth of multipoint link as number of PVC * lowest CIR. Since the total bandwidth is divided to share between the number of links, EIGRP traffic is calculated based on individual rate. E.g A and B are multilinked at C, which has total bandwidth of 2000 Kbps, if EIGRP is configured to take 30% of the traffic, then A has (2000 / 2) * 30% = 300 Kbps for EIGRP traffic. It’s possible for PVCs to work even if the total amount of CIR is greater than the access rate. In frame relay, the excess traffic will be queued (if excess traffic is local) and if excess traffic occurs in Know that ‘bandwidth’ is set per sub/interface (you can set a PVC/subinterface), so the value has a maximum.
EIGRP metric can be changed by changing 1) its interface bandwidth, 2) its interface delay,
Frame relay and Metro Ethernet installation often use an access link and have PVCs with total CIR greater than the clock rate. In MetroE, shaping is typically applied when you are not using the entire link. Note that this shaping applies to the entire router, not to its PVCs individually. Another way you can influence the metric is by changing the K-values with ‘metric weight 0 K1 K2 K3 K4 K5’ whereas Kn are replaced with its value. By default, K1 = K3 = 1 and K = K4 = K5 = 0. Changing K2, K4, or K5’s value include load and reliability in the calculation, thus may cause route flapping and other problems. Offset list allow an engineer to add a value called offset, to FD of selected routes (by the ACL). ‘(config-router)#offset-list {ACL_NO | ACL_NAME} {in | out} OFFSET INTERFACE_TYPE INTERFACE_NUMBER’, Interface type and number is optional since the router can match the network for all the routes it receives. ACL indicate the network/subnet to be searched by permitting it and interface type number is where the ACL will be searched. The ACL must be a standard/named ACL. You will see the offset in action when you use ‘show ip eigrp topology’ (+ specific route) the FD and (FD/RD) will be different, whereas FD is the FD before offset and (FD/RD) is the FD after offset.
Last section discussed how to change the metric calculations, this section discuss how to converge faster. EIGRP uses the concept of successor and feasible successor, whereas successors are placed into the routing table and feasible successor, and the feasible successor runs DUAL to check if it’s loop-free. NOTE: feasible successor’s FD MUST BE LESS THAN (NOT EQUAL TO) successor’s RD. To verify feasible successor of a route, use ‘show ip eigrp topology’ or ‘show ip eigrp topology all-links’. However, if no FS is present when successor fails, DUAL is ran to discover a loop-free route; this is called going alive on a route. Routes for which the router has a non-loop successor route and no failure has yet occurred remains in a passive state. Routes for which the successor route fails, with no feasible successor routes, move to an active state. In this state,
is heard back, the neighborship is still working, if no reply is heard back, the neighborship is destroyed.
When you are using load balancing, whether equal cost or not, actually speed up convergence so that one link going down, the other just working as normal. ‘(config-router)#maximum-paths NO’, with a default of 4 routes (in older routers, 6 is max, while in new routers, max is above 16), configures the number of EIGRP routes to use, then, depending on whether unequal cost load balance is used, ‘variance’ command takes place (variance 1 disables unequal sharing; max 128). These commands can be verified by ‘show ip protocols’. In EIGRP, unequal sharing traffic is distributed equally so different-speed link are assigned different load. WARNING: in a latency sensitive environment, setting ‘variance’ too high can cause lost of data. When routes have been added to the routing table, the router can 1) send the traffic proportionally, lower metric routes take more packets, or 2) all traffic is send over the lowest-metric route, other routes are just there for faster convergence.
This method enables the engineer to decide which routes are advertised in an EIGRP update; this also decrease the size of the routing table. This is done with ‘(config- router)#distribute-list’ command and 1) ACL, 2) prefix list, or 3) route maps. Here is complete command: ‘distribute-list {ACL_NO | ACL_NAME} in [type_NO]’ ‘distribute-list {ACL_NO | ACL_NAME} out [INT | ROUTE_PRO | ASN] When performing route filtering with ACL, permit statements allow route to be advertised, while deny statement filters the route. This is done with ‘distribute-list ACL_NO {in | out} [INT_TYPE INT_NO]’, whereas interface can be omitted to apply the ACL to all the interfaces’ inbound or outbound traffic. If only routes from 10.0.0.0/25 are allowed, 10.0.0.0/24 actually fit. ‘gateway’ keyword can be used to allow/filter routes to that specific interface. Prefix list examine both (a range of) prefix and (a range of) prefix length. Prefix list is more flexible than standard ACL and operate much faster than ACL. Prefix = route prefix = subnet number = network address | Prefix length = subnet mask A prefix list is created in global configuration and has a sequence number to be edited. The command looks like ‘(config)#ip prefix-list NAME [seq NO] {deny | permit PREFIX/PREFIX LENGTH} [ge VALUE] [le VALUE]’ 1- A route’s prefix HAS to be within the range implied by prefix/prefix length. 2- The route’s subnet mask MUST match ranges of prefixes implied by PREFIX-LENGTH, ge, and le parameters. ge(greater-than-or-equal-to) and le(less-than-or-equal-to) parameters are optionally. NOTE: ge MUST be greater than the set prefix length, while le MUST be less than 32
Parameter Equation Example Neither Prefix-length = CIDR ip prefix list permit 10.0.0.0/8, CIDR = 8 Both ge < CIDR ≤ le ge = 10, le = 13, CIDR = 11, 12, 13 Only ge ge < CIDR ≤ 32 ge = 28, CIDR = 29, 30, 31, 32 Only le Prefix-length ≤ CIDR ≤ le le = 10, prefix-length = 8, CIDR = 8, 9, 10 Permit 0.0.0.0/0 le 32 (in prefix list) = permit any (ACL) Deny 0.0.0.0/0 ge 30 le 30 -> denies any route with /30 CIDR E.g (config-router)#distribute-list prefix R1 out -> where R1 is the name of prefix list. Route maps provide logic similar to if/then/else in programming language. A single route map has one or more route-map commands in it, and routers process route-map commands in sequential orders based on sequence numbers (added automatically or manually). Each command has underlying matching parameters configured with ‘match’ command. To match all routes, simply omit ‘match’ command. Earlier entries have more precedence over later ones. Route maps have commands like ‘route-map samplename deny 10’, then ‘match ip address prefix-list ABC’ or ‘match ip address 1’. This causes subnets that matches the criteria of ACL 1 or prefix-list ABC to be discarded. For instance, if 192.168.1.0/24 (in prefix-list ABC) is permitted by the prefix list, its route will not show up because route maps have denied it. ‘show route-map’ will display related statistics. Here are some important points:
Route summarization differs from route filtering in that it reduce the routing table size BUT do not affect the reach-ability of the route; EIGRP automatically summarize at classful network boundary, but support manual summarization in every router. Route summarization reduces the Query Scope, this means unnecessary Query messages are not flooded. Tradeoffs: cause suboptimal routing Packets destined for inaccessible subnets included in the traffic
There are many ways to configure default candidate routes in EIGRP, which the router will choose the best to be the default route. However, if you don’t wish to advertise this route as a default route, but still advertise it, use ‘default-information {in | out} [ACL_NO]’ command or ‘no default-information allowed in’ command to disable default routes from that ASN and treat them as normal routes. There 4 ways to create a default candidate route
Step 3. Configure one or more network ip-address wildcard-mask area area-id router subcommands, with any matched interfaces being added to the listed area. Step 4. (Optional) Change the interface Hello using (config-if)# ip ospf hello-interval time and Dead intervals with (config-if)# ip ospf dead-interval time Retransmit (for LSA if no acknowledgement is heard) interval with (config-if)#ip ospf retransmit-interval TIME Step 5. (Optional) Impact routing choices by tuning interface costs as follows: a. Configure costs directly using the ip ospf cost value interface subcommand. b. Change interface bandwidths using the bandwidth value interface subcommand. c. Change the numerator in the formula to calculate the cost based on the interface bandwidth, using the auto-cost reference-bandwidth value router subcommand. Step 6. (Optional) Configure OSPF authentication: a. On a per-interface basis using the ip ospf authentication interface subcommand. b. For all interfaces in an area using the area authentication router subcommand. Step 7. (Optional) Configure support for multiple equal-cost routes using the maximum-paths number router subcommand.
This is the OSPF header in front of all OSPF packet Version [8 bits] Type: 1=hello, 2=database description, 3= request, 4=update, 5=acknowledgement[8 bits] Packet Length [16 bits] Router ID: don’t change unless reload or interface (of RID) is shut [32 bits]Router ID: don’t change unless reload or interface (of RID) is shut [32 bits]Router ID: don’t change unless reload or interface (of RID) is shut [32 bits] Area IDArea IDArea ID ChecksumChecksum Authentication Type Authentication: only valid for OSPFv2 [64 bits]Authentication: only valid for OSPFv2 [64 bits]Authentication: only valid for OSPFv2 [64 bits] Authentication Type = 0 for null, 1 for plain text, and 2 for MD Hello packet Network Mask: unnumbered and virtual interface = 0.0.0.0 [32 bits]Network Mask: unnumbered and virtual interface = 0.0.0.0 [32 bits]Network Mask: unnumbered and virtual interface = 0.0.0.0 [32 bits]Network Mask: unnumbered and virtual interface = 0.0.0.0 [32 bits] Hello Interval [16 bits] Options: bit 0 (support ToS), bit 1 (support T7 LSA), bit 2 (support MOSPF), bit 3 (support NSSA), bit 4 (support T8 LSA), bit 5 (support Demand Circuit), bit 6 (support Opaque LSA), bit 7 (prevent loop in VPN) [8 bits] Options: bit 0 (support ToS), bit 1 (support T7 LSA), bit 2 (support MOSPF), bit 3 (support NSSA), bit 4 (support T8 LSA), bit 5 (support Demand Circuit), bit 6 (support Opaque LSA), bit 7 (prevent loop in VPN) [8 bits] Options: bit 0 (support ToS), bit 1 (support T7 LSA), bit 2 (support MOSPF), bit 3 (support NSSA), bit 4 (support T8 LSA), bit 5 (support Demand Circuit), bit 6 (support Opaque LSA), bit 7 (prevent loop in VPN) [8 bits] Router Priority [8 bits]Router Priority [8 bits] Router Dead Interval [32 bits] DR RID [32 bits] BDR RID [32 bits]BDR RID [32 bits] Neighbor: RID of all neighbor Hellos [variable] Database Description packets Interface MTU = 0 if virtual link [16 bits] Options: see Options in Hello [8 bits] Flags: bit 0 (master if on), bit 1 (on if there’s more packet in the flow), bit 2 (off if this is the first packet in the flow), bit 3-7 (all off) [8 bits] DBD Sequence Number: master increment to support continuous packet [32 bits]DBD Sequence Number: master increment to support continuous packet [32 bits]DBD Sequence Number: master increment to support continuous packet [32 bits] LSA Header: contain multiple headers, each 20 bytes [variable]LSA Header: contain multiple headers, each 20 bytes [variable]LSA Header: contain multiple headers, each 20 bytes [variable] Link state request Link State Type: LSA type [32 bits] Link State ID: more info for LSA [32 bits]Link State ID: more info for LSA [32 bits] Advertising RID [32 bits] Checksum Authentication Type Link state update
Number of LSAs carried [32 bits] Link State Advertisement [variable]
All the ‘network’ commands are configured so the most specific wildcard mask is listed first in the configuration file. If area is not specified in ‘network’ command, the closest match to the IP address of that router interface will become the ‘network’ command of that subnet. However, this is not recommended. Hello messages are distributed to interfaces that have meet: