How through a router 1 and 2 will be two network segments connected router, I put the router LAN address is set to 1 192.168.1.1 wan address set as 2 10.3.1.1 router LAN address set as 192.168.2.1 wan address set as 10.3.1.2 results of attachment two network computer cannot ping each other, ask ace to teach
CodePudding user response:
Your router what kind?CodePudding user response:
Is directly connected,,?CodePudding user response:
I call the wan of router 1 mouth wan1, router wan 2 say wlan2, the IP address of the wan1 10.3.1.1, the IP address of the wan2 10.3.1.2; Because the wan1 and wan2 are in the same network segment, wan1 and wan2 communicate with each other is no problem, the router 1 and 2 two routers LAN respectively in two segments, as shown in figure:In order to make the two segment can visit each other, we must set up corresponding routing, let PC1:192.168.1.1 data through 10.3.1.0 this segment to PC2:192.168.2.1 on this computer, visit PC1 data must also be similarly PC2 through 10.3.1.0 this segment, so as to realize mutual communication, set up corresponding routing has static routing and dynamic routing, huawei router equipment, for example, in the router 1 set on static routing:
Set the static route on the router 2:
Test PC1 access PC2:
No problem to visit each other
If it is a home router, log in to the router, find the option "routing", click with the static routing Settings, click "add new entry" add as shown in figure
note that two home routers, must be all you need to set up
CodePudding user response:
Gateway has added a routerCodePudding user response:
Static routes are two home router, to add each other