✔ 最佳答案
In this scheme Router R1 which is connected to the internet now is in charge of supplying an internet socket to R2. This means R2 will see R1 as the internet gateway and won’t expect any more from it.
We’ll set R1 with IP 192.168.0.1 and DHCP disabled. Connect a cable from a free LAN port to the WAN port of router R2.
Now set the internet connection of R2 as a static IP address with the value of R1: IP 192.168.0.1, Netmask 255.255.255.0 / Gateway 192.168.0.1.
That configuration alone should bring internet to R2. Now we want R2 to act as LAN and DHCP server. Let’s put its IP address to 192.168.0.201 (an example) with its LAN network 192.168.0.0 of netmask 255.255.255.0, the DHCP server starting with IP 192.168.0.2.
Now every device connected to a LAN port on R2 will share that network. If you attach another cable from a LAN port on R2 to a LAN port on R1, R1 will now act as a switch for R2. Therefore the DHCP on R2 will service the computers attached on R1, each computer will ’see’ each other. We’ve solved the problems encountered in option 2.
So we’ll have Internet -> Router R1 (router mode) -> Router R2 (main router) -> Router R1 (switch). You’ll able to use some router features on R1 (before the packets arrive to R2 and after they are sent from R2) as well as those on R2. We’ve solved the problems encountered in option 1.
When booting you LAN, start with R1 and see that your computers won’t get an IP address from R1. Start R2 and see that it gets an internet connection. Renew the addresses on the computers connected on R1 and see how the DHCP on R2 responds. As a matter of fact you’d rather start your LAN by turning router R1 first then R2.