lesson 7: configuring ip routing (part 1)

Upload: mahmmoud-mahdi

Post on 04-Apr-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    1/64

    Mahmmoud A. Mahdi

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    2/64

    Routers forward traffic to computers, toother router, finally to a destination

    computer. Computers running Windows Server 2008

    can act as routers.

    Exam objective in this chapter:

    Configure routing.

    Lessons in this chapter:

    Lesson 1: Routing.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    3/64

    How to troubleshoot routing problemsusing PathPing and TraceRt.

    After this lesson you will be able to: Describe routing concepts.

    Use PathPing and TraceRt to examine networkroutes.

    Describe and configure routing protocols. Use static routing to configure access to

    networks that cannot be reached through adefault gateway.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    4/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    5/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    6/64

    The process would be:1. The mobile computer sends a packet with a

    source IP address of 192.168.1.10 anddestination IP address of 192.168.2.10.

    2. When the default gateway receives the packet,it checks the destination address,192.168.2.10. It examines its routing table anddetermines that the nexthop the router withthe IP address 10.1.1.2. So it forward thepacket to 10.1.1.2.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    7/64

    3. When the router with IP address 10.1.1.2 receivesthe packet, it also checks the destination IPaddress, 192.168.2.10, and determines that the

    next hop toward the destination is the router withthe IP address 10.1.3.1.

    4. When the router with IP address 10.1.3.1 receivesthe packet, it checks the destination IP address,192.168.2.10, and determines that it has anetwork interface that is directly connected to thedestination network. So it forwards the packetdirectly to the server by sending it on the serverslocal area network.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    8/64

    PathPing and TraceRt:

    Determine how packets travel between your

    computer and a destination. TraceRt:

    provides a quicker response.

    PathPing:

    Provides a more detailed and reliable analysis ofnetwork performance.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    9/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    10/64

    PathPing: Shows the data in two sections: The first section shows the route from the source to

    the destination.

    The second section takes longer to generate andshows the latency in millisecond(ms) to each router.

    The last line of the first section shows three asterisk(*) symbols. This occurs when a node does notrespond to the Internet Control Message Protocol(ICMP) requests.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    11/64

    Routing protocols simplify configurationand allow routers to automatically adjust

    when network conditions change. The routing protocol announces a list of

    networks to which it is directly connected. Windows Server 2008 support Routing

    Internet Protocol (RIP) version 2, a popularrouting protocol.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    12/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    13/64

    For the exam, know what routing protocolsdo and when they should be used. You dont

    need to understand the details of how theyfunction, however.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    14/64

    A hub: Operates at Open Systems Interconnection (OSI) reference model layer 1,

    which organizes data into bits

    It does not perform any sort of processing against the data it receives It simply receives the incoming signal and recreates it for transmission on

    all of its ports. A switch:

    Examines the destination and source address of an incoming data frameAnd forwards die frame to the appropriate destination port according tothe destination address.

    Most switches operate at OSI layer 2, which organizes data into frames.

    A router: Determines routes from a source network to a destination net-work: whereto send network packets based on the addressing in the packet.

    Operate at OSI layer 3, which groups data into packets.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    15/64

    Routers can be used as follows: To join networks together over extended distances or

    WANs. To connect dissimilar LANs, such as an Ethernet LAN.

    Routing protocols: Can be used to automatically transmit information about

    the routing topology. The more common routing protocols:

    Routing Information Protocol (RIP) the most long-standing routing protocols Broadcast information about available networks on a regular

    basis. It is designed for use only on smaller networks.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    16/64

    RIP v2: Designed to:

    Improve the amount of routing information that was provided by RIP.

    Increase the security of the routing protocol. Open Shortest Path First (OSPF):

    Designed to: Address the scalability limitations of RIP.

    Create a routing protocol that could be used on significantly larger networks.

    OSPF router maintains a database of routes to all destinationnetworks that it knows of; When it receives network traffic destinedfor one of these destination networks, it routes the traffic using thebest (shortest) route that it has information about in its database.

    OSPF routers share this database information only with those OSPFrouters that it has been configured to share information with.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    17/64

    To install Routing and Remote Access Services,which includes tools for configuring WindowsServer 2008 as a router.

    1. Click Start, and then choose Server Manager.

    2. In the left pane, select Roles, and then, in the rightpane, click Add Roles.

    3. If the Before You Begin page appears, click Next.4. On the Select Server Role page, select the Network

    Policy And Access Services check box, and thenclick Next.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    18/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    19/64

    5. On the Network Policy And Access Servicespage, click Next.

    6. On the Select Role Services page, select the

    Routing And Remote Access Services checkbox. The wizard automatically selects theRemote Access Services and Routing checkboxes. Click Next.

    7. On the Confirmation page, click install.8. After the Add Roles Wizard completes the

    installation, click Close.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    20/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    21/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    22/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    23/64

    9. In the console tree of Server Manager, expandRoles, expand Network Policy And AccessServices, and then select Routing And Remote

    Access. Right-click Routing And RemoteAccess, and then choose Configure And EnableRouting And Remote Access.

    The Routing And Remote Access Server appears.

    10. On the Welcome To The Routing And RemoteAccess Server Setup Wizard page, click Next.

    11. On the Configuration page, select CustomConfiguration, and then click Next.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    24/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    25/64

    12. On the Custom Configuration page, select theLAN Routing check box, and then click Next.

    13. If the Routing And Remote Access dialog boxappears, click Start Service.

    14. On the Completing The Routing And RemoteAccess Server Wizard page, click Finish.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    26/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    27/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    28/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    29/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    30/64

    Enable RIP, allow Windows Server 2008 to advertiserouters to neighboring routers and to automaticallydetect neighboring routers and remote networks.

    To enable RIP:1. In Server Manager, right-click Roles\Network Policy

    And Access\Routing And Remote Access \IPv4 \General, and then choose New Routing Protocol.

    2. In the New Routing Protocol dialog box, select RIPVersion2 For Internet Protocol, and then click OK.

    3. Right-click Roles\Network Policy And Access\RoutingAnd Remote Access\IPv4\RIP, and then choose NewInterface.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    31/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    32/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    33/64

    4. In the New Interface For RIP Version 2 For InternetProtocol dialog box, select the interface you want toadvertise with RIP. Then click OK.

    5. Configuring RIP setting to match those of neighboring

    routers. The default setting will work in mostenvironments. General: Select whether RIP v1 or RIP v2is used and whether

    authentication is required. Security: Choose whether to filter router advertisements. Neighbors: Allows you to manually list the neighbors that the

    computer will communicate with. Advanced: Configure announcement intervals and time-outs,

    as well as other infrequently used settings.

    6. Click OK.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    34/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    35/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    36/64

    Client computers need to be configured with a single defaultgateway that handles all communications to and from thesubnet.

    If a computer needs to use different routers to communicate with different

    remote networks, you need to configure static routing.

    An administrator would need to configure a static route for the192.168.2.0/24 subnet that uses the gateway at 192.168.1.2.

    You could allow it to access the 192.168.2.0/24 network by running thefollowing command:

    route

    p add 192.168.2.0 MASK 255.255.255.0 192.168.1.2 The computer would route traffic destined for the 192.168.2.0/24 subnet

    through the router at 192.168.1.2. All other communications would be sentthrough the default gateway.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    37/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    38/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    39/64

    For the exam, know that a routers IP

    address must always be on the same subnet

    as the computer.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    40/64

    You can use the route command to examineand configure static routing from a

    command prompt. To view the routingtable, run the RoutePrintcommand.Output resembles the following:

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    41/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    42/64

    The routing table lists destination networksand the interface or router used to access it.

    Windows maintains separate routing tablesfor IPv4 and IPv6. Means you should focus on the IPv4 Route

    Table section.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    43/64

    Within that section: Routes with a Netmask of0.0.0.0 show the default

    gateway.

    The Persistent Routes section displays any staticroutes to remote networks that have been added.

    Routes with a Netmask of255.255.255.255 identifyan interface and can be ignored.

    A network destination of127.0.0.0 or 127.0.0.1shows a loopback interface, which you can ignore.

    A network destination of224.0.0.0 is a multicastaddress. Multicasting is rarely used.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    44/64

    Managing Routing Tables: A routing table, contains entries called routes that

    provide directions toward destination networks orhosts.

    Reading the IP Routing Table: 0.0.0.0, represents the default route. 127.0.0.0, points to the loopback address of

    127.0.0.1. 224.0.0.0, entries refer to a separate multicast route. w.x.y.255, represents a broadcast address. 255.255.255.255, is the limited broadcast address.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    45/64

    For example, consider the following line from the Route Print

    output:10.0.0.0 255.0.0.0 on-link 192.168.2.102 21

    This indicates that the computer is configured tosend traffic destined for the 10.0.0.0/8 network (asubnet mask of 255.0.0.0) to the router at192.168.2.102, rather than to the default gateway.

    0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.198 25 The default gateway is configured to be 192.168.1.1

    (for the interface with the IP address192.168.1.198).

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    46/64

    To add static routes from the command line:

    Use the Route Add command.

    For example, if a neighboring router withthe IP address 192.168.1.2 provides accessto the network 10.2.2.0/24 (255.255.255.0)

    run the following command to add a static routeto the network:route p add 10.2.2.0 MASK 255.255.255.0 192. 168.1.2

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    47/64

    Managing Routing Tables: A routing table, contains entries called routes that

    provide directions toward destination networks orhosts.

    Reading the IP Routing Table: 0.0.0.0, represents the default route. 127.0.0.0, points to the loopback address of

    127.0.0.1. 224.0.0.0, entries refer to a separate multicast route. w.x.y.255, represents a broadcast address. 255.255.255.255, is the limited broadcast address.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    48/64

    Four types of routes can be found in a routing table: Directly attached network routes:

    Routes for subnets to which the node is directly attached.

    Remote network routes: Routes for subnets that are available across routers and that are not directly

    attached to the node. Host routes:

    A route to a specific IP address.

    Default route: The default route is used when a more specific network or host route is not

    found.

    To configure the routing table from the command line, use theroute command-line utility. The Route utility syntax is asfollows:route [-f] [-p] [Command [Destination] [mask Netmask][Gateway] [metric Metric] [if Interface]

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    49/64

    COMMAND FUNCTION EXAMPLE

    Print Displays the routing table. route print

    Add Adds a route to the routing table. By default,routes do not persist (they are discarded)

    when the system reboots. Use the -p switch tomake a route persist across system restarts.Persistent routes are stored in the registrylocation HKEY_LOCAL_MACHlNE\$Y TEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes.

    route add -p 10.0.0.1mask 255.0.0.0

    192.168.0.1

    Change Modifies an existing route. route change 10.0.0.1mask 255.255.0.010.27.0.25

    Delete Deletes an existing route. To delete a route,you need only provide the IP address of the

    route.

    route delete 10.0.0.1

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    50/64

    1. When are static routes required?2. What command would you use to

    configure a static route? Quick Check Answers:

    1. Static routes are required when multiplegateways are connected to the local network,

    and one or more of them does not act as adefault gateway.

    2. You would use the route add command.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    51/64

    You can view the IP routing table by right-clicking Roles\Network Policy And Access

    Services\Routing And Remote Access\IPv4\Static Routes and then choosingShow IP Routing Table.

    Routing And Remote Access displays the

    static routing table (which does not includeany dynamic routes added from RIP).

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    52/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    53/64

    To add static routes, follow these steps:1. In Server Manager:

    right-click Roles\Network Policy AndAccess\IPv4\Static Routes, and then chooseNew Static Route.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    54/64

    2. In the IPv4 Static Route dialog box, select the next network interface that will be used to forward

    traffic to the remote network.

    In the Destination box, type the network ID of the destination network.

    In the Network Mask box, type the subnet mask of the destination network.

    In the Gateway box, type the IP address of the router that packets for the destination

    network should be forwarded to.

    Adjust the Metric: only if you have multiple paths to the same destination network

    and want the computer to prefer one gateway over the others; inthis case, configure the preferred routes with lower metrics.

    Click OK.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    55/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    56/64

    Practice

    In this practice, you examine real-world network routes and thenuse the route command to configure static routes on a computer.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    57/64

    In this exercise, you will use PathPing andTraceRtto examine the list of routers used toconfigure your computer to the Web server at

    www.microsoft.com.1. Log on to Dcsrv1 or on to any computer with an

    Internet connection.

    2. At a command prompt, run the command

    pathping www.microsoft.com.

    3. While PathPingis computing statistics, open asecond command prompt and run the command

    tracert www.microsoft.co.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    58/64

    In the TraceRtwindow, examine the router names and IP addresses. The list shows every router used to carry

    communications from your computer to the Web server

    at www.microsoft.com. Notice the latency time for each hop-routers that are

    farther away probably have higher latency becausepackets must travel a farther distance, and throughmore routers, before reaching the router.

    Notice that the last several lines of the TraceRtoutputshow the message Request Timed Out. This message isgenerated because the Web server atwww.microsoft.com is configured to not reply to ICMPmessages.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    59/64

    5. When PathPing has completed computingstatistics, examine the output. The routernames and IP addresses should match those

    displayed by PathPing. The latencyinformation is more detailed and accurate thanTraceRt, however, because it was computedover a longer period of time.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    60/64

    In this exercise, you must configure yournetwork as shown. Then you will configureDcsrv1 with a static route to forward trafficto the 192.228.79.0/24 subnet instead ofthe default gateway.

    In this scenario the default gateway does not

    physically exist.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    61/64

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    62/64

    With the network and IP address settingconfigured, follow these steps to configureDcsrv1 with a static route:

    1. On Dcsrv1, run the following command.PathPing should return a Destination HostUnreachable message because the default

    gateway does not exist.PathPing 192.228.79.201

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    63/64

    2. configure a static route for a specific subnet thatsends traffic for the subnet to your router. Run thefollowing command to add a static route:

    route

    p add 192.288.79.0 MASK 255.255.255.0 192.168.111.13. Run route printat the command prompt and

    verify that the static route has been added.

    4. Repeat the PathPingcommand from step 1. Now

    you should be able to communicate with the IPaddress. Notice that the first router reported byPathPing is the gateway IP address you specifiedin step 2.

  • 7/29/2019 Lesson 7: Configuring IP Routing (Part 1)

    64/64

    Contact Me: [email protected]