当前位置:网站首页>Huawei ENSP simulator enables devices of multiple routers to access each other

Huawei ENSP simulator enables devices of multiple routers to access each other

2022-07-04 21:13:00 Python Pegasus

In the enterprise , There must be more than one router , So when there are multiple routers , How to realize data forwarding in different routers , Visit each other , At this time, it is necessary to configure the access routing table between routers , After configuring the routing table , The router knows which router should forward this access data .

First, let's simulate , Between multiple routers , How do devices access each other .

We configure different network segments for each device IP Address , To simulate the environment .

Router interface ip Address , It is the gateway connecting the device , Gateway is to realize the data forwarding of this network segment

We can see , Even if connected , These devices are inaccessible .pc The machine cannot communicate with the server .

Check the reason , Check the routing table .

Found no 192.168.1.0 The network segment ip The address didn't go to 192.168.3.0 Route of network segment .

So we need to add routes manually

ip rou  The goal is IP Network segment   Subnet mask   Next hop interface ip

  Here we want to access the network segment 192.168.3.0 Network segment devices , When you want to pass the routing interface of the next hop 192.168.2.10

  Here we can see , Our routing device already has this route , Prove that our data can be transmitted to that network segment

  Try to visit , Or failure .

It is found that there is a destination network segment , However, there is no route for the device in the target network segment to reply ,3.0 The network segment did not go 1.0 Route of network segment , Just go out , I can't find my way home , Then we also need to configure a return routing table in the router connected to the other network segment devices . 

Go to another router to configure the routing table , View to 192.168.1.1 The routing table for , Found the existence of .

Try to visit , Successful visit .

The multi router access experiment is successful , For detailed commands, please check the homepage ensp The command of . 

原网站

版权声明
本文为[Python Pegasus]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042010439934.html