Network test using Huawei eNSP⑵-Static routing through port address

  With a network simulator, many network application scenarios can be simulated, which is both convenient for learning and beneficial to actual network implementation.

  Because I have never used it before, I only know the benefits of eNSP after using it. However, unlike the Cisco simulator, the connection is automatic and the port cannot be determined, such as using a designated optical fiber port or RJ45 port.

  Today we simulate using the port address on the router for static routing.

  There are many routers in eNSP. Basically, I have never touched them, so I use the basic router. There are only 4 types of switches, and only S5700 and S3700 can be used. The other two need to import package files, and I have not downloaded them online.

  Routers can set IP addresses on ports, but this is not necessarily the case for switches. Logically speaking, Layer 3 switches have routing functions. How can they deliver data packets without port addresses? My understanding is that some only limit specific ports. For example, on HUAWEI S7706, you can set the IP on XGigabitEthernet, and you can set the IP address on the ordinary port by setting undo portswitch.

  Because the S5700 cannot set an IP address after undo portswitch, you can only set this port to access to simulate the port address.

  The network topology considers actual application scenarios, and general enterprise networks are probably similar. What changes is the structure. For example, if the router R6 is replaced by Cloud or an external device is connected, it can be treated as an external network. Routers or switches implement multi-link aggregation, etc.

  Network continuity test, test on PC1 (IP address: 192.168.131.3/24):

  You can see that the network is fully accessible.

  important point:

  1. When setting up static routing, we sometimes habitually write the static routing of the router as

ip route-static 200.200.200.0 255.255.255.0 Ethernet 0/0/0

  This is problematic. The data packet sent to the port cannot be forwarded because the direct connection of the device can determine the address of the opposite end. Generally, it needs to be written as:

ip route-static 200.200.200.0 255.255.255.0 对端的IP地址

  2. If the switch does not have a port to set the IP address, it can be set through Vlan, so that the IP addresses of the two direct ends are under the same Vlan. The port address setting of the router can be determined according to the Vlan on the switch.

  3. Due to the number of addresses of the two directly connected port addresses on the router, the subnet mask is generally set to 255.255.255.252.

  4. There is a rule for adding the number of routes, that is, you don’t need to write except for the directly connected network, and you need to write all the unknown ones.

  5. Main routing:

R5:

ip route-static 172.16.0.0 255.255.0.0 200.200.199.6
ip route-static 192.168.131.0 255.255.255.0 200.200.200.1
ip route-static 192.168.191.0 255.255.255.0 200.200.200.1
ip route-static 200.200.200.0 255.255.255.0 200.200.200.1
ip route-static 200.200.201.0 255.255.255.0 200.200.199.6
ip route-static 200.200.202.0 255.255.255.0 200.200.199.6

  The above 192.168.131.0 and 192.168.191.0 can be written as one.

R6:

ip route-static 172.16.0.0 255.255.0.0 200.200.201.8
ip route-static 192.168.0.0 255.255.0.0 200.200.199.5
ip route-static 200.200.200.0 255.255.255.0 200.200.199.5
ip route-static 200.200.202.0 255.255.255.0 200.200.201.8

R7:

ip route-static 172.16.0.0 255.255.0.0 200.200.202.1
ip route-static 192.168.0.0 255.255.0.0 200.200.201.7
ip route-static 200.200.199.0 255.255.255.0 200.200.201.7
ip route-static 200.200.200.0 255.255.255.0 200.200.201.7
ip route-static 200.200.202.0 255.255.255.0 200.200.202.1

  In the past, configuring network equipment was done by referring to other people's codes, and the basic knowledge was not learned very much. Using eNSP to learn is also a good way. After doing it, it will help you understand some principles.

  

Guess you like

Origin blog.csdn.net/dawn0718/article/details/133323893
Recommended