static routing

Experiment 2 Static Routing 

Experimental nature: operation

Experiment Category: Must Do

Experimental hours  : 2

Purpose:

Master the principles of routing and how to configure static routes.

Experiment preparation:

Static routes refer to routing information manually configured by network administrators. When the network topology or link status changes, the network administrator needs to manually modify the related static routing information in the routing table. Static routing information is private by default and will not be passed to other routers. Of course, the network administrator can also set the router to be shared. Static routing is generally applicable to a relatively simple network environment. In such an environment, network administrators can easily and clearly understand the topology of the network and set correct routing information.

Another advantage of using static routing is that the network security is highly confidential. Dynamic routing requires frequent exchange of routing tables between routers, and the analysis of routing tables can reveal information such as network topology and network addresses. Therefore, the network can also use static routing for security reasons.

Large and complex network environments are usually not suitable for static routing. On the one hand, it is difficult for network administrators to fully understand the topology of the entire network; on the other hand, when the topology and link status of the network change, the static routing information in the router needs to be adjusted in a large range, which is difficult. and complexity is very high.

Static routing is the basis for dynamic routing learning.

Experimental requirements:

1. Master the working principle of routing;

2. Learn how to configure static routes.

Experiment content:

Use ip route  to configure a static routing table .

The main experimental instruments and the number of sets:

The equipment required for each group member is as follows:

3 routers , 3 switches, 6 computers, 9 straight-through cables, and 3 Serial DCEs.

Experimental steps:

1. The experimental topology is as follows:

 

 

 

 Add NM-4A/S module to each router , set the clock of DCE to 64000

Configure ip addresses for each host and router

on

conf t

int fa0 / 0

ip add 192.168.5.1 255.255.255.0

///////////////////////////////////////////////////

Routing table configuration for Router0: en 

conf t

ip route 192.168.4.0 255.255.255.0 192.168.1.2

ip route 192.168.2.0 255.255.255.0 192.168.1.2

ip route 192.168.3.0 255.255.255.0 192.168.1.2

exit

show ip route

Thinking questions:

After the routing table of Router0 is configured, why can't PC0 ping PC5?

//////////////////////////////////////////////////

Routing table configuration for Router1: en

conf  

ip route 192.168.5.0 255.255.255.0 192.168.1.1

ip route 192.168.3.0 255.255.255.0 192.168.2.2

exit 

show ip route

//////////////////////////////////////////////////

Routing table configuration for Router2:

in conf t

ip route 192.168.1.0 255.255.255.0 192.168.2.1

ip route 192.168.4.0 255.255.255.0 192.168.2.1

ip route 192.168.5.0 255.255.255.0 192.168.2.1

exit

show ip route

////////////////////////////////////////////////////////////////////////////////////////

Test the connectivity between PC0  and PC5  .

Thinking questions:

Try using the default route in the routing configuration? Delete Router0 static route first

no ip route 192.168.4.0 255.255.255.0 192.168.1.2

no ip route 192.168.2.0 255.255.255.0 192.168.1.2

no ip route 192.168.3.0 255.255.255.0 192.168.1.2

set default route

ip route 0.0.0.0 0.0.0.0 192.168.1.2

 

 Here is the outline of my approach to the question:

 analyze:

There are a total of five networks, the network numbers are

192.168.1.0
192.168.2.0
192.168.3.0
192.168.4.0
192.168.5.0

A total of 6 broken computers

Computer 0 :
 192.168.5.2 255.255.255.0 
192.168.5.1 _ _ _ 
_
Computer 2:
192.168.5.3
255.255.255.0
192.168.5.1
Computer 2:
192.168.4.2
255.255.255.0
192.168.4.1
Computer 3:
192.168.4.3
255.255.255.0
192.168.4.1
Computer 4:
192.168.3.2
255.255.255.0
192.168.3.1
Computer 5:
192.168.3.3
255.255.255.0
192.168.3.1

Three routers with model number 2950-24

Three routers:

Router Router0 has two addresses:

192,168 . 5.1   fa0 / 0

192,168 . 1.1 se1 / 1

Router Router1 has three addresses:

192,168 . 1.2 se1 / 0

192,168 . 4.1 fa0 / 0

192,168 . 2.1 se1 / 1

Router Router2 has two addresses:

192,168 . 2.2 se1 / 0

192,168 . 3.1 fa0 / 0

 

step:

1. Select 6 computers and configure IP addresses.

 

eg. gateway here refers to ----> gateway

The role of the gateway: The gateway is the import and export of the network. The current router integrates the function of the gateway and can be used as a gateway, so the router needs to have its own ip address. The essence of a gateway is an IP address from one network to another.

 

2. Connect the router and PC to the switch. At this time, I connect to the three ports of fa0/0, fa0/1, and fa0/2

as the picture shows:

 3. Then configure the router.

(1) Add NM-4A/S module

(2) Connect the link between routers and routers and the link between routers and switches.

(3) Configure the IP address of the router.

(4) Configure the static routing table.

The following are the specific operation steps:

(1) Add NM-4A/S module

Select the module you want to add, then power off this router. Then install the selected module on the designated location of the router. Then turn on the power again. The module is now installed.

 

Open the Config interface, you will find four more interfaces, and then open the interface to be used and set the Clock Rate.

(2) Connect the link between routers and routers and the link between routers and switches.

The name of the port to be connected has been marked in the figure.

(3) Configure the IP address of the router.

Router0:
on
conf t
int fa0/0
ip add 192.168.5.1 255.255.255.0
exit
int se1/0
ip add 192.168.1.1 255.255.255.0
Router1:
on
conf t
int fa0/0
ip add 192.168.4.1 255.255.255.0
exit
int se1/0
ip add 192.168.1.2 255.255.255.0
exit
int se1/1
ip add 192.168.2.1 255.255.255.0
Router2:
on
conf t
int fa0/0
ip add 192.168.3.1 255.255.255.0
exit
int se1/0
ip add 192.168.2.2 255.255.255.0

After configuring the IP address, you can use the show ip interface brief command to view the set IP address.

 

 

(4) Configure the static routing table.

Static routing table configuration:

Note: If the network directly connected to the router does not need to be configured, the routing information of the network directly connected to the router is automatically added to the routing table.

Router0's routing table:

Router1's routing table:

 

Ok, so the static routing is configured.

 

 Let's configure the (static) default route:

Configure router Router0 here:

 

 Test it with PC0 and find that it is connected

Check the routing table information:

 

 Alright, that's all set up.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324684739&siteId=291194637