© 2012 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services Chapter 2: Routing Fundamentals Junos Routing Essentials.

Slides:



Advertisements
Similar presentations
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 9: Static Routes & Routing Table Groups.
Advertisements

IPv6 Routing.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing Protocols.
IPv6 Static Routes Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
思科网络技术学院理事会. 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
BGP. 2 Copyright © 2009 Juniper Networks, Inc. BGP Overview Is an inter-domain routing protocol that communicates prefix reachablility.
Routing Protocol.
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols Introduction to Static Routing.
Routing and Routing Protocols
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing Protocols.
Ge-0/1/1 GE-0/0/23 GE-0/0/ / /29 lo0: /32lo0: / /29 GE-0/0/7 lo0: /32 lo0: /32 GE-0/0/
Juniper ESCR Tesco Day 2. Overview Day #1 Maintenance and monitoring Routing protocols Lab Day #2 Introduction to Juniper devices Junos CLI System and.
Chapter 8 Routing. Introduction Look at: –Routing Basics (8.1) –Address Resolution (8.2) –Routing Protocols (8.3) –Administrative Classification (8.4)
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Routing and Routing Protocols Routing Protocols Overview.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Introduction to Dynamic Routing Protocol
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Router and Routing Basics
1 Chapter Overview Routing Principles. Understanding Routing--important Routing refers to the process of taking a packet from one device and sending it.
1 Chapter Overview Routing Principles Building Routing Tables.
CCNA 1 Module 10 Routing Fundamentals and Subnets.
© 2002, Cisco Systems, Inc. All rights reserved..
Chapter 9. Implementing Scalability Features in Your Internetwork.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.
Junos Intermediate Routing
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
IPv6 Routing Milo Liu SW2 R&D ZyXEL Communications, Inc.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Routing and Routing Protocols
Routing Basics Chapter 8. powered by DJ 1. C HAPTER O BJECTIVES At the end of this Chapter you will be able to:  Understand routing basics. powered by.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Cisco Systems Networking Academy S2 C 12 Routing Protocols.
© 2002, Cisco Systems, Inc. All rights reserved..
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
+ Routing Concepts 1 st semester Objectives  Describe the primary functions and features of a router.  Explain how routers use information.
1 © 2004, Cisco Systems, Inc. All rights reserved. Routing and Routing Protocols: Routing Static.
CHAPTER 6: STATIC ROUTING Static Routing 2 nd semester
Click to edit Master subtitle style Chapter 10: Routing Protocols.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Sem 2 v2 Chapter 12: Routing. Routers can be configured to use one or more IP routing protocols. Two of these IP routing protocols are RIP and IGRP. After.
Lec4: Introduction to Dynamic Routing Protocol
Introduction to Dynamic Routing Protocol
Working at a Small-to-Medium Business or ISP – Chapter 6
Link State Routing protocol
Routing and Routing Protocols: Routing Static
Chapter 4: Routing Concepts
Chapter 2: Static Routing
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Introduction to Dynamic Routing Protocol
Chapter 2: Static Routing
Chapter 3: Dynamic Routing
Routing and Routing Protocols: Routing Static
Introduction to Dynamic Routing Protocol
Chapter 2: Static Routing
Working at a Small-to-Medium Business or ISP – Chapter 6
Presentation transcript:

© 2012 Juniper Networks, Inc. All rights reserved. | | Worldwide Education Services Chapter 2: Routing Fundamentals Junos Routing Essentials

© 2012 Juniper Networks, Inc. All rights reserved. | 2-2 Worldwide Education Services Chapter Objectives  After successfully completing this chapter, you will be able to: Explain basic routing operations and concepts View and describe routing and forwarding tables Configure and monitor static routing Configure and monitor OSPF

© 2012 Juniper Networks, Inc. All rights reserved. | 2-3 Worldwide Education Services Agenda: Routing Fundamentals  Routing Concepts  Overview of Routing The Routing Table Routing Instances  Static Routing  Dynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-4 Worldwide Education Services  The process of moving data between Layer 3 networks What Is Routing? Server B User B User A Data Center Server A = Router = Switch Internet

© 2012 Juniper Networks, Inc. All rights reserved. | 2-5 Worldwide Education Services Components of Routing  For a device to communicate with another device in a remote network, the following requirements exist: End-to-end communications path Routing information on participating Layer 3 devices User B User A Data Center = Router = Switch Internet

© 2012 Juniper Networks, Inc. All rights reserved. | 2-6 Worldwide Education Services  If User A needs to communicate with a device within the data center, what routing information do the Layer 3 devices within the communications path require? User B User A Data Center Internet Test Your Knowledge / /24.1 = Router = Switch

