Author Topic: Changing subnet on network  (Read 5572 times)

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Changing subnet on network
« on: May 23, 2023, 10:29:12 am »
I have a problem. 
I have just moved to fibre from my internet supplier which is great but the the DHCP server in the freebox is set for 192.168.1.xxx and my old network is/was set for 192.168.0.xxx.  The change over on my Linux boxes was simple, just fill out a new profile and I was back on air - not so simple for OS/2 or ArcaOS. I spent a couple of hours tracking down every instance where the old subnet was mentioned and physically changing the refference.

Now the question, is there a simple way to do this change over on OS/2 and ArcaOS?  If so please let me in on the secret.

Remy

  • Hero Member
  • *****
  • Posts: 645
  • Karma: +9/-1
    • View Profile
Re: Changing subnet on network
« Reply #1 on: May 23, 2023, 07:21:16 pm »
Hi,

You can use tcpcfg2 to update your lan interface having defined dhcp server ip@
or without specifying ip@, you can start dhcp client (default arcaos i think)
Usage: dhcpstrt [ -d maxwait] [-i lan<#>]
  Starts DHCP client & waits for it to setup ip address.
  Maxwait is the time in seconds rounded to 5 seconds.
  If not specified, the interval defaults to 45 seconds.
  lan<#> specifies the interface requiring dhcp configuration.

e.g. dhcpstrt -i lan0 -d 0

review your \mptn\bin\setup.cmd

Andy Willis

  • Sr. Member
  • ****
  • Posts: 292
  • Karma: +7/-0
    • View Profile
Re: Changing subnet on network
« Reply #2 on: May 24, 2023, 01:59:04 am »
If you are using dhcp, you should not have to do much.  If the machine is off, turning it on will get an IP on the right subnet.  If it is on, you will need to dhcpmon -t to kill the dhcp client, then ifconfig lan0 down - ifconfig lan0 delete then the dhcpstrt -i lan0 -d 0 that Remy referenced (or reboot instead of all that)  If you are using a static IP, you can use tcpcfg2 as Remy stated, or edit the \mptn\bin\setup.cmd directly that Remy referenced (fixing the ifconfig and route statements).  You'll then need to ifconfig lan0 down ifconfig lan0 delete and run setup.cmd (or reboot instead of all that after editing the setup.cmd).
It is easier than I make it sound there, but I don't know whether you are using dhcp or static.

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Changing subnet on network
« Reply #3 on: May 24, 2023, 08:14:36 am »
Thanks Remy and Andy,  I will know more tomorrow when the the full fibre box arrives.  At the moment I have a box that the fibre plugs into piggy backing in the adsl box which might be causing the problem of not being able to do anything with the dhcp server (this box is stuck on 192.168.1.177 with no way ti change that). 

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: Changing subnet on network
« Reply #4 on: May 24, 2023, 09:17:53 am »
Hello Ivan
You could have problems not with the OS2, if not with the new router. Especially if you have fixed IP. Router come with a default settings, assigning an IP range for DHCP, and another fixed IP range. Which can be different from one router to another. If you put the computers like DHCP, you take away many problems of this type. I only have IP fixed on printers.
To change IP fixed to DHCP, you just have to open Network-> TCP/IP and select enable interface and Automatic, used DHCP and push on ok button. And restart the system.
If you want to keep the IP fixed, you may have to modify your router's IP ranges.
As you had them in your previous router.
saludos

Pete

  • Hero Member
  • *****
  • Posts: 1281
  • Karma: +9/-0
    • View Profile
Re: Changing subnet on network
« Reply #5 on: May 25, 2023, 06:04:40 am »
Hi ivan

I usually change the address of the router to match my network.


Regards

Pete

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Changing subnet on network
« Reply #6 on: May 25, 2023, 08:49:36 am »
Hi Pete,

I agree that would be the logical thing to do but for some strange reason what I have appears to be hard-wired into the unit something to do with the extra unit the installers gave me.

The new freebox should be arriving today and hopefully I can set that up to run everything on my network (be nice to have access to the printers back).

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Changing subnet on network
« Reply #7 on: May 26, 2023, 05:07:00 pm »
A final comment on this subject.

It appears that all the free france fibre units are on the 192.168.1.xx subnet and there is no way of changing that but I have managed to find a way round that.

TP Link produce a unit (TL R600VPN_UG) that can be configured to take a WAN address and put it on to a LAN address which defaults to the 192.168.0.xx subnet.  So almost all of my equipment is now reachable, printers, other computers, in fact all but the NAS boxes which appear to not like the work-round.