Experimental goals:
<1> Master the configuration methods and skills of static routing
<2> Master the connectivity of the network through static routing
<3> Familiar with the connection method of the WAN cable
Technical principle:
<1> The router belongs to the network layer device, which can select an optimal path and forward the data packet according to the information in the IP packet header. Realize mutual access between hosts on different network segments. Routers use routing tables for routing and forwarding. The routing table is composed of pieces of routing information.
<2> There are two main ways to generate routing table: manual configuration and dynamic configuration, namely static routing protocol configuration and dynamic routing protocol configuration
<3> Static routing refers to routing information manually configured by the network administrator
<4> In addition to the advantages of simple, efficient and reliable static routing, another advantage of static routing is high network security and confidentiality.
Experimental steps:
<1> Create a topology map as shown in the figure
<2> Set the ip of the two PCs respectively
PC1
IP: 192.168.1.2
Submask: 255.255.255.0
Gateway: 192.168.1.1
PC2
IP: 192.168.2.2
Submask: 255.255.255.0
Gateway: 192.168.2.1
<3> Configure the ip address of the interface and the clock frequency on the serial port of R1 on the routers R1 and R2
R1
on
conf t
hostname R1
int fa 1/0
no shut
ip address 192.168.1.1 255.255.255.0
exit
int serial 2/0
no shut
ip address 192.168.3.1 255.255.255.0
clock rate 64000 (clock must be configured to communicate)
end
R2
on
conf t
hostname R2
int fa 1/0
no shut
ip address 192.168.2.1 255.255.255.0
exit
int serial 2/0
ip address 192.168.3.2 255.255.255.0
no shut
end
<4> Verify the static routing configuration on R1 and R2
R1
on
conf t
ip route 192.168.2.0 255.255.255.0 192.168.3.2
end
show ip route
R2
on
conf t
ip route 192.168.1.0 255.255.255.0 192.168.3.1
end
show ip route