© 2012 Juniper Networks, Inc. All rights reserved. | 2-7 Worldwide Education Services Agenda: Routing Fundamentals  Routing Concepts Overview of Routing  The Routing Table Routing Instances  Static Routing  Dynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-8 Worldwide Education Services  Compiles information learned from routing protocols and other routing information sources  Selects an active route to each destination  Populates the forwarding table  Main unicast routing tables are inet.0, for IPv4 routing, and inet6.0, for IPv6 routing The Routing Table Direct Routing Table Forwarding Table Routing protocol databases Other routing information sources Static OSPF

© 2012 Juniper Networks, Inc. All rights reserved. | 2-9 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-10 Worldwide Education Services Route Preference  Ranks routes received from different sources  Primary criterion for selecting the active route Used as a tiebreaker when the same destination prefix is available through multiple sources Route Preference Values Routing Information SourceDefault Preference Direct0 Local0 Static5 OSPF internal10 RIP100 OSPF AS external150 BGP (both EBGP and IBGP)170 More Preferred Less Preferred

© 2012 Juniper Networks, Inc. All rights reserved. | 2-11 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-12 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-13 Worldwide Education Services show route inet.0: 6 destinations, 7 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /24 *[Static/5] 00:10:24 > to via ge-0/0/10.0 [OSPF/10] 00:03:38, metric 2 > to via ge-0/0/ /30 *[Direct/0] 00:11:05 > via ge-0/0/ /32 *[Local/0] 00:11:05 Local via ge-0/0/ /24 *[Direct/0] 00:11:05 > via ge-0/0/ /32 *[Local/0] 00:11:05 Local via ge-0/0/10.0 … Viewing the Routing Table  Use show route to display route table contents: Route source and preference Asterisk (*) indicates that the route is selected as active Route table name

© 2012 Juniper Networks, Inc. All rights reserved. | 2-14 Worldwide Education Services The Forwarding Table  Stores required information for packet forwarding operation; contents include the destination prefixes and the associated outgoing interfaces Use show route forwarding-table to view contents Direct Routing Table Forwarding Table Routing protocol databases Other routing information sources Static OSPF

© 2012 Juniper Networks, Inc. All rights reserved. | 2-15 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-16 Worldwide Education Services Determining the Next Hop  Device compares incoming packets against forwarding table entries to determine the appropriate next hop If multiple matches exist, it uses the most specific entry (longest match) to forward packet toward the destination If no matching entry exists, it sends a destination unreachable notification back to the source device Frames/Packets In Frames/Packets Out FT Forwarding Plane

© 2012 Juniper Networks, Inc. All rights reserved. | 2-17 Worldwide Education Services Test Your Knowledge  Use the following forwarding table to determine the next-hop interface for packets destined to , , and : show route forwarding-table Routing table: inet Internet: Destination Type RtRef Next hop Type Index NhRef Netif default user 0 0:17:cb:4e:ae:81 ucst ge-0/0/0.0 default perm 0 rjct /32 perm 0 dscd /16 user ucst ge-0/0/ /24 user ucst ge-0/0/ /28 user ucst ge-0/0/2.0 …

© 2012 Juniper Networks, Inc. All rights reserved. | 2-18 Worldwide Education Services Agenda: Routing Fundamentals  Routing Concepts Overview of Routing The Routing Table  Routing Instances  Static Routing  Dynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-19 Worldwide Education Services Overview of Routing Instances  A routing instance is a unique collection of routing tables, interfaces, and routing protocol parameters Device Running the Junos OS inet.0 inet6.0 ge-0/0/0.0 ge-0/0/1.0 lo0.0 Default Route OSPF Routing instance (master) cust-A.inet.0 cust-A.inet6.0 ge-0/0/3.0 ge-0/0/4.0 lo0.1 Default Route OSPF Routing instance (cust-A) cust-B.inet.0 cust-B.inet6.0 ge-1/0/0.0 ge-1/0/1.0 lo0.2 Default Route OSPF Routing instance (cust-B)

© 2012 Juniper Networks, Inc. All rights reserved. | 2-20 Worldwide Education Services Default Routing Instance  The master routing instance is the primary instance for all devices running the Junos OS and includes the inet.0 routing table Might include other routing tables, such as inet6.0 show route instance Instance Type Primary RIB Active/holddown/hidden master forwarding inet.0 3/0/1 inet6.0 4/0/0 … Participating route tables; the presence of inet6.0 table indicates IPv6 is in use Routing instance name

© 2012 Juniper Networks, Inc. All rights reserved. | 2-21 Worldwide Education Services User-Defined Routing Instances  You configure user-defined routing instances at the [edit routing-instances] hierarchy level Typically used for filter-based forwarding, VPN services, and system virtualization; routing instance types include: Note: Actual routing instance types vary between devices running Junos OS; Check product documentation for actual support [edit routing-instances ] set instance-type ? Possible completions: forwarding Forwarding instance l2vpn Layer 2 VPN routing instance no-forwarding Nonforwarding instance virtual-router Virtual routing instance vpls VPLS routing instance vrf Virtual routing forwarding instance

