[CyberSecurityLearning 13] Simple packet capture and IP header analysis and routing principles (1)

table of Contents

1. Simple packet capture

 Two, static routing

​2.1 IP data packet format (enhance memory ★)

2.2 Overview of routing

2.3 Formation of the routing table

Experiment: Realize the interoperability of the whole network

2.4 Static routing

2.5 Default routing​

2.6 Comparison of switching and routing

2.7 Static route and default route configuration (command)

3. Demonstration of routing experiment

Experiment 1:

Experiment 2: Floating routing

Homework practice


1. Simple packet capture

Experiment:
The purpose of the experiment:
1. Learn simple packet capture
2. Verify the TCP/IP protocol stack structure
2. Verify the frame structure
Experimental environment:
All data that enters and exits your network card when the virtual machines win7 and win2003-1 capture packets, your software will capture Come out, your computer will become slower and slower over time.
First, bridge both virtual machines to VMnet1, with IP addresses win7 (10.1.1.1) and win2003-1 (10.1.1.2)
and copy a telnet client putty
on win7. win7 install a packet capture software: Branch to


After clicking start:

After opening putty and completing a remote connection, I found that the telnet package was caught, double-click to open it

‘’

 

 Two, static routing


2.1 IP data packet format (enhance memory ★)


IP fragmentation is the fragmentation of the IP protocol at the network layer, which belongs to the three-layer fragmentation. (The application layer can also be sliced, cut 1460B)

2.2 Overview of routing

The forwarding basis of the router is the routing table (the forwarding basis of the switch is the mac address table). The router decides how to forward the
route according to the routing table is the process of the router selecting the path for the IP packet (the router selects the path according to the routing table, and the process of selecting the path Called routing)

 

2.3 Formation of the routing table

Experiment: Realize the interoperability of the whole network

Take a good look at this picture

The value of the administrative distance can be changed

2.4 Static routing

2.5 Default routing

2.6 Comparison of switching and routing

2.7 Static routing and default routing configuration (command)

Static routing:
conf t (global configuration mode)
ip route the next hop IP of the target network segment subnet mask
such as: ip route 70.1.1.0 255.255.255.0 20.1.1.2

Default route:
conf t
ip route 0.0.0.0 0.0.0.0 Next hop IP
such as: ip route 0.0.0.0 0.0.0.0 20.1.1.2

Floating route:
add space + number (positive integer) after static or default route

ip route 0.0.0.0 0.0.0.0 20.1.1.2
ip route 0.0.0.0 0.0.0.0 30.1.1.1 2 (2 means the administrative distance value, the greater the value, the lower the priority, the default route is infinite)
(the two infinity are compared Time is better than the management distance value)

View the routing table:
show ip route

View the interface list:
show ip interface brief
show running-conf

3. Demonstration of routing experiment

Experiment 1:

The purpose of the experiment: to achieve interoperability across the network

1. First configure the IP addresses of the three PCs, refer to the gateway
2. Configure the routing IP

The second and third routers will not be demonstrated one by one.

3. Configure routing

4. Ping

Experiment 2: Floating routing

Buy NM-2FE2W when buying a module for 2811 router (turn off the power first)

1. Configure IP and gateway for two PCs 2. Configure IP
for the first router

3. Assign IP to the second router

4. With the first router routing

5. With the second router routing

6. The PC on the left keeps pinging 40.1.1.1 
ping -t 40.1.1.1 and
then unplug the upper network cable or manually down, and observe whether it can be pinged (
yes ) to see if the floating route "floats" --- " floating out
S 40.1.1.0 [6/0] via 30.1.1.2 (this would have been hidden)

7. Plug the line back in or up (the "positive" ones are back, and the ones that just "floated" are hidden)

Homework practice

Guess you like

Origin blog.csdn.net/Waffle666/article/details/113448510