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)

Monday, 13 February 2012

STUDIES BEGIN AGAIN:
I have decided to restart the CCNP programme from the begging, as i feel since i started (beginning of Novemeber, and my last study session was around my b-day 16th decemeber, to much time, WAY TO MUCH TIME HAS PASSED!)

So, lets recap and start from nugget 1;
 
Completed "EIGRP Routing: Concepts and Planning" nugget tonight;
Even though Cisco designed EIGRP to be a simple protocol, there are a few concepts you'll want to be aware of before you move forward with implementation. This nugget walks through the key tables, terms, and calculations you'll need to get started with using EIGRP.

NOTES

WHY USE EIGRP?

1) Backup routes (fast convergence / DUAL)
2) Simple configuration
3) Flexability in summarisation
with OSPF you have to summarise at the ABR's or ASBR's
EIGRP = any point/interface can be do summarisation
4) Unequal cost load-balancing
ONLY protocol to do this (done via variance command)
5) Combines best of distance vector and link state
OSPF is fast, but not as fast as EIGRP due to the Topology table
It is a distance vector protocol (or advanced) because it only knows what it neighbours told it


Router running EIGRP maintains 3 tables;

Neighbour Table
If an adjanacy is formed, the relationship goes in here, done via hello protocol (as opposed to broadcast/multicast like RIP)

Topology Table
Holds the Sucessor routes in here (they are also in the routing table) along with Fessiable successor routes (could be 2 or 3 or so, so long as not "too bad" a route)

Routing Table
Sucessor routes in here along with routing table (Only best routes)




 
EIGRP NEIGHBOURS MSGS

Hello:
Updates (unicast) and Neighbor discovery on multicast 224.0.0.10
NBMA network (i.e virtual circuit, frame relay, ATM etc) hello is every 60 seconds and HOLD time of 180 seconds
Point to Point (other) hello is every 5 seconds and HOLD time of 15 seconds.
Update: 
Once neighbour is formed, router sends FULL routing table and waits for ACK back
Once formed only Hellos will be seen unless route goes down then updates will be sent (msg generally multicast*)
Query:
If network is not available then a DUAL QUERY is sent out for a backup route if one is not in the topology table
Reply:
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
Ack:
EIGRP requires acknowledgements from routing updates. (msg considered unreliable)


* During the initial exchange of routes between two new EIGRP neighbors, update packets are unicast rather than multicast

EIGRP = IP Protocol 88

Metric of 47019776 is infinite metric/unreachable, just like hop count of 16 in RIP, this will be used if the neighbour does not have a route to the network


UNDERSTANDING EIGRP METRIC CALCULATION

Bandwidth (K1)
Delay (K3)
Reliabilty (K4 & K5)
Loading (K2)
Does not use MTU (although that is seen)

An EIGRP update to a neighbor contains the cumulative value of each K weight (such as the sum of delays, and lowest bandwidth).  From that, the neighbor receiving the update can calculate the sending neighbors metric for that route


Calculating the EIGRP default metric:

[(10,000,000/lowest Bandwidth) + (sum of delays in 10's of usec)] * 256
10,000,000 is what 10^7 equals

lowest Bandwidth = 10^7/BW, In kbits, BW output from ‘show interface’
Delay in 10′s of usec = DLY output from ‘show interface’

* Note: If the bandwidth division results in a decimal number, round down


So taking a route from my old lab,




Lets take this route that Router A knows about to the network on Router C/D

D       10.14.0.132/30 [90/2174976] via 10.14.0.2, 00:00:58, FastEthernet0/0

2610XM-A#show ip route 10.14.0.132
Routing entry for 10.14.0.132/30
  Known via "eigrp 20", distance 90, metric 2174976, type internal
  Redistributing via eigrp 20
  Last update from 10.14.0.2 on FastEthernet0/0, 00:45:25 ago
  Routing Descriptor Blocks:
  * 10.14.0.2, from 10.14.0.2, 00:45:25 ago, via FastEthernet0/0
      Route metric is 2174976, traffic share count is 1
      Total delay is 20200 microseconds, minimum bandwidth is 1544 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 2


2610XM-A#show ip eigrp topology 10.14.0.132 255.255.255.252
IP-EIGRP (AS 20): Topology entry for 10.14.0.132/30
  State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2174976
  Routing Descriptor Blocks:
  10.14.0.2 (FastEthernet0/0), from 10.14.0.2, Send flag is 0x0
      Composite metric is (2174976/2172416), Route is Internal
      Vector metric:
        Minimum bandwidth is 1544 Kbit
        Total delay is 20200 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 2


We can see the following information for this route 10.14.0.132/30
Route metric is 2174976 
Total delay is 20200 microseconds
Minimum bandwidth is 1544 Kbit

So applying the above calculations to work out the metric;

10^7 = 10000000 ÷ 1544kbits (min bandwidth) = 6476.6839.... (round down to 6476)
6476 + all delay links which is 20200ms (20200ms ÷ 10 = 2020usec) = 8496
8496 X 256 = 2174976 is the metric for that route :0)

GOD I HATE MATHS!!! but there you go, i think cisco thought hang on a minute, we have a super kool routing protocol but we have made it tooo easy, lets complicate this a little .... jesus!

Tuesday, 7 February 2012



VPNs and IPHONE's

Interesting one today, worth a post,

Been working on a VPN RAS for IOS devices for work, and it appears i have been struggling with DNS for the iphone devices, but not PCs connecting via the VPN, why you ask,

have a read of my findings, could save you some time!!


SOLUTION: is split-dns;
 
The iPhone doesn't seem to accept the DNS servers that the VPN endpoint tries to assign to it, so the only way to get this to work if split-tunnel is in play is via the split-dns method.
 
To have this feature we need IOS 12.4, we are running 12.3.x
 
http://www.cisco.com/en/US/docs/ios/12_4t/12_4t11/htspldns.html#wp1446542
 
Basically, it looks like if your VPN is NOT configured to use split-tunnel, you're all set and everything works out of the box, BUT all traffic will pass through the VPN - tested this and yes it works, we are now resolving internal names,  but its not pratical.
 
As we are using split-tunnelling (encryption domains), then it needs to be configured for split-dns on each of the domains that need to resolve through the tunnel. 


upgraded to 12.4 from 12.3 and there she is! split-dns!!!

ISAKMP group policy config commands:
  access-restrict    Restrict clients in this group to an interface
  acl                Specify split tunneling inclusion access-list number
  backup-gateway     Specify backup gateway
  dns                Specify DNS Addresses
  domain             Set default domain name to send to client
  exit               Exit from ISAKMP client group policy configuration mode
  firewall           Enforce group firewall feature
  group-lock         Enforce group lock feature
  include-local-lan  Enable Local LAN Access with no split tunnel
  key                pre-shared key/IKE password
  max-logins         Set maximum simultaneous logins for users in this group
  max-users          Set maximum number of users for this group
  netmask            netmask used by the client for local connectivity
  no                 Negate a command or set its defaults
  pfs                The client should propose PFS
  pool               Set name of address pool
  save-password      Allows remote client to save XAUTH password
  split-dns          DNS name to append for resolution

enter the command followed by your companys domain(s)
 split-dns mydomain.com

and magic! its all working

P.S
Looks like this bug has been around since 2008 and apple still have not fixed it!!!

ON ANOTHER NOTE, CCNP STUDIES STARTING BACK UP THIS WEEK!

Wednesday, 11 January 2012

currently in progress of moving house etc, also getting boxing training off to a good start -  will continue studyies beginning of feb, gotta make up for lost time

Wednesday, 21 December 2011

xmas!

On break till new year, then going to hit this up hard!