© 2012 Juniper Networks, Inc. All rights reserved. | 2-22 Worldwide Education Services  Routing instance configuration example: [edit routing-instances new-instance] show instance-type virtual-router; interface ge-0/0/0.0; interface ge-0/0/1.0; interface lo0.1; routing-options { static { route /0 next-hop ; } protocols { ospf { area { interface ge-0/0/0.0; interface ge-0/0/1.0; interface lo0.1; } Configuration Example Routing instance type Define interfaces under the [edit interfaces] hierarchy and reference them under the routing instance Routing instance name is user- defined

© 2012 Juniper Networks, Inc. All rights reserved. | 2-23 Worldwide Education Services  Reference the corresponding IP unicast table for a given instance to view the route table contents: Working with Routing Instances (1 of 2) show route table new-instance.inet.0 new-instance.inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /0 *[Static/5] 02:06:18 > to via ge-0/0/ /24 *[Direct/0] 02:06:18 > via ge-0/0/ /32 *[Local/0] 02:06:18 Local via ge-0/0/ /24 *[Direct/0] 02:06:18 > via ge-0/0/ /32 *[Local/0] 02:06:18 Local via ge-0/0/ /32 *[Direct/0] 02:06:18 > via lo0.1 … Software automatically creates IP unicast table when you configure the corresponding routing instance

© 2012 Juniper Networks, Inc. All rights reserved. | 2-24 Worldwide Education Services Working with Routing Instances (2 of 2)  Reference the routing instance name when viewing information for a given instance or sourcing traffic from a given instance: show interfaces terse routing-instance new-instance Interface Admin Link Proto Local Remote ge-0/0/0.0 up up inet /24 ge-0/0/1.0 up up inet /24 lo0.1 up up inet > 0/0 ping rapid count 25 routing-instance new-instance PING ( ): 56 data bytes !!!!!!!!!!!!!!!!!!!!!!!!! ping statistics packets transmitted, 25 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.014/1.875/2.073/0.285 ms traceroute routing-instance new-instance traceroute to ( ), 30 hops max, 40 byte packets ( ) ms ms ms

© 2012 Juniper Networks, Inc. All rights reserved. | 2-25 Worldwide Education Services Agenda: Routing Fundamentals  Routing Concepts Overview of Routing The Routing Table Routing Instances  Static Routing  Dynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-26 Worldwide Education Services  Manually configured routes added to the route table Defined under [edit routing-options] hierarchy  Require a valid next hop Typically the IP address of a directly connected device; other options exist such as the bit bucket ( discard or reject ).1 show route inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /0 *[Static/5] 01:09:34 > to via ge-0/0/1.0 Static Routes Network A / / ge-0/0/1 Internet Default static route

© 2012 Juniper Networks, Inc. All rights reserved. | 2-27 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-28 Worldwide Education Services Configuring Static Routing  Static route configuration example: [edit routing-options] show rib inet6.0 { static { route 0::/0 next-hop 3001::1; } static { route /0 next-hop ; route /24 { next-hop ; no-readvertise; } IPv6 default static route IPv4 default static route Restricts route from being advertised into a routing protocol through routing policy; Highly suggested for static routes used for management traffic

© 2012 Juniper Networks, Inc. All rights reserved. | 2-29 Worldwide Education Services  Monitoring: Use show route protocol static to display static routes: Use the ping utility to verify end-to-end reachability: show route protocol static inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /0 *[Static/5] 00:41:59 > to via ge-0/0/1.0 … Monitoring Static Routing ping rapid count 25 PING ( ): 56 data bytes !!!!!!!!!!!!!!!!!!!!!!!!! ping statistics packets transmitted, 25 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.027/0.057/0.145/0.032 ms Default static route Route source and preference Next-hop interface and IP address Test confirms reachability

© 2012 Juniper Networks, Inc. All rights reserved. | 2-30 Worldwide Education Services  Resolving indirect next hops: By default, the software can resolve only directly connected next hops Use the resolve option to allow resolution of indirectly connected next hops: [edit routing-options] show static { route /24 { next-hop ; resolve; } Next-Hop Resolution / / /24.1 router-A router-Brouter-C Indirect next hop resolve option required

© 2012 Juniper Networks, Inc. All rights reserved. | 2-31 Worldwide Education Services  Use qualified-next-hop to allow independent preference for static routes to the same destination: [edit routing-options] show static { route /0 { next-hop ; qualified-next-hop { preference 7; } Qualified Next Hops Network A / /30 ge-0/0/ / se-1/0/0 primary secondary Internet Primary next hop due to default route preference (5) Secondary next hop due to configured route preference (7)

© 2012 Juniper Networks, Inc. All rights reserved. | 2-32 Worldwide Education Services Agenda: Routing Fundamentals  Routing Concepts Overview of Routing The Routing Table Routing Instances  Static Routing  Dynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-33 Worldwide Education Services Dynamic Routing  Method of dynamically learning routing information  Dynamic routing has the following benefits: Lower administrative overhead Increased network availability Greater network scalability Static RoutingDynamic Routing

© 2012 Juniper Networks, Inc. All rights reserved. | 2-34 Worldwide Education Services  A summary of dynamic routing protocols: IGPs operate within a single autonomous system Single network administration that provides for unique routing policy and flexible use of network resources Examples include RIP, IS-IS, and OSPF EGPs operate among different autonomous systems Independent administrative entities that communicate between independent network infrastructures Current EGP in use today is BGP Dynamic Routing Protocols IGP IBGP EBGP AS AS 65535AS 64512

© 2012 Juniper Networks, Inc. All rights reserved. | 2-35 Worldwide Education Services  A link-state IGP: Reliably floods link-state information to neighbors Creates a complete database of network Calculates best path to each destination Uses areas to incorporate hierarchy and allow for scalability OSPF Protocol Overview AS Area Area Area

© 2012 Juniper Networks, Inc. All rights reserved. | 2-36 Worldwide Education Services Intentionally Left Blank

© 2012 Juniper Networks, Inc. All rights reserved. | 2-37 Worldwide Education Services / /30 Case Study: Objective and Topology  Use a single OSPF area to provide connectivity among all connected subnets and loopback addresses; ensure that no adjacencies are formed on interfaces connecting to the x.0/24 subnets / / / / ge-0/0/2 router-A lo0: /32 router-B lo0: /32 router-C lo0: /32 ge-0/0/1 ge-0/0/3 OSPF Area 0

© 2012 Juniper Networks, Inc. All rights reserved. | 2-38 Worldwide Education Services [edit protocols ospf] set area 0 interface ge-0/0/1.0 [edit protocols ospf] set area 0 interface ge-0/0/2.0 [edit protocols ospf] set area 0 interface ge-0/0/3.0 passive [edit protocols ospf] set area 0 interface lo0.0 [edit protocols ospf] show area { interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0 { passive; } interface lo0.0; }  Sample OSPF configuration taken from Host-A: Case Study: Configuring OSPF The Junos OS converts area 0 to its proper dotted decimal notation ( ). Specify the logical interface. If a unit is not referenced, the Junos OS assumes unit 0. Use the passive option to prohibit adjacency formation.

© 2012 Juniper Networks, Inc. All rights reserved. | 2-39 Worldwide Education Services  Use show ospf neighbor to display adjacencies Use detail or extensive options for added information show ospf neighbor Address Interface State ID Pri Dead ge-0/0/1.0 Full ge-0/0/2.0 Full Case Study: Verifying OSPF Neighbor State The state of the adjacencies shows Full, which means neighbors can exchange routing information

© 2012 Juniper Networks, Inc. All rights reserved. | 2-40 Worldwide Education Services Case Study: Viewing OSPF Routes  Use show route protocol ospf to display OSPF routes show route protocol ospf inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /24 *[OSPF/10] 00:03:55, metric 2 > to via ge-0/0/ /24 *[OSPF/10] 00:00:04, metric 2 > to via ge-0/0/ /30 *[OSPF/10] 00:03:46, metric 2 > to via ge-0/0/1.0 to via ge-0/0/ /32 *[OSPF/10] 00:03:55, metric 1 > to via ge-0/0/ /32 *[OSPF/10] 00:03:46, metric 1 > to via ge-0/0/ /32 *[OSPF/10] 00:16:13, metric 1 MultiRecv…

© 2012 Juniper Networks, Inc. All rights reserved. | 2-41 Worldwide Education Services Summary  In this chapter, we: Explained basic routing operations and concepts Viewed and described routing and forwarding tables Configured and monitored static routing Configured and monitored OSPF

© 2012 Juniper Networks, Inc. All rights reserved. | 2-42 Worldwide Education Services Review Questions 1.What are two key requirements for routing traffic between two remote devices? 2.List the default IPv4 and IPv6 unicast routing tables. 3.Which primary criterion determines the active routes within the routing table? 4.Which configuration option allows unique preference values for static routes to the same destination? 5.List some advantages in using a dynamic routing protocol instead of static routing.

© 2012 Juniper Networks, Inc. All rights reserved. | 2-43 Worldwide Education Services Lab 1: Routing Fundamentals  Familiarize yourself with the routing table.  Configure and monitor static routing.  Configure and monitor OSPF.

Worldwide Education Services