Saturday, 18 February 2012

EIGRP Routing - Implementing Basic EIGRP





BB-Router(config)#router eigrp 90
BB-Router(config-router)#network 172.30.0.0 0.0.255.255
BB-Router(config-router)#network 10.1.0.0 0.0.255.255
BB-Router(config-router)#no auto-summary

BUT we can confirm that EIGRP is now running on the router;

BB-Router#show ip protocols
Routing Protocol is "eigrp 90"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incoming updates
  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
  EIGRP maximum hopcount 100
  EIGRP maximum metric variance 1
  Redistributing: eigrp 90
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    10.1.0.0/16    <----- shows /16 not /8 as not using default mask, tar no auto-summary
    172.30.0.0       <----- This is default mask, it does not have to put /16
  Routing Information Sources:
    Gateway         Distance      Last Update
    (this router)         90      00:03:51
  Distance: internal 90 external 170


Lets bring the EIGRP neighbourship up, but lets enable some EIGRP debugging first *rubs hands*
R2#debug ip eigrp
R2(config)#conf t
R2(config)#router eigrp 90
R2(config-router)#no auto
R2(config-router)#network 10.1.24.2 0.0.0.0
R2(config-router)#

*Mar  1 00:17:24.203: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 10.1.24.1 (Serial1/0) is up: new adjacency
*Mar  1 00:17:24.215: IP-EIGRP(Default-IP-Routing-Table:90): Processing incoming UPDATE packet
*Mar  1 00:17:24.243: IP-EIGRP(Default-IP-Routing-Table:90): Processing incoming UPDATE packet
*Mar  1 00:17:24.247: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.0.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.247: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.0.0  ()
*Mar  1 00:17:24.251: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.1.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.255: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.1.0  ()
*Mar  1 00:17:24.255: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.2.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.2.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.3.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.3.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.4.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.4.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.5.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.5.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.6.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.6.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.7.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.7.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.8.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 172.30.8.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): Int 10.1.34.0/30 M 21024000 - 20000000 1024000 SM 10511872 - 9999872 512000
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): route installed for 10.1.34.0  ()
*Mar  1 00:17:24.259: IP-EIGRP(Default-IP-Routing-Table:90): 10.1.24.0/30 - do advertise out Serial1/0
*Mar  1 00:17:24.311: IP-EIGRP(Default-IP-Routing-Table:90): Processing incoming UPDATE packet
*Mar  1 00:17:24.315: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.0.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.319: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.1.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.319: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.2.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.3.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.4.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.5.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.6.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.7.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.30.8.0/24 M 20640000 - 20000000 640000 SM 128256 - 256 128000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): Int 10.1.34.0/30 M 21024000 - 20000000 1024000 SM 10511872 - 9999872 512000
*Mar  1 00:17:24.323: IP-EIGRP(Default-IP-Routing-Table:90): 10.1.24.0/30 - do advertise out Serial1/0
R2(config-router)#


Table 131 debug ip eigrp Field Descriptions *
Field
Description
IP-EIGRP:
Indicates that this is an IP EIGRP message.
Ext
Indicates that the following address is an external destination rather than an internal destination, which would be labeled as Int.
M
Displays the computed metric, which includes the value in the SM field and the cost between this router and the neighbor. The first number is the composite metric. The next two numbers are the inverse bandwidth and the delay, respectively.
SM
Displays the metric as reported by the neighbor.
* http://www.cisco.com/en/US/docs/ios/debug/command/reference/db_h1.html#wp1124044

So above we can see all internal routes being learnt from our neighbour, showing their source metric (bandwith and delay) and Admin Distance





R2(config)#router eigrp 90
R2(config-router)#network 10.1.2.2 0.0.0.0
R2(config-router)#
*Mar  1 01:07:33.599: IP-EIGRP(Default-IP-Routing-Table:90): 10.1.2.0/24 - do advertise out Serial1/0
*Mar  1 01:07:33.599: IP-EIGRP(Default-IP-Routing-Table:90): Int 10.1.2.0/24 metric 281600 - 256000 25600
R2(config-router)#network 10.1.25.2 0.0.0.0
R2(config-router)#
*Mar  1 01:07:44.651: IP-EIGRP(Default-IP-Routing-Table:90): 10.1.25.0/24 - do advertise out Serial1/0
*Mar  1 01:07:44.655: IP-EIGRP(Default-IP-Routing-Table:90): Int 10.1.25.0/24 metric 281600 - 256000 25600


R2#show ip route

     172.30.0.0/24 is subnetted, 9 subnets
D       172.30.2.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.3.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.0.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.1.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.6.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.7.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.4.0 [90/20640000] via 10.1.24.1, 00:50:34, Serial1/0
D       172.30.5.0 [90/20640000] via 10.1.24.1, 00:50:35, Serial1/0
D       172.30.8.0 [90/20640000] via 10.1.24.1, 00:50:35, Serial1/0
     10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       10.1.2.0/24 is directly connected, FastEthernet0/0
C       10.1.25.0/24 is directly connected, FastEthernet0/1
C       10.1.24.0/30 is directly connected, Serial1/0
D       10.1.34.0/30 [90/21024000] via 10.1.24.1, 00:50:37, Serial1/0


R2#show ip eigrp ne
IP-EIGRP neighbors for process 90
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   10.1.24.1               Se1/0             13 00:51:00   20  1140  0  6
R2#


awesome! lets jump over to R3;

R3(config)#router eigrp 90
R3(config-router)#no auto-summary
R3(config-router)#network 10.1.2.3 0.0.0.0
R3(config-router)#network 10.1.34.2 0.0.0.0


We now have the basic EIGRP lab setup (however i spent alot more time than i thought looking into the debugs lol) will continue with the rest of this lab tomorrow peeps

Friday, 17 February 2012

 EIGRP RECAP;

Part of mastering EIGRP for your CCNP ROUTE (640-902) exam is knowing the fundamentals - and while you're familiar with the multicasting address reserved for EIGRP, you might not know there are actually five EIGRP packet types.

Let's take a look at each and the individual purchase each one serves. 

EIGRP uses the Reliable Transport Protocol (RTP) to handle the guaranteed and reliable delivery of EIGRP packets to neighbors.  "Guaranteed and reliable" sounds a lot like TCP, but the two are quite different in how they operate.  Not all EIGRP packets are going to be sent reliably. 
EIGRP uses five packet types.  You're likely familiar with Hello packets, used for neighbor discovery and to keep existing neighbor relationships alive. EIGRP Hello packets are multicast to 224.0.0.10.

Acknowledgement packets themselves are simply hello packets that contain no data.  Neither Hello nor Ack packets use RTP, and are therefore considered unreliable.

Update packets are sent to new neighbors to allow the neighbor to build an accurate routing and topology table, and are also sent when a change in the network occurs. Update packets are generally multicast packets, but there's one important exception that you'll read about later in this tutorial. 

Query packets are sent when a router loses a successor route and has no feasible successor ("DUAL Query").    

Reply packets are sent in response to query packets, and a reply packet indicates that a new route to the destination has been found.  Update, query, and reply packets all use RTP and are considered reliable.
To see how many of these packets have passed through a router, run show ip eigrp traffic

R1#show ip eigrp traffic
IP-EIGRP Traffic Statistics for process 100
  Hellos sent/received: 2/2
  Updates sent/received: 13/4
  Queries sent/received: 0/0
  Replies sent/received: 0/0
  Acks sent/received: 0/2
  Input queue high water mark 1, 0 drops
  SIA-Queries sent/received: 0/0
  SIA-Replies sent/received: 0/0
To review:  Hello and ACK packets are unreliable. Reply, Query, and Update packets are reliable.
Before EIGRP routers can exchange routes, they have to become neighbors - and some of the packets we just discussed are vital to that adjacency process.


Let's take a look at an EIGRP adjacency and how the packets we just discussed are part of this process.
In the following example, R1 has just had EIGRP enabled on a Serial interface. R1 will send an EIGRP Hello packet out that interface in an attempt to find potential neighbors.  EIGRP Hello packets are multicast to 224.0.0.10.
EIGRP Hello Packet

The downstream router R2 receives this Hello and check it to verify that certain values in the Hello packet - including the Autonomous System number - match those on R2.
If those values match, R2 responds with an EIGRP Update packet, which contains all the EIGRP-derived routes that R2 knows.  (R1 will also receive a Hello packet, multicast from R2.) 
EIGRP Unicast Update Packet

Note the EIGRP Update packet going back to R1 is a unicast.
Generally, EIGRP Update packets are multicast to 224.0.0.10, just as EIGRP Hello packets are.  This particular situation is an exception to that rule - during the initial exchange of routes between two new EIGRP neighbors, update packets are unicast rather than multicast.
Finally, R1 will send an EIGRP Acknowledgement packet to let R2 know the routes in the Update packet were received.  R1 will also send an Update packet of its own, unicast to R2, containing all EIGRP routes R1 has. R2 will respond with an ack of its own.
EIGRP Unicast Update Packet (again)

Now that we've got our adjacency, the real fun begins! 

I have got the EIGRP lab up and running and will look at some debugs tomorrow :0)