ip routing -1 static routing default routing

44
IP ROUTING -1 STATIC ROUTING DEFAULT ROUTING

Upload: tamar

Post on 11-Jan-2016

83 views

Category:

Documents


6 download

DESCRIPTION

IP Routing -1 Static Routing Default routing. Routing protocol and Routed protocol. A routing protocol is used by routers to dynamically find all the networks in the internetwork and to ensure that all routers have the same routing table. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: IP Routing -1 Static Routing Default routing

IP ROUTING -1STATIC ROUTING

DEFAULT ROUTING

Page 2: IP Routing -1 Static Routing Default routing

A routing protocol is used by routers to dynamically find all the networks in the internetwork and to ensure that all routers have the same routing table.

Basically, a routing protocol determines the path of a packet through an internetwork.

Examples of routing protocols are: RIP, RIPv2, EIGRP, and OSPF.

2

Routing protocol and Routed protocol

Page 3: IP Routing -1 Static Routing Default routing

Routing protocol and Routed protocol Once all routers know about all networks a routed protocol can be used to

send user data (packets) through the established enterprise.

Routed protocols are assigned to an interface and determine the method of packet delivery.

Examples of routed protocols are: IP and IPv6.

Page 4: IP Routing -1 Static Routing Default routing

Routing basis

The term routing is used for taking a packet from one device and sending it through the network to another device on a different network. Routers don’t really care about hosts, they only care about networks and the best path to each network.

The router learns about remote networks from neighbor routers or from an administrator.

Page 5: IP Routing -1 Static Routing Default routing

Routing basis

The router then builds a routing table that describes how to find the remote networks.

If a network is directly connected, then the router already knows how to get to it. 

If a network isn’t directly connected to the router, the router must use one of two ways to learn how to get to the remote network: static routing, meaning that someone must hand-type all network locations into the routing table, or something called dynamic routing.

Page 6: IP Routing -1 Static Routing Default routing

Dynamic routing

a protocol on one router communicates with the same protocol running on neighbor routers. The routers then update each other about all the networks they know about and place this information into the routing table. If a change occurs in the network, the dynamic routing protocols automatically inform all routers about the event.

Page 7: IP Routing -1 Static Routing Default routing

Static routing

The administrator is responsible for updating all changes by hand into all routers.

Typically, in a large network, a combination of both dynamic and static routing is used.

Page 8: IP Routing -1 Static Routing Default routing

Static routing benefits:

There is no overhead on the router CPU, which means you could possibly buy a cheaper router than you would use if you were using dynamic routing.

There is no bandwidth usage between routers, which means you could possibly save money on WAN links.

It adds security because the administrator can choose to allow routing access to certain networks only.

Page 9: IP Routing -1 Static Routing Default routing

Static routing disadvantages:

The administrator must really understand the internetwork and how each router is connected in order to configure routes correctly.

If a network is added to the internetwork, the administrator has to add a route to it on all routers by hand.

It’s not feasible in large networks because maintaining it would be a full-time job in itself.

Page 10: IP Routing -1 Static Routing Default routing

Instructions

Page 11: IP Routing -1 Static Routing Default routing

Instructions

Router(config)# ip route [destination_network] [mask] [next-hop_address or exitinterface] [administrative_distance] [permanent]

used to add static route records to the routing table for example:

Router(config) #ip route 172.16.3.0 255.255.255.0 192.168.2.4

The ip route command tells us simply that it is a static route. 172.16.3.0 is the remote network we want to send packets to. 255.255.255.0 is the mask of the remote network. 192.168.2.4 is the next hop, or router, we will send packets to

Page 12: IP Routing -1 Static Routing Default routing

Default route

We use default routing to send packets with a remote destination network not in the routing table to the next-hop router.

You should only use default routing on stub networks, those with only one exit path out of the network.

router(config)#ip route 0.0.0.0 0.0.0.0 10.1.11.1

Page 13: IP Routing -1 Static Routing Default routing

Using packet tracer in router addressing1- We connet the figure . The cables used are :

· Straight : between switch, pc and router, switch.

· Cross : between switch, switch .

· Serial : betweeen the two routers .

Page 14: IP Routing -1 Static Routing Default routing

Using packet tracer in addressing2- We put the IP address for each device as the following : We have in the figure 3 networks :

Page 15: IP Routing -1 Static Routing Default routing

Using packet tracer in addressing To distribute the Ip's on the router interfaces we do the following : Router 0:

Page 16: IP Routing -1 Static Routing Default routing

Using packet tracer in addressing For the second router (Router1 ) :

Page 17: IP Routing -1 Static Routing Default routing

Using packet tracer in addressing Give each PC it’s IP address , Subnet Mask and Default Gateway: For PC0 : From IP configuration :

Page 18: IP Routing -1 Static Routing Default routing

Using packet tracer in addressing How to ping from PC0 to the default gateway : For PC0 :

Page 19: IP Routing -1 Static Routing Default routing

Using packet tracer in addressingWe chose command promot and ping on the default gateway :

Page 20: IP Routing -1 Static Routing Default routing

Routing using packet tracer

To let serial work we must give clock to DCE terminals :

We use (show controllers serial Name ) in privilage mode to examine the serial terminal then we put the clock using the command ( clock rate rate ) in global configuration mode .

We begin with router0 :

It’s DTE So we don’t make any

thing

Page 21: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For router 1 :

It’s DCE

So we write:

Page 22: IP Routing -1 Static Routing Default routing

Static Route

For Router 0: The routing table :

Page 23: IP Routing -1 Static Routing Default routing

Static Route

We give static route for Router 0 :

Page 24: IP Routing -1 Static Routing Default routing

Static Route

For Router 1:The routing table :

Page 25: IP Routing -1 Static Routing Default routing

Static Route

We give static route for Router 1 :

Page 26: IP Routing -1 Static Routing Default routing

Static Route

Now we ping from PC to any other PCs to make sure they see each other :

From PC0 to PC3 & PC6

Page 27: IP Routing -1 Static Routing Default routing

Practical part 2

We connect the following network :

Page 28: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For each PC we put the Ip address, gate way and subnet mask.

For PC0 :

Page 29: IP Routing -1 Static Routing Default routing

Routing using packet tracer Now we distribute the IP's on routers' interfaces : For router0 :

Page 30: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For router1 :

Page 31: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For router2 :

Page 32: IP Routing -1 Static Routing Default routing

Routing using packet tracer

To let serial work we must give clock to DCE terminals :

We use (show controllers serial Name ) in privilage mode to examine the serial terminal then we put the clock using the command ( clock rate rate ) in global configuration mode .

We begin with router0 :

Page 33: IP Routing -1 Static Routing Default routing

Routing using packet tracer

We notice that the two terminals are DCE .

Page 34: IP Routing -1 Static Routing Default routing

Routing using packet tracer

We give it clock since it's DCE :

Page 35: IP Routing -1 Static Routing Default routing

Routing using packet tracer for router1 :

Page 36: IP Routing -1 Static Routing Default routing

Routing using packet tracer for router2 :

Page 37: IP Routing -1 Static Routing Default routing

Routing using packet tracer

Now we must do static routing to let the PC's of each network see the PCs in the remote network :

We begin with router0 : There are two remote networks which have the Ips : 192.168.3.0,

192.168.2.0 and three neighbors networks we know them by ( show ip route ):

Page 38: IP Routing -1 Static Routing Default routing

Routing using packet tracer

Page 39: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For router 1 :

Page 40: IP Routing -1 Static Routing Default routing

Routing using packet tracer

Page 41: IP Routing -1 Static Routing Default routing

Routing using packet tracer

For router 2 :

Page 42: IP Routing -1 Static Routing Default routing

Routing using packet tracer Now we ping from PC to any other PCs to make sure they see

each other : Ping from PC 1 to PC0 & PC2:

Page 43: IP Routing -1 Static Routing Default routing

DHCP router

To let the router distribute the IPs on the network we do the following :

Router 0 :

Page 44: IP Routing -1 Static Routing Default routing

DHCP We notice that the PC1 took a dynamic IP :