Jump to content

I have 2 older Tyan servers running at my house, one running as a file server and one running as a game server. My internet router is upstairs and my servers are downstairs so i ran a ethernet cable down to them and I am using another router as a network switch. all works fine but every once and a while the second router changed its ip address, thus not allowing the ports to come through the first router, also not allowing me to remote into the servers to fix the problem? anyone know of a solution?

Thank you,

Matt M

Link to comment
https://linustechtips.com/topic/941829-router-keeps-changing-ip/
Share on other sites

Link to post
Share on other sites

1 minute ago, Matt McCreadie said:

I have 2 older Tyan servers running at my house, one running as a file server and one running as a game server. My internet router is upstairs and my servers are downstairs so i ran a ethernet cable down to them and I am using another router as a network switch. all works fine but every once and a while the second router changed its ip address, thus not allowing the ports to come through the first router, also not allowing me to remote into the servers to fix the problem? anyone know of a solution?

Thank you,

Matt M

Your IP thru you ISP is dynamic meaning it changes. ISP charge for static IP's, plus some dont allow them on residential connections. As most ISP's dont want internet facing servers on residential internet. So beside using a service like no-ip there is not much you can do. 

I just want to sit back and watch the world burn. 

Link to post
Share on other sites

7 minutes ago, Donut417 said:

Your IP thru you ISP is dynamic meaning it changes. ISP charge for static IP's, plus some dont allow them on residential connections. As most ISP's dont want internet facing servers on residential internet. So beside using a service like no-ip there is not much you can do. 

No, I have a static IP through my ISP, has never changed. The problem is with my router, I have my modem going to a Netgear router to use as the wireless router for the house, then I have a LAN cable running to another Linksys router with the wireless turned off, just to use as a network switch. every once and a while, the internal IP of the Linksys router will change and screws up all of the ports I have forwarded on the Netgear router. Is there any way I can make the IP of the Linksys router static?

Link to post
Share on other sites

1 minute ago, Matt McCreadie said:

No, I have a static IP through my ISP, has never changed. The problem is with my router, I have my modem going to a Netgear router to use as the wireless router for the house, then I have a LAN cable running to another Linksys router with the wireless turned off, just to use as a network switch. every once and a while, the internal IP of the Linksys router will change and screws up all of the ports I have forwarded on the Netgear router. Is there any way I can make the IP of the Linksys router static?

Did you turn your DHCP server off in your secondary router? Because if your have two DHCP servers on then this can happen. 

I just want to sit back and watch the world burn. 

Link to post
Share on other sites

1 minute ago, Donut417 said:

Did you turn your DHCP server off in your secondary router? Because if your have two DHCP servers on then this can happen. 

No, I don't know what that is but ill go look for it in the router settings, Thank you very much!

Link to post
Share on other sites

You are running two routers, both in router mode, resulting in dual NAT and two separate networks. Set your second router to not do NAT and/or separate subnet, keep it all in one network. Then you can set static internal IPs to your servers, either in the router DHCP settings or on the server itself.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to post
Share on other sites

4 hours ago, r4tch3t said:

You'll want to leave the dhcp server on and change the same so that you have a bunch of ips you can use as static ips. 

That's not how it works ;) your home network has a certain range, i.e. 192.168.1.0/24 this means you have 254 addresses to choose from. You can pick any address in this range and it'll have network connectivity with other devices, DHCP isn't needed for this. All DHCP does is provide addresses to devices requesting one in a given range so you don't have to set one yourself. It's a convenience system, not a necessity.  In fact, assigning a static IP in a DHCP range can cause IP address conflicts as the DHCP server can't tell whether an IP is taken if it's not assigned by DHCP.

 

25 minutes ago, jj9987 said:

You are running two routers, both in router mode, resulting in dual NAT and two separate networks. 

This. 

 

Connect the two routers LAN to LAN and disable DHCP. This will basically turn the 2nd router into an access point and switch rather than a router and keep both routers in the same subnet. That's basically all you need to do.

 

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to post
Share on other sites

48 minutes ago, NelizMastr said:

That's not how it works ;) your home network has a certain range, i.e. 192.168.1.0/24 this means you have 254 addresses to choose from. You can pick any address in this range and it'll have network connectivity with other devices, DHCP isn't needed for this. All DHCP does is provide addresses to devices requesting one in a given range so you don't have to set one yourself. It's a convenience system, not a necessity.  In fact, assigning a static IP in a DHCP range can cause IP address conflicts as the DHCP server can't tell whether an IP is taken if it's not assigned by DHCP.

 

Sorry the same In my previous post was ment to be range in reference to freeing up some ips from the dhcp servers range to prevent said conflicts.

You provided a much better explication though.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×