0% found this document useful (0 votes)
51 views

LAB Static Route

Routing is the process of selecting paths in a network to send traffic along. There are two methods for routers to learn routes: static routing, where an administrator manually adds routes, and dynamic routing, where protocols automatically propagate routing information. The document goes on to describe configuring static routes between two routers to connect two company branches in Tripoli and Benghazi by adding the routes to each router's routing table and verifying connectivity using ping commands.

Uploaded by

ahmed- Oun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

LAB Static Route

Routing is the process of selecting paths in a network to send traffic along. There are two methods for routers to learn routes: static routing, where an administrator manually adds routes, and dynamic routing, where protocols automatically propagate routing information. The document goes on to describe configuring static routes between two routers to connect two company branches in Tripoli and Benghazi by adding the routes to each router's routing table and verifying connectivity using ping commands.

Uploaded by

ahmed- Oun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

LAB 1

Routing
❖ Routing is the process of selecting paths in a network along which to send network traffic

and route is the path to send the network traffic.

❖ There are two ways a router learn a route:

1. Static Routing – This is the method by which an administrator manually adds routes to the

routing table of a router. This is a method for small networks but it is not scalable for larger

networks.

2. Dynamic Routing – This is the method where protocols and algorithms are used to

automatically propagate routing information. This is the most common method and most

complex method of routing.

❖ The simple syntax of static route:

ip route destination-network-address subnet-mask {next-hop-IP-address | exit-interface}

+ destination-network-address: destination network address of the remote network.

+ Subnet mask: subnet mask of the destination network.

+ next-hop-IP-address: the IP address of the receiving interface on the next-hop router.

+ exit-interface: the local interface of this router where the packets will go out.
▪ Now we consider a real-world example of static routing. Suppose that your company has
2 branches located in Tripoli and Benghazi. As the administrator of the network, you are
tasked to connect them so that employees in the two LANs can communicate with each
other. After careful consideration you decided to connect them via static route.

Scenario:
Configure static route on both R2 and R1 and verify connectivity using ping command.

Setup:

• Configure the cabling as shown in the network diagram.


• Important! Configure the routers to include hostnames and the proper interface
commands including IP addresses, subnet masks, etc. Each router should be able to ping
the interface of the adjacent (neighboring) router and the host on its LAN (Ethernet)
interface. Test and troubleshoot as necessary.
Step 1 – Configuring Router Hostname

▪ On Router 1:

Router 1>enable

Router 1#config T

Router 1(config)#Hostname R1

R1(config)#exit

▪ On Router 2:

Router 2>enable

Router 2#config T

Router 2(config)#Hostname R2

R2(config)#exit

Step 2 – Configuring IP Addresses

▪ R1:
R1#config t
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/1
R1(config-if)#ip address 10.10.10.2 255.255.255.252
R1(config-if)#no shutdown
▪ R2:
R2#config t
R2(config)#interface fa0/0
R2(config-if)#ip address 192.168.10.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 10.10.10.1 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit

▪ PC1:
▪ PC2:

Step 3 – Configuring Static Routes

R1:

R1#config t

R1(config)#ip route 192.168.10.0 255.255.255.0 10.10.10.1

R2:

R2#config t

R2(config)#ip route 192.168.20.0 255.255.255.0 10.10.10.2


Output (show commands):

-R2 routing table before static route (R2#show ip route)

As show in the figure above, the R2 contains only directly connected networks.

-R2 routing table after static route (R2#show ip route)

After applying static route, the routing table contains one additional route.

-R2 ip addresses (R2#show interface brief)

You might also like