C C N A Day3


Published on

C C N A Day3

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • DV- the router D will tell C that I know network X, and C will tell B that I know network X and so on, route A does not know anything beyond its neighbor, so its routing by tumor. This also uses periodic update, it also sends the entire routing table, these protocls are based in the early days of internet and some of them are class based. Link state gives much more information, here the link is defined with its interface, IP address, Mask, the type of network its on and its neighbors SO Router A will tell My IP…. This information is passed to router to router and maintain two databases. The topology table is important and its because of topology table the robustness comes. The topology table contains Link state advertisements and the router knows the network topology, any network fails the convergence is faster.
  • DV will send entire routing table will waste the bandwidth. Link states exchange updates about only Link states Suitable for very large networks
  • Draw diagram to explain router ID
  • If the two routers are the only routers on the network, an adjacency should form. If there are more than two routers on the network, adjacencies only form with the designated router (DR) and backup designated router (BDR). If the two routers have already formed adjacencies with the DR and the BDR, they cannot form adjacencies with each other
  • Backbone Router: Has an interface connected to the backbone (Area 0). Area Border Router (ABR): Has interfaces in multiple areas with at lest one interface in area 0. Connects other areas to the backbone and maintains routing information for each connected area. Autonomous System Boundary Router (ASBR): Router located between OSPF autonomous system and a non-OSPF network. Used to redistribute routing information between networks. Must reside in a non-stub area.
  • OSPF routers and links are grouped logically into areas that are identified by assigned numbers. All OSPF networks have at least one area with the default being area 0. If more than one area exists, area 0 is defined as the backbone area and is used to connect all other areas. Each area has its own link state databases.
  • Area 0 should not have more than 30 routers
  • In order to ensure that a router will become the OSPF DR for any given segment, there are a number of options. One way is to manually configure the interface priority as described in option A above using the "ip ospf priority" interface configuration command. The second method is described in option C. OSPF routers will always use the loopback interface IP address as the router ID, when configured, and the router with the highest IP address will be chosen as the DR when the priorities are the same. The final method is to change the priority of the other routers in the segment to zero. When the OSPF priority is set to 0, the router is ineligible to become the DR or the BDR. Important Note: The OSPF DR/BDR election process is not pre-emptive, so any changes to the network regarding the DR/BDR election process will only occur when the routers are restarted.
  • When the OSPF process starts, the Cisco IOS uses the highest local active IP address as its OSPF router ID. If there is no active interface, the OSPF process will not start. If the active interface goes down, the OSPF process has no router ID and therefore ceases to function until the interface comes up again.
  • EIGRP scales the metric of IGRP by a factor of 256. That is because EIGRP uses a metric that is 32 bits long, and IGRP uses a 24-bit metric. EIGRP can multiply or divide by 256 to easily exchange information with IGRP
  • Purpose : The figure introduces the IGRP routing protocol. IGRP is a sophisticated distance vector routing protocol. Emphasize: The Interior Gateway Routing Protocol (IGRP) is a dynamic distance-vector routing protocol designed by Cisco in the mid-1980s for routing in an autonomous system that contains large, arbitrarily complex networks with diverse bandwidth and delay characteristics. Historically, IGRP became one of the success factors for the early Cisco IOS software capabilities because of its superiority to RIP version 1. The important IGRP characteristics are as follows: More scalability than RIP Fast response to network changes Sophisticated metric Multiple-path support
  • EIGRP Metrics Another really sweet thing about EIGRP is that unlike many other protocols that use a single factor to compare routes and select the best possible path, EIGRP can use a combination of four: Bandwidth Delay Load Reliability
  • EIGRP routers that belong to different autonomous systems (ASes) don’t automatically share routing information and they don’t become neighbors. This behavior can be a real benefit when used in larger networks to reduce the amount of route information propagated through a specific AS. The only catch is that you might have to take care of redistribution between the different ASes manually. The only time EIGRP advertises its entire routing table is when it discovers a new neighbor and forms an adjacency with it through the exchange of Hello packets. When this happens, both neighbors advertise their entire routing tables to one another. After each has learned its neighbor’s routes, only changes to the routing table are propagated from then on. When EIGRP routers receive their neighbors’ updates, they store them in a local topology table. This table contains all known routes from all known neighbors, and serves as the raw material from which the best routes are selected and placed into the routing table. EIGRP routers keep route and topology information readily available in RAM, so they can react quickly to changes. Like OSPF, EIGRP saves this information in several tables and databases.
  • Route source - The identification number of the router that originally advertised that route. This field is populated only for routes learned externally from the EIGRP network.
  • Reliable Transport Protocol The EIGRP transport mechanism uses a mix of multicast and unicast packets, using reliable delivery when necessary. All transmissions use IP with the protocol type field set to 88. The IP multicast address used is DUAL requires guaranteed and sequenced delivery for some transmissions. This is achieved using acknowledgments and sequence numbers. So, for example, update packets (containing routing table data) are delivered reliably (with sequence numbers) to all neighbors using multicast. Acknowledgment packets-- with the correct sequence number--are expected from every neighbor. If the correct acknowledgment number is not received from a neighbor, the update is retransmitted as a unicast. The sequence number (seq num) in the last packet from the neighbor is recorded to ensure that packets are received in sequence. The number of packets in the queue that might need retransmission is shown as a queue count (QCnt), and the smoothed round trip time (SRTT) is used to estimate how long to wait before retransmitting to the neighbor. The retransmission timeout (RTO) is the time the router will wait for an acknowledgment before retransmitting the packet in the queue. Some transmissions do not require reliable delivery. For example, hello packets are multicast to all neighbors on an Ethernet segment, whereas acknowledgments are unicast. Neither hellos nor acknowledgments are sent reliably. EIGRP also uses queries and replies as part of DUAL. Queries are multicast or unicast using reliable delivery, whereas replies are always reliably unicast. Query and reply packets are discussed in more detail in the next section.
  • All route computations in EIGRP are handled by DUAL. One of DUAL's tasks is maintaining a table of loop-free paths to every destination. This table is referred to as the topology table . Unlike traditional DV protocols that save only the best (least-cost) path for every destination, DUAL saves all paths in the topology table. The least-cost path(s) is copied from the topology table to the routing table. In the event of a failure, the topology table allows for very quick convergence if another loop-free path is available. If a loop-free path is not found in the topology table, a route recomputation must occur, during which DUAL queries its neighbors, who, in turn, may query their neighbors, and so on... hence the name "Diffusing" Update Algorithm.
  • Slide 1 of 2 Purpose: This figure explains how to use the router igrp and network commands to configure an IGRP process. Emphasize: Note that the AS keyword is required for IGRP. You can use multiple network commands to specify all networks that are to participate in the IGRP process. Only those networks specified will be published to other routers.
  • Purpose: The figure shows how the IGRP commands operate on the example network. Emphasize : An administrator only specifies directly connected networks that should be published to other routers. Without the network command, nothing is advertised. With a network command, the router will advertise every subnet within the Class A, B, or C network specified in the configuration.
  • # Show users – will show connected users # Clear line 1 – will disconnect the session on line 1
  • Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI . Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  • Note: CDP is sent using multicast frames with the MAC address 0100.0ccc.cccc. CDP is a Cisco proprietary data link layer protocol that operates over any medium that supports the Subnetwork Access Protocol (SNAP) encapsulation (LANs, most WANs, and ATM). It is important to understand that because CDP operates at Layer 2 (data link layer of the OSI model), it functions independently of the Layer 3 (network) protocol (IP or IPX). CDP is on by default, but it can be disabled. In many cases, CDP is disabled on dial backup links, such as ISDN, so as to not keep the link up constantly. CDP – One dependency, the media type at the physical layer must support SNAP. SNAP was created because all protocols does not work well for 802.3 Ethernet frame as 802.3 had no type filed any longer. The original Ethernet had type filed, But the 802.3 had replaced this with length field, so When we bring SNAP at layer 2 it brings back type field. Frame relay, Ethernet, ATM, Token ring all support SNAP
  • Device ID. The hostname of the neighboring device Local Interface. The interface on which this router received information about the neighboring device. Holdtime. The amount of time the router will store this information before dropping it from memory, if additional CDP packets are not received. Capability. The type of device that announced itself using CDP. Platform. The hardware platform of the neighboring equipment. Port ID. The port from which the CDP packet was sent on the neighboring device. Emphasize: CDP is media- and protocol-independent and runs on all Cisco-manufactured equipment including routers, access servers, switches, and some managed hubs. With CDP, network management applications can retrieve the device type and SNMP agent address of neighboring devices. This capability enables applications to send SNMP queries to neighboring devices. CDP allows network management applications to dynamically discover Cisco devices that are neighbors. CDP runs on all media that support the Subnetwork Access Protocol, including LAN and Frame Relay. CDP runs over the data link layer only, not the network layer. Therefore, two systems that support different network-layer protocols can learn about each other. Cached CDP information is available to network management applications. Cisco devices never forward a CDP packet. When new information is received, old information is discarded. The holdtime determines how long to keep existing information from a neighbor.
  • Note: Some of the CDP commands are not available on the Catalyst 1900 switch, like cdp run , show cdp traffic , and show cdp entry . It’s important to remember that CDP packets aren’t passed through a Ciscoswitch, and that you see only what’s directly attached. So this means that if your router is connected to a switch, you won’t see any of the devices hooked up to that switch.
  • Emphasize: This graphic shows the show cdp neighbors command initiated from a router, which displays a summary of the capabilities and access details for the CDP neighbors. The show cdp neighbors detail command shows detailed information about the same devices. Note: If the neighbor is a Catalyst 1900 switch, the switch MAC address is also displayed. If the switch is a 2900xl, its MAC address is not displayed. Device ID. The hostname of the neighboring device Local Interface. The interface on which this router received information about the neighboring device. Holdtime. The amount of time the router will store this information before dropping it from memory, if additional CDP packets are not received. Capability. The neighbor’s capability, such as router, switch, or repeater. The capability codes are listed at the top of the command output. Platform. The hardware platform of the neighboring equipment.( Cisco 2509, Cisco 2511, and Catalyst 5000) Port ID. The port from which the CDP packet was sent on the neighboring device.
  • Emphasize: The example shows what information can be obtained about RouterA’s neighbor. CDP is one way to learn about other Cisco devices on the network.
  • Note: The holdtime indicates how long the neighbor information will be kept in the local CDP table.
  • 181-37
  • Purpose: This slide discuss the initial configurations on the routers and switches. Note: There is no setup mode on the Catalyst 1900 switch.
  • Layer 2 of 2 Emphasize: An access list is a mechanism for identifying particular traffic. One application of an access list is for filtering traffic into or out of a router interface.
  • Permission for router Manage IP Traffic Filter packet which pas thru Either can permit or Deny
  • If u want to permit only one from a network then permit shud be first
  • Layer 3 of 3 Purpose: Describe an inbound versus outbound access list on an interface.
  • Layer 3 of 3 Emphasize: Layer 3—Adds the Novell IPX access lists covered in Chapter 11, “Configuring Novell IPX,” and the number ranges for these types of access lists. As of Release 11.2.4(F), IPX also supports named access lists. Point out that number ranges generally allow 100 different access lists per type of protocol. When a given hundred-number range designates a standard access list, the rule is that the next hundred-number range is for extended access lists for that protocol. Exceptions to the numbering classification scheme include AppleTalk and DECnet, where the same number range can identify various access list types. For the most part, number ranges do not overlap between different protocols. Note: With Cisco IOS 12.0, the IP access-lists range has been expanded to also include: <1300-1999> IP standard access list (expanded range) <2000-2699> IP extended access list (expanded range)
  • Purpose: This graphic gives an overview of the type of TCP/IP packet tests that standard access lists can filter. It uses the encapsulation graphic and diamond decision graphic to remind students of material presented earlier in this course.
  • Layer 3 of 3 Purpose: Shows a deny result of the access list test. Emphasize: Now the packet is discarded into the packet discard bucket. The unwanted packet has been denied access to the outbound interface. The Notify Sender message shows a process like ICMP, returning an “administratively prohibited” message back to the sender.
  • Explain how the access list process, here there are three ACLS. Can give the example with a host IP address and host what happens on all the three ACLS
  • Purpose: This graphic gives an overview of the type of TCP/IP packet tests that extended access lists can filter. It uses the encapsulation graphic and diamond decision graphic to remind students of material presented earlier in this course.
  • Named access lists allow you to use names to both create and apply either standard or extended access lists. There is nothing new or different about these access lists aside from being able to refer to them in a way that makes sense to humans.
  • C C N A Day3

    1. 1. Distance Vector Link State Hybrid Distance Vector vs. Link State Route table Topology Incremental Update Periodic Update Routing by rumor A B C D X E
    2. 2. Distance Vector vs. Link State <ul><li>Distance Vector </li></ul><ul><li>Updates frequently </li></ul><ul><li>Each router is &quot;aware&quot; only of its immediate neighbors </li></ul><ul><li>Slow convergence </li></ul><ul><li>Prone to routing loops </li></ul><ul><li>Easy to configure </li></ul><ul><li>Link State </li></ul><ul><li>Updates are event triggered </li></ul><ul><li>Each router is &quot;aware&quot; of all other routers in the &quot;area&quot; </li></ul><ul><li>Fast convergence </li></ul><ul><li>Less subject to routing loops </li></ul><ul><li>More difficult to configure </li></ul>
    3. 3. Comparison Continued <ul><li>Distance Vector </li></ul><ul><li>Fewer router resources required </li></ul><ul><li>Updates require more bandwidth </li></ul><ul><li>Does not &quot;understand&quot; the topology of the network </li></ul><ul><li>Link State </li></ul><ul><li>More router resource intensive </li></ul><ul><li>Updates require less bandwidth </li></ul><ul><li>Has detailed knowledge of distant networks and routers </li></ul>
    4. 4. Link State Routing
    5. 5. Link State <ul><li>Example </li></ul><ul><ul><li>OSPF </li></ul></ul><ul><ul><li>IS-IS </li></ul></ul><ul><li>OSPF is used for corporate networks </li></ul><ul><li>IS-IS is used for ISP’s </li></ul>
    6. 6. OSPF
    7. 7. Open Shortest Path First (OSPF) <ul><li>OSPF is an open standards routing protocol </li></ul><ul><li>This works by using the Dijkstra algorithm </li></ul><ul><li>OSPF provides the following features: </li></ul><ul><ul><li>Minimizes routing update traffic </li></ul></ul><ul><ul><li>Allows scalability (e.g. RIP is limited to 15 hops) </li></ul></ul><ul><ul><li>Has unlimited hop count </li></ul></ul><ul><ul><li>Supports VLSM/CIDR </li></ul></ul><ul><ul><li>Allows multi-vendor deployment (open standard) </li></ul></ul>
    8. 8. Link State <ul><li>There are two types of Packets </li></ul><ul><ul><li>Hello </li></ul></ul><ul><ul><li>LSA’s </li></ul></ul>
    9. 9. OSPF Hello <ul><li>When router A starts it send Hello packet – uses </li></ul><ul><li>Hello packets are received by all neighbors </li></ul><ul><li>B will write A’s name in its neighbor table </li></ul><ul><li>C also process the same way </li></ul>A B C
    10. 10. &quot;Hello&quot; Packets <ul><li>Small frequently issued packets </li></ul><ul><li>Discover neighbours and negotiate &quot;adjacencies&quot; </li></ul><ul><li>Verify continued availability of adjacent neighbours </li></ul><ul><li>Hello packets and Link State Advertisements (LSAs) build and maintain the topological database </li></ul><ul><li>Hello packets are addressed to </li></ul>
    11. 11. Link State Advertisement (LSA) <ul><ul><li>An OSPF data packet containing link state and routing information that is shared among OSPF routers </li></ul></ul><ul><ul><li>LSAs are shared only with routers with whom it has formed adjacencies </li></ul></ul><ul><ul><li>LSA packets are used to update and maintain the topology database. </li></ul></ul>
    12. 12. Link State <ul><li>There are three type of tables </li></ul><ul><ul><li>Neighbor </li></ul></ul><ul><ul><li>Topology </li></ul></ul><ul><ul><li>Routing </li></ul></ul>
    13. 13. Tables <ul><li>Neighbor </li></ul><ul><ul><li>Contain information about the neighbors </li></ul></ul><ul><ul><li>Neighbor is a router which shares a link on same network </li></ul></ul><ul><ul><li>Another relationship is adjacency </li></ul></ul><ul><ul><li>Not necessarily all neighbors </li></ul></ul><ul><ul><li>LSA updates are only when adjacency is established </li></ul></ul>
    14. 14. Tables <ul><li>Topology </li></ul><ul><ul><li>Contain information about all network and path to reach any network </li></ul></ul><ul><ul><li>All LSA’s are entered in to topology table </li></ul></ul><ul><ul><li>When topology changes LSA’s are generated and send new LSA’s </li></ul></ul><ul><ul><li>On topology table an algorithm is run to create a shortest path, this algorithm is known as SPF or dijkstra algorithm </li></ul></ul>
    15. 15. Tables <ul><li>Routing Table </li></ul><ul><ul><li>Also knows as forwarding database </li></ul></ul><ul><ul><li>Generated when an algorithm is run on the topology database </li></ul></ul><ul><ul><li>Routing table for each router is unique </li></ul></ul>
    16. 16. OSPF Terms <ul><li>Link </li></ul><ul><li>Router ID </li></ul><ul><li>Neighbours </li></ul><ul><li>Adjacency </li></ul><ul><li>OSPF Area </li></ul><ul><li>Backbone area </li></ul><ul><li>Internal routers </li></ul><ul><li>Area Border Router (ABR) </li></ul><ul><li>Autonomous System Boundary Router (ASBR) </li></ul>
    17. 17. Link <ul><li>A network or router interface assigned to a given network </li></ul><ul><li>Link (interface) will have &quot;state&quot; information associated with it </li></ul><ul><ul><li>Status (up or down) </li></ul></ul><ul><ul><li>IP Address </li></ul></ul><ul><ul><li>Network type (e.g. Fast Ethernet) </li></ul></ul><ul><ul><li>Bandwidth </li></ul></ul><ul><ul><li>Addresses of other routers attached to this interface </li></ul></ul>
    18. 18. OSPF Term: Link <ul><li>A link is a network or router interface assigned to any given network </li></ul><ul><li>This link, or interface, will have state information associated with it (up or down) as well as one or more IP addresses </li></ul>
    19. 19. OSPF Term: Link State <ul><li>Status of a link between two routers </li></ul><ul><li>Information is shared between directly connected routers. </li></ul><ul><li>This information propagates throughout the network unchanged and is also used to create a shortest path first (SPF) tree . </li></ul>
    20. 20. Router ID <ul><li>The Router ID (RID) is an IP address used to identify the router </li></ul><ul><li>Cisco chooses the Router ID by using the highest IP address of all configured loopback interfaces </li></ul><ul><li>If no loopback interfaces are configured with addresses, OSPF will choose the highest IP address of all active physical interfaces. </li></ul><ul><li>You can manually assign the router ID. </li></ul><ul><li>The RID interface MUST always be up, therefore loopbacks are preferred </li></ul>
    21. 21. Neighbours <ul><li>Neighbours are two or more routers that have an interface on a common network </li></ul><ul><ul><li>E.g. two routers connected on a serial link </li></ul></ul><ul><ul><li>E.g. several routers connected on a common Ethernet or Frame relay network </li></ul></ul><ul><li>Communication takes place between / among neighbours </li></ul><ul><li>neighbours form &quot;adjacencies&quot; </li></ul>
    22. 22. Adjacency <ul><li>A relationship between two routers that permits the direct exchange of route updates </li></ul><ul><li>Not all neighbours will form adjacencies </li></ul><ul><ul><li>This is done for reasons of efficiency – more later </li></ul></ul>
    23. 23. OSPF Design <ul><li>Each router connects to the backbone called area 0, or the backbone area. </li></ul><ul><li>Routers that connect other areas to the backbone within an AS are called Area Border Routers (ABRs). One interface must be in area 0. </li></ul><ul><li>OSPF runs inside an autonomous system, but can also connect multiple autonomous systems together. The router that connects these ASes together is called an Autonomous System Boundary Router (ASBR). </li></ul>
    24. 24. OSPF Areas <ul><li>An OSPF area is a grouping of contiguous networks and routers </li></ul><ul><ul><li>Share a common area ID </li></ul></ul><ul><li>A router can be a member of more than one area (area border router) </li></ul><ul><li>All routers in the same area have the same topology database </li></ul><ul><li>When multiple areas exist, there must always be an area 0 (the backbone) to which other areas connect </li></ul>
    25. 25. Why areas? <ul><li>Decreases routing overhead </li></ul><ul><ul><li>Compare to multiple smaller broadcast domains instead of one large one </li></ul></ul><ul><li>Speeds convergence </li></ul><ul><li>Confines network instability (e.g. route &quot;flapping&quot;) to single area of the network </li></ul><ul><li>Adds considerably to the complexity of setting up OSPF </li></ul><ul><ul><li>CCNA certification deals only with single-area OSPF </li></ul></ul>
    26. 26. Area Terminology
    27. 27. LSA’s in Area <ul><li>LSAs communicate with adjacent routers in the same OSPF area </li></ul><ul><li>Subsequently, a change in a link state is &quot;flooded&quot; to all area routers via LSAs </li></ul><ul><li>In larger networks, multiple areas may be created </li></ul><ul><ul><li>LSAs are sent only to adjacent routers in the same area </li></ul></ul><ul><ul><li>&quot;Area border routers&quot; connect areas, passing summarized route information between </li></ul></ul>
    28. 28. Path Calculation <ul><li>Changes to the topological database of a router trigger a recalculation to re-establish the best route(s) to known networks </li></ul><ul><ul><li>Uses the SPF (shortest path first) algorithm developed by a computer scientist named Dijkstra </li></ul></ul><ul><ul><li>This is done by each individual router using its detailed &quot;knowledge&quot; of the whole network </li></ul></ul><ul><ul><li>Leads to rapid and accurate convergence </li></ul></ul><ul><ul><li>Based on detailed knowledge of every link in the area and the OSPF &quot;cost&quot; of each </li></ul></ul><ul><ul><li>builds an OSPF tree with itself at the route </li></ul></ul>
    29. 29. Terminology: Cost <ul><li>Various criteria can be selected by the administrator to determine the metric </li></ul><ul><li>Usually, OSPF cost=10 8 /bandwidth </li></ul>Do not forget to configure the bandwidth` command on serial links to ensure correct default OSPF cost
    30. 30. Pros and Cons <ul><li>Note that OSPF is a more sophisticated routing protocol </li></ul><ul><ul><li>Converges rapidly and accurately </li></ul></ul><ul><ul><li>Can use a metric calculation that effectively selects the &quot;best&quot; route(s) primarily based on bandwidth, although an OSPF cost can be administratively assigned </li></ul></ul><ul><li>Use of OSPF requires </li></ul><ul><ul><li>More powerful routing hardware </li></ul></ul><ul><ul><li>More detailed knowledge by the administrator, especially when large multi-area networks are used </li></ul></ul>
    31. 31. Types of Neighbors <ul><li>OSPF can be defined for three type of neighbors </li></ul><ul><ul><li>Broadcast Multi Access (BMA) ex- Ethernet </li></ul></ul><ul><ul><li>Point to Point </li></ul></ul><ul><ul><li>Non-Broadcast Multi Access (NBMA) </li></ul></ul>
    32. 32. OSPF Network Types
    33. 33. Adjacencies <ul><li>Point to Point all routers form adjacencies </li></ul><ul><li>BMA & NBMA one router is elected as DR </li></ul><ul><li>DR establish adjacency with every neighbor router </li></ul><ul><li>LSA updates are exchanged only to DR </li></ul><ul><li>DR is the router which has highest priority </li></ul><ul><li>All CISCO routers has priority 1 </li></ul><ul><li>If priority is same then router id is seen </li></ul><ul><li>The RID is highest IP address of all interfaces </li></ul>
    34. 34. Point-to-Point Links <ul><li>Usually a serial interface running either PPP or HDLC </li></ul><ul><li>No DR or BDR election required </li></ul><ul><li>OSPF autodetects this interface type </li></ul><ul><li>OSPF packets are sent using multicast </li></ul><ul><li>All routers form adjacencies </li></ul>
    35. 35. Multi-access Broadcast Network <ul><li>Generally LAN technologies like Ethernet and Token Ring </li></ul><ul><li>DR and BDR selection required </li></ul><ul><li>All neighbor routers form full adjacencies with the DR and BDR only </li></ul><ul><li>Packets to the DR use </li></ul><ul><li>Packets from DR to all other routers use </li></ul>
    36. 36. Electing the DR and BDR <ul><ul><li>Hello packets are exchanged via IP multicast. </li></ul></ul><ul><ul><li>The router with the highest priority is selected as the DR. </li></ul></ul><ul><ul><li>If Priority is same then Router ID is seen </li></ul></ul><ul><ul><li>Use the OSPF router ID as the tie breaker. </li></ul></ul>
    37. 37. Terminology: DRs and BDRs <ul><li>The designated router (DR) is responsible for generating LSAs on behalf of all routers connected to the same segment </li></ul>
    38. 38. DR Responsibility <ul><li>When a router sees a new or changed link-state, it sends an LSA to its DR using a particular multicast address </li></ul><ul><li>The DR then forwards the LSA to all the other routers with whom it is adjacent </li></ul><ul><ul><li>Minimizes the number of formal adjacencies that must be formed and therefore the amount of LSU (link state update) packet traffic in a multi-router network </li></ul></ul>
    39. 39. OSPF Summary <ul><li>AD -100 </li></ul><ul><li>Hop count is unlimited </li></ul><ul><li>Metric = Cost – 10 8 /BW </li></ul><ul><li>Classless, VLSM </li></ul><ul><li>Load balance up to SIX routers </li></ul><ul><li>Require more processing power </li></ul>
    40. 40. Basic OSPF Configuration <ul><li>Router(config)# router ospf 1 </li></ul><ul><li>The number 1 in this example is a process-id # that begins an OSPF process in the router </li></ul><ul><ul><li>More than one process can be launched in a router, but this is rarely necessary </li></ul></ul><ul><ul><li>Usually the same process-id is used throughout the entire network, but this is not required </li></ul></ul><ul><ul><li>The process-id # can actually be any value from 1 to &quot;very large integer“ </li></ul></ul><ul><ul><li>The process-id # cannot be ZERO </li></ul></ul><ul><ul><li>This is NOT the same as the AS# used in IGRP and EIGRP </li></ul></ul>
    41. 41. Configuring OSPF Areas <ul><li>After identifying the OSPF process, you need to identify the interfaces that you want to activate OSPF communications </li></ul><ul><li>Lab_A#config t </li></ul><ul><li>Lab_A(config)#router ospf 1 </li></ul><ul><li>Lab_A(config-router)#network </li></ul><ul><li>area ? </li></ul><ul><li><0-4294967295> OSPF area ID as a decimal value </li></ul><ul><li>A.B.C.D OSPF area ID in IP address format </li></ul><ul><li>Lab_A(config-router)#network </li></ul><ul><li>area 0 </li></ul><ul><li>Every OSPF network must have an area 0 (the backbone area) to which other areas connect </li></ul><ul><ul><li>So in a multiple area network, there must be an area 0 </li></ul></ul><ul><ul><li>The wildcard mask represents the set of hosts supported by the network and is really just the inverse of the subnet mask . </li></ul></ul>
    42. 42. OSPF Configuration <ul><li>OSPF Process ID number is irrelevant. It can be the same on every router on the network </li></ul><ul><li>The arguments of the network command are the network number ( and the wildcard mask ( </li></ul><ul><li>Wildcards - A 0 octet in the wildcard mask indicates that the corresponding octet in the network must match exactly </li></ul><ul><li>A 255 indicates that you don’t care what the corresponding octet is in the network number </li></ul><ul><li>A network and wildcard mask combination of would match only, and nothing else. </li></ul><ul><li>The network and wildcard mask combination of would match anything in the range– </li></ul>
    43. 43. OSPF Configuration -1 R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    44. 44. OSPF Configuration -1 R1# config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# router ospf 1 R1(config-router)# network area 0 R1(config-router)# network area 0 R1(config-router)# ^Z R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    45. 45. OSPF Configuration -2 R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    46. 46. OSPF Configuration -2 R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    47. 47. OSPF Configuration -2 R1# config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# router ospf 1 R1(config-router)# network area 0 R1(config-router)# network 200.0.0. 8 area 0 R1(config-router)# ^Z R3# config t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# router ospf 1 R3(config-router)# network 200.0.0. 32 area 0 R3(config-router)# network 200.0.0. 12 area 0 R3(config-router)# ^Z R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    48. 48. OSPF and Loopback Interfaces <ul><li>Configuring loopback interfaces when using the OSPF routing protocol is important </li></ul><ul><li>Cisco suggests using them whenever you configure OSPF on a router </li></ul><ul><li>Loopback interfaces are logical interfaces, which are virtual, software-only interfaces; they are not real router interfaces </li></ul><ul><li>Using loopback interfaces with your OSPF configuration ensures that an interface is always active for OSPF processes. </li></ul><ul><li>The highest IP address on a router will become that router’s RID </li></ul><ul><li>The RID is used to advertise the routes as well as elect the DR and BDR. </li></ul><ul><li>If you configure serial interface of your router with highest IP Address this Address becomes RID of t is the RID of the router because e router </li></ul><ul><li>If this interface goes down, then a re-election must occur </li></ul><ul><li>It can have an big impact when the above link is flapping </li></ul>
    49. 49. Configuring Loopback Interfaces <ul><li>R1# config t </li></ul><ul><li>Enter configuration commands, one per line. End with CNTL/Z. </li></ul><ul><li>R1(config)# int loopback 0 </li></ul><ul><li>R1(config-if)# ip address </li></ul><ul><li>R1(config-if)# no shut </li></ul><ul><li>R1(config-if)# ^Z </li></ul><ul><li>R1# </li></ul>
    50. 50. Verifying OSPF Operation show ip protocols Router# <ul><li>Verifies the configured IP routing protocol processes, parameters and statistics </li></ul>show ip route ospf Router# <ul><li>Displays all OSPF routes learned by the router </li></ul>show ip ospf interface Router# <ul><li>Displays the OSPF router ID, area ID and adjacency information </li></ul>
    51. 51. Verifying OSPF Operation (Cont.) show ip ospf Router# <ul><li>Displays the OSPF router ID, timers, and statistics </li></ul>show ip ospf neighbor [detail] Router# <ul><li>Displays information about the OSPF neighbors, including Designated Router (DR) and Backup Designated Router (BDR) information on broadcast networks </li></ul>
    52. 52. The show ip route ospf Command RouterA# show ip route ospf Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP, D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP, i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default Gateway of last resort is not set is subnetted, 2 subnets O [110/10] via, 00:00:50, Ethernet0
    53. 53. The show ip ospf interface Command RouterA# show ip ospf interface e0 Ethernet0 is up, line protocol is up Internet Address, Area 0 Process ID 1, Router ID, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DROTHER, Priority 1 Designated Router (ID), Interface address Backup Designated router (ID), Interface address Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:04 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor (Designated Router) Suppress hello for 0 neighbor(s)
    54. 54. The show ip ospf neighbor Command RouterB# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1 FULL/BDR 00:00:31 Ethernet0 1 FULL/- 00:00:38 Serial0
    55. 55. show ip ospf neighbor detail show ip ospf database
    56. 56. Setting Priority for DR Election ip ospf priority number <ul><li>This interface configuration command assigns the OSPF priority to an interface. </li></ul><ul><li>Different interfaces on a router may be assigned different values. </li></ul><ul><li>The default priority is 1. The range is from 0 to 255. </li></ul><ul><li>0 means the router is a DROTHER; it can’t be the DR or BDR. </li></ul>Router(config-if)#
    57. 57. EIGRP
    58. 58. EIGRP <ul><li>IGRP </li></ul><ul><ul><li>DV </li></ul></ul><ul><ul><li>Easy to configure </li></ul></ul><ul><ul><li>Neighbor </li></ul></ul><ul><ul><li>Advanced Metric </li></ul></ul><ul><ul><li>Periodic </li></ul></ul><ul><ul><li>Broadcast </li></ul></ul><ul><li>OSPF </li></ul><ul><ul><li>LS </li></ul></ul><ul><ul><li>Incremental Updates </li></ul></ul><ul><ul><li>Multicast </li></ul></ul><ul><ul><li>Open Standard </li></ul></ul><ul><li>EIGRP </li></ul><ul><ul><li>Hybrid </li></ul></ul><ul><ul><li>DUAL </li></ul></ul><ul><ul><li>Topology Database </li></ul></ul><ul><ul><li>Rapid Convergence </li></ul></ul><ul><ul><li>Reliable </li></ul></ul>
    59. 59. Overview <ul><li>Enhanced Interior Gateway Routing Protocol (EIGRP) is a Cisco-proprietary routing protocol based on Interior Gateway Routing Protocol (IGRP). </li></ul><ul><li>Released in 1994 , Unlike IGRP, which is a classful routing protocol, EIGRP supports CIDR and VLSM. </li></ul><ul><li>it is probably one of the two most popular routing protocols in use today. </li></ul><ul><li>Compared to IGRP, EIGRP boasts faster convergence times, improved scalability, and superior handling of routing loops. </li></ul><ul><li>EIGRP is often described as a hybrid routing protocol, offering the best of distance vector and link-state algorithms. </li></ul>
    60. 60. Comparing EIGRP with IGRP <ul><li>IGRP and EIGRP are compatible with each other. </li></ul><ul><li>EIGRP offers multiprotocol support, but IGRP does not. </li></ul><ul><li>Communication via Reliable Transport Protocol (RTP) </li></ul><ul><li>Best path selection via Diffusing Update Algorithm (DUAL) </li></ul><ul><li>Improved convergence time </li></ul><ul><li>Reduced network overhead </li></ul>
    61. 61. Introducing EIGRP <ul><li>EIGRP supports: </li></ul><ul><ul><li>Rapid convergence </li></ul></ul><ul><ul><li>Reduced bandwidth usage </li></ul></ul><ul><ul><li>Multiple network-layer protocols </li></ul></ul>
    62. 62. EIGRP Tables <ul><li>EIGRP maintains 3 tables </li></ul><ul><ul><li>Neighbor table </li></ul></ul><ul><ul><li>Topology table </li></ul></ul><ul><ul><li>Routing table </li></ul></ul>
    63. 63. Neighbor Discovery <ul><li>There are three conditions that must be met for neighborship establishment </li></ul><ul><ul><li>Hello or ACK received </li></ul></ul><ul><ul><li>AS numbers match </li></ul></ul><ul><ul><li>Identical metrics (K values) </li></ul></ul>Hello ? AS ? K K1 – BW K2- Delay K3-Load K3-Reliability K5-MTU
    64. 64. <ul><li>The metrics used by EIGRP in making routing decisions are ( lower the metric the better ): </li></ul><ul><ul><li>bandwidth </li></ul></ul><ul><ul><li>delay </li></ul></ul><ul><ul><li>load </li></ul></ul><ul><ul><li>Reliability </li></ul></ul><ul><ul><li>MTU </li></ul></ul><ul><li>By default, EIGRP uses only: </li></ul><ul><ul><li>Bandwidth </li></ul></ul><ul><ul><li>Delay </li></ul></ul><ul><li>Analogies : </li></ul><ul><li>Think of bandwidth as the width of the pipe </li></ul><ul><li>and </li></ul><ul><li>delay as the length of the pipe . </li></ul><ul><li>Bandwidth is the carrying capacity </li></ul><ul><li>Delay is the end-to-end travel time . </li></ul>Metric Calculation
    65. 65. Neighbor Table <ul><li>The neighbor table is the most important table in EIGRP </li></ul><ul><li>Stores address and interface of neighbor </li></ul>
    66. 66. Topology Table Give me information about all routes Network
    67. 67. Topology Table <ul><li>The topology table is made up of all the EIGRP routing tables in the autonomous system. </li></ul><ul><li>DUAL takes the information and calculates the lowest cost routes to each destination. </li></ul><ul><li>By tracking this information, EIGRP routers can identify and switch to alternate routes quickly. </li></ul><ul><li>The information that the router learns from the DUAL is used to determine the successor route, which is the term used to identify the primary or best route. </li></ul><ul><li>Every EIGRP router maintains a topology table. All learned routes to a destination are maintained in the topology table. </li></ul>
    68. 68. Routing Tables <ul><li>A successor is a route selected as the primary route to use to reach a destination. </li></ul><ul><li>DUAL calculates Successor (Primary Route) and places it in the routing table (and topology table) </li></ul><ul><li>Can have up to 4 successors of equal or unequal value </li></ul><ul><li>DUAL calculates Feasible Successor (Backup Route) and places it in the Topology Table. </li></ul><ul><li>Promoted to successor if the route goes down if it has a lower cost than current successor </li></ul><ul><li>If no FS in Table - Send query </li></ul><ul><li>Multiple feasible successors for a destination can be retained in the topology table although it is not mandatory </li></ul>
    69. 69. EIGRP Concepts & Terminology <ul><li>EIGRP routers that belong to different autonomous systems (ASes) don’t automatically share routing information </li></ul><ul><li>The only time EIGRP advertises its entire routing table is when it discovers a new neighbor and forms an adjacency with it through the exchange of Hello packets </li></ul><ul><li>When this happens, both neighbors advertise their entire routing tables to one another </li></ul><ul><li>After each has learned its neighbor’s routes, only changes to the routing table are propagated </li></ul>
    70. 70. Mumbai Chennai Bangalore 1.544Mbps 56Kbps 1.544Mbps Dist to =100 Dist to =100 Dist to =350 10Mbps 10Mbps – 100 1,544Mbps – 250 56Kbps -1000 <ul><li>Chennai receives an update from Mumbai with a cost of 100, which is Mumbai's cost to reach, This cost is referred to as the reported distance (RD) </li></ul><ul><li>Bangalore will report its cost to reach Bangalore's RD is 350 </li></ul><ul><li>Chennai will compute its cost to reach via Mumbai and Bangalore and compare the metrics for the two paths </li></ul><ul><li>Chennai's cost via Mumbai is 1100. Chennai's cost via Bangalore is 600. The lowest cost to reach a destination is referred to as the feasible distance (FD) for that destination </li></ul><ul><li>Chennai's FD to is 600. The next-hop router in the lowest-cost path to the destination is referred to as the successor. </li></ul><ul><li>A feasible successor is a path whose reported distance is less than the feasible distance, and it is considered a backup route. </li></ul>
    71. 71. EIGRP Terms <ul><li>Feasible distance (FD) - This is the lowest calculated metric to reach destination. This is the route that you will find in the routing table, because it is considered the best path </li></ul><ul><li>Reported distance (RD) - The distance reported by an adjacent neighbor to a specific destination. </li></ul><ul><li>Interface information - The interface through which the destination can be reached. </li></ul><ul><li>Route status - The status of a route. Routes are identified as being either passive, which means that the route is stable and ready for use, or active, which means that the route is in the process of being recomputed by DUAL </li></ul>
    72. 72. <ul><li>Successor – Current Route </li></ul><ul><ul><li>A successor is a route selected as the primary route to use to reach a destination. </li></ul></ul><ul><ul><li>Successors are the entries kept in the routing table. </li></ul></ul><ul><li>Feasible Successor - A backup route </li></ul><ul><ul><li>A feasible successor is a backup route. </li></ul></ul><ul><ul><li>These routes are selected at the same time the successors are identified, but they are kept in the topology table. </li></ul></ul><ul><ul><li>Multiple feasible successors for a destination can be retained in the topology table. </li></ul></ul>EIGRP Terminology and Operations
    73. 73. Reliable Transport Protocol (RTP) <ul><li>Used by EIGRP for its routing updates in place of TCP </li></ul><ul><li>EIGRP can call on RTP to provide reliable or unreliable service </li></ul><ul><ul><li>EIGRP uses reliable service for route updates </li></ul></ul><ul><ul><li>Unreliable for Hellos </li></ul></ul><ul><li>Reliable Transport Protocol (RTP) is a transport layer protocol that guarantees ordered delivery of EIGRP packets to all neighbors. </li></ul><ul><li>On an IP network, hosts use TCP to sequence packets and ensure their timely delivery. RIP uses UDP </li></ul><ul><li>However, EIGRP is protocol-independent and does not rely on TCP/IP to exchange routing information the way that RIP, IGRP, and OSPF do. </li></ul><ul><li>EIGRP uses RTP as its own proprietary transport layer protocol to guarantee delivery of routing information. </li></ul><ul><li>With RTP, EIGRP can multicast and unicast to different peers simultaneously. </li></ul>
    74. 74. Diffusing Update Algorithm (DUAL) <ul><li>All route computations in EIGRP are handled by DUAL </li></ul><ul><li>One of DUAL's tasks is maintaining a table of loop-free paths to every destination. </li></ul><ul><li>This table is referred to as the topology table </li></ul><ul><li>DUAL saves all paths in the topology table </li></ul><ul><li>The least-cost path(s) is copied from the topology table to the routing table </li></ul><ul><li>In the event of a failure, the topology table allows for very quick convergence if another loop-free path is available </li></ul><ul><li>If a loop-free path is not found in the topology table, a route recomputation must occur </li></ul><ul><li>DUAL queries its neighbors, who, in turn, may query their neighbors, and so on... </li></ul><ul><li>Hence the name &quot;Diffusing&quot; Update Algorithm </li></ul>
    75. 75. VLSM Support <ul><li>EIGRP supports the use of Variable- Length Subnet Masks </li></ul><ul><li>Can use 30-bit subnet masks for point-to-point networks </li></ul><ul><li>Because the subnet mask is propagated with every route update, EIGRP also supports the use of discontiguous subnets </li></ul><ul><li>Discontiguous network is the one that has two or more subnetworks of a classful network connected together by different classful networks </li></ul>
    76. 76. Discontiguous Network
    77. 77. EIGRP & IGRP Metric Calculation
    78. 78. Configuring EIGRP Router(config-router)#network network-number <ul><li>Selects participating attached networks </li></ul>Router(config)#router eigrp autonomous-system <ul><li>Defines EIGRP as the IP routing protocol </li></ul>
    79. 79. EIGRP Configuration Example
    80. 80. EIGRP Configuration R1# config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# router eigrp 10 R1(config-router)# network R1(config-router)# network 200.0.0. 8 R1(config-router)# ^Z R3# config t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# router eigrp 10 R3(config-router)# network 200.0.0. 32 R3(config-router)# network 200.0.0. 12 R3(config-router)# ^Z R2 R1 R3 S0 S1 E0 S0 E0 S0 A B
    81. 81. Verifying the EIGRP Configuration To verify the EIGRP configuration a number of show and debug commands are available. These commands are shown on the next few slides.
    82. 82. show ip eigrp topology show ip eigrp topology [active | pending | successors]
    83. 83. show ip eigrp topology all-links show ip eigrp traffic
    84. 84. Administrative Distances
    85. 85. TELNET <ul><li>Getting information about remote device </li></ul><ul><li>Can connect to remote device and configure a device </li></ul><ul><li>Password must be set </li></ul><ul><ul><li>R1(config)# line vty 0 4 </li></ul></ul><ul><ul><li>Password cisco </li></ul></ul><ul><ul><li>login </li></ul></ul>
    86. 86. © 2002, Cisco Systems, Inc. All rights reserved. Discovering Neighbors on the Network
    87. 87. Cisco Discovery Protocol <ul><ul><li>CDP is a proprietary utility that gives you a summary of directly connected switches, routers, and other Cisco devices. </li></ul></ul><ul><ul><li>CDP discovers neighboring devices regardless of which protocol suite they are running. </li></ul></ul><ul><ul><li>Runs on the Data link layer </li></ul></ul><ul><ul><li>Physical media must support the Subnetwork Access Protocol (SNAP) encapsulation. </li></ul></ul><ul><ul><li>Only give directly connected device </li></ul></ul><ul><ul><li>By default enabled, you can enable or disable </li></ul></ul>
    88. 88. Discovering Neighbors with CDP <ul><li>CDP runs on routers with Cisco IOS ® software Release 10.3 or later and on Cisco switches. </li></ul><ul><li>Show CDP ? </li></ul><ul><li>Summary information includes: </li></ul><ul><ul><li>Device ID </li></ul></ul><ul><ul><li>Local Interface </li></ul></ul><ul><ul><li>Port ID </li></ul></ul><ul><ul><li>Capabilities list </li></ul></ul><ul><ul><li>Platform </li></ul></ul>
    89. 89. CDP <ul><li>CDP timer is how often CDP packets are transmitted to all active interfaces. </li></ul><ul><li>Router(config)# cdp timer 90 </li></ul><ul><li>CDP holdtime is the amount of time that the device will hold packets received from neighbor devices. </li></ul><ul><li>Router(config)# cdp holdtime 240 </li></ul>
    90. 90. Using CDP
    91. 91. Using the show cdp neighbors Command The show cdp neighbor command (sh cdp nei for short) delivers information about directly connected devices.
    92. 92. CDP <ul><li>show cdp neighbor detail </li></ul><ul><li>This command can be run on both routers and switches, and it displays detailed information about each device connected to the device </li></ul>
    93. 93. Using the show cdp entry Command The show cdp entry * command displays the same information as the show cdp neighbor details command.
    94. 94. Additional CDP Commands The show cdp traffic command displays information about interface traffic, including the number of CDP packets sent and received and the errors with CDP.
    95. 95. CDP Commands <ul><li>To disable the CDP on particular interface use the &quot;no cdp enable&quot; command </li></ul><ul><li>To disable CDP on the entire router use the &quot;no cdp run&quot; in global configuration mode. </li></ul>
    96. 96. Summary <ul><ul><li>Cisco Discovery Protocol is an information-gathering tool used by network administrators to get information about directly connected devices. </li></ul></ul><ul><ul><li>CDP exchanges hardware and software device information with its directly connected CDP neighbors. </li></ul></ul><ul><ul><li>You can enable or disable CDP on a router as a whole or on a port-by-port basis. </li></ul></ul><ul><ul><li>The show cdp neighbors command displays information about a router’s CDP neighbors. </li></ul></ul><ul><ul><li>The show cdp entry, show cdp traffic, and show cdp interface commands display detailed CDP information on a Cisco device. </li></ul></ul>
    97. 97. Access Control Lists
    98. 98. <ul><ul><li>Manage IP traffic as network access grows </li></ul></ul><ul><ul><li>Filter packets as they pass through the router </li></ul></ul>Why Use Access Lists?
    99. 99. What are ACLs? <ul><li>ACLs are lists of conditions that are applied to traffic traveling across a router's interface.  </li></ul><ul><li>These lists tell the router what types of packets to accept or deny. </li></ul><ul><li>Acceptance and denial can be based on specified conditions. </li></ul><ul><li>ACLs can be configured at the router to control access to a network or subnet. </li></ul><ul><li>Some ACL decision points are source and destination addresses, protocols, and upper-layer port numbers. </li></ul>
    100. 100. Reasons to Create ACLs <ul><li>The following are some of the primary reasons to create ACLs: </li></ul><ul><li>Limit network traffic and increase network performance. </li></ul><ul><li>Provide traffic flow control. </li></ul><ul><li>Provide a basic level of security for network access. </li></ul><ul><li>Decide which types of traffic are forwarded or blocked at the router interfaces </li></ul><ul><li>For example: Permit e-mail traffic to be routed, but block all telnet traffic. </li></ul><ul><li>If ACLs are not configured on the router, all packets passing through the router will be allowed onto all parts of the network. </li></ul>
    101. 101. ACL’s <ul><li>Different access list for Telnet </li></ul><ul><li>When configuring ISDN you need to use access list </li></ul><ul><li>Implicit deny at bottom </li></ul><ul><li>All restricted statements should be on first </li></ul><ul><li>There are two types </li></ul><ul><ul><li>Standard </li></ul></ul><ul><ul><li>Extended </li></ul></ul>
    102. 102. Network N1 N2 N3 N4 N5 N6 A B C
    103. 103. IP Packet <ul><li>SRC IP Address </li></ul><ul><li>DEST IP Address </li></ul><ul><li>Protocol type </li></ul><ul><li>SRC Port </li></ul><ul><li>DEST Port </li></ul>The first 2 bytes in the TCP/UDP header are the source port number The next 2 bytes in the TCP/UDP header are the Destination port number 1027 80
    104. 104. <ul><ul><li>Standard </li></ul></ul><ul><ul><ul><li>Checks source address </li></ul></ul></ul><ul><ul><ul><li>Permits or denies entire protocol suite </li></ul></ul></ul><ul><ul><li>Extended </li></ul></ul><ul><ul><ul><li>Checks source and destination address </li></ul></ul></ul><ul><ul><ul><li>Generally permits or denies specific protocols </li></ul></ul></ul>Types of Access Lists
    105. 105. How to Identify Access Lists <ul><ul><li>Standard IP lists (1-99) test conditions of all IP packets from source addresses. </li></ul></ul><ul><ul><li>Extended IP lists (100-199) test conditions of source and destination addresses, specific TCP/IP protocols, and destination ports. </li></ul></ul><ul><ul><li>Standard IP lists (1300-1999) (expanded range). </li></ul></ul><ul><ul><li>Extended IP lists (2000-2699) (expanded range). </li></ul></ul>
    106. 106. Standard ACLs <ul><li>The full syntax of the standard ACL command is: </li></ul><ul><li>Router(config)# access-list access-list-number {deny | permit} source [ source-wildcard ] </li></ul><ul><li>The no form of this command is used to remove a standard ACL. This is the syntax: </li></ul><ul><li>Router(config)# no access-list access-list-number </li></ul>Config# Access-list 1 deny Config# access-list 1 permit any
    107. 107. Wildcard Mask <ul><li>Access-list 99 permit wildcard mask </li></ul><ul><li>All 32 bits of an IP Address can be filtered </li></ul><ul><li>Wildcard inverse mask </li></ul><ul><li>0=must match </li></ul><ul><li>1= ignore </li></ul>0-255.0-255.0-255.0-255 (any) 192.0-255.0-255.0-255 192.168.0-255.0-255 (host) Matching IP MASK (
    108. 108. The ANY and HOST keyword <ul><li>Access-list 1 permit </li></ul><ul><li>Or </li></ul><ul><li>permit host </li></ul>Access-list 1 permit Or permit any
    109. 109. Testing Packets with Standard Access Lists
    110. 110. Outbound ACL Operation <ul><ul><li>If no access list statement matches, then discard the packet. </li></ul></ul>
    111. 111. Reading an ACL <ul><li>First Hit or Best Fit? </li></ul><ul><li>Access-list 99 deny host </li></ul><ul><li>access-list 99 permit any </li></ul><ul><li>Access-list 99 permit </li></ul><ul><li>Access-list 99 deny host </li></ul><ul><li>access-list 99 permit any </li></ul><ul><li>Access-list 99 deny host </li></ul><ul><li>Implicit deny at the end of every ACL </li></ul>
    112. 112. Creating ACLs ACLs are created in the global configuration mode. There are many different types of ACLs including standard, extended, IPX, AppleTalk, and others. When configuring ACLs on a router, each ACL must be uniquely identified by assigning a number to it. This number identifies the type of access list created and must fall within the specific range of numbers that is valid for that type of list. Since IP is by far the most popular routed protocol, addition ACL numbers have been added to newer router IOSs. Standard IP: 1300-1999 Extended IP: 2000-2699
    113. 113. The ip access-group command { in | out }
    114. 114. Exercise – Standard Access List R1 Sales Account <ul><li>Account should be denied access to Sales </li></ul><ul><li>To steps to configure </li></ul><ul><li>Create a standard Access list </li></ul><ul><li>Apply ACL to proper interface inbound or outbound </li></ul>R2 R3 S0 S0 E0 E0 S0 S1 A B
    115. 115. Exercise – Standard Access List R1 Sales Account R2 R3 S0 S0 E0 E0 S0 S1 Creating access list Config# Access-list 1 deny Config# access-list 1 permit any Applying access list Config#int e 0 Config-if# ip access-group 1 out A B
    116. 116. Extended ACLs <ul><li>Extended ACLs are used more often than standard ACLs because they provide a greater range of control. </li></ul><ul><li>Extended ACLs check the source and destination packet addresses as well as being able to check for protocols and port numbers. </li></ul><ul><li>At the end of the extended ACL statement, additional precision is gained from a field that specifies the optional Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port number. </li></ul><ul><li>Logical operations may be specified such as, equal (eq), not equal (neq), greater than (gt), and less than (lt), that the extended ACL will perform on specific protocols. </li></ul><ul><li>Extended ACLs use an access-list-number in the range 100 to 199 (also from 2000 to 2699 in recent IOS). </li></ul>
    117. 117. Configuration <ul><li>Access-list acl# {permit/Deny} </li></ul><ul><li>Protocol </li></ul><ul><li>Src IP src WCM </li></ul><ul><li>Dst IP dst WCM </li></ul><ul><li>Opetrator port </li></ul><ul><li>Protocol </li></ul><ul><ul><li>OSPF </li></ul></ul><ul><ul><li>EIGRP </li></ul></ul><ul><ul><li>ICMP </li></ul></ul><ul><ul><li>TCP </li></ul></ul><ul><ul><li>UDP </li></ul></ul>RP If you need to Block a routing protocol IP <ul><li>Operator </li></ul><ul><ul><li>eq </li></ul></ul><ul><ul><li>gt </li></ul></ul><ul><ul><li>lt </li></ul></ul><ul><ul><li>neq </li></ul></ul>
    118. 118. Testing Packets with Extended Access Lists
    119. 119. Extended ACL Syntax
    120. 120. Extended ACL LAB <ul><li>Account should be denied Sales Web site </li></ul>Config# Access-list 100 deny tcp eq www Config# access-list 100 permit IP any any Config#int Fastethernet 0/0 Config-if# ip access-group 100 IN Account Sales R1 Fa0/0 A B Fa0/1 Internet
    121. 121. Extended ACL LAB -2 <ul><li> should be denied FTP of </li></ul><ul><li>On Router R1 </li></ul><ul><li>Config# Access-list 100 deny tcp eq 21 </li></ul><ul><li>Config# access-list 100 permit IP any any </li></ul><ul><li>Config#int s0 </li></ul><ul><li>Config-if# ip access-group 100 IN </li></ul>S0 S0 R1 E0 E0 R2 FTP Server WEB Server should be denied website of On Router R3 Config# Access-list 100 deny tcp 192.168. 0.18 eq 80 Config# access-list 100 permit IP any any Config#int s0 Config-if# ip access-group 100 IN S1 S0 R3 A B
    122. 122. Deny FTP access-list 101 deny tcp any any eq 21 access-list 101 permit ip any any or access-list 101 deny tcp any any eq ftp access-list 101 permit ip any any
    123. 123. Rules <ul><li>For extended access list apply near to the source </li></ul><ul><li>For standard access list apply near to the destination </li></ul>
    124. 124. Named ACLs <ul><li>IP named ACLs were introduced in Cisco IOS Software Release 11.2, allowing standard and extended ACLs to be given names instead of numbers. </li></ul><ul><li>The characteristics of named accesslist: </li></ul><ul><ul><li>Identify an ACL using an alphanumeric name. </li></ul></ul><ul><ul><li>You can delete individual statements in a named access list </li></ul></ul><ul><ul><li>Named access lists must be specified as standard or extended </li></ul></ul><ul><ul><li>You can use the ip access-list command to create named access lists. </li></ul></ul><ul><li>Named ACLs are not compatible with Cisco IOS releases prior to Release 11.2. </li></ul><ul><li>The same name may not be used for multiple ACLs. </li></ul>
    125. 125. Named ACL’s <ul><li>Numbered Access list did not give you any hint, What is filtered </li></ul><ul><li>Named ACL’s are both basic and advanced filtering tool </li></ul><ul><li>Name cannot start with a number or ! </li></ul><ul><li>Cannot have space in the name </li></ul><ul><li>Should not have ? Character anywhere in the name </li></ul><ul><li>Name is case sensitive </li></ul>
    126. 126. Named ACL Example <ul><li>R1(config) # ip access-list standard blocksales </li></ul><ul><li>R1(config-std-nacl)#deny </li></ul><ul><li>R1(config-std-nacl)#permit any </li></ul><ul><li>R1(config-std-nacl)#exit </li></ul><ul><li>R1(config)#^Z </li></ul><ul><li>R1# </li></ul><ul><li>#Int e 0 </li></ul><ul><li>#Ip access-group blocksales out </li></ul>
    127. 127. Verify Access List
    128. 128. Basic Rules for ACLs <ul><li>Standard IP access lists should be applied closest to the destination. </li></ul><ul><li>Extended IP access lists should be applied closest to the source. </li></ul><ul><li>Use the inbound or outbound interface reference as if looking at the port from inside the router. </li></ul><ul><li>Statements are processed sequentially from the top of list to the bottom until a match is found, if no match is found then the packet is denied. </li></ul><ul><li>There is an implicit deny at the end of all access lists. This will not appear in the configuration listing. </li></ul><ul><li>Access list entries should filter in the order from specific to general. Specific hosts should be denied first, and groups or general filters should come last. </li></ul><ul><li>Never work with an access list that is actively applied. </li></ul><ul><li>New lines are always added to the end of the access list. </li></ul><ul><li>A no access-list x command will remove the whole list. It is not possible to selectively add and remove lines with numbered ACLs. </li></ul><ul><li>Outbound filters do not affect traffic originating from the local router. </li></ul>