Announcement

Collapse
No announcement yet.

Change subnet mask to increase IP address range

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change subnet mask to increase IP address range

    Hello People,

    Need advise to changing network subnets to 255.255.252.0 increase IP address range (192.168.0.1-192.168.3.254)

    Currently all desktops have static IP,s with subnet and the current range is 192.168.1.1-192.168.1.254 and subnet 255.255.255.0
    First i tried to change their subnet via batch script and attached vbs scripts but not working,

    Below script:

    Code:
    ipconfig /all >C:\ipc.txt
    For /F "tokens=2 delims=:" %%A IN ('Find /I "IP Address" c:\ipc.txt') do set IP=%%A
    netsh interface ip set address name = "Local Area Connection" source = static addr = %IP% mask = 255.255.252.0
    del c:\ipc.txt
    
    Exit
    0
    After changing the subnets of static desktops will change it on other devices as below steps,

    1. Firewall
    2. Cisco Switches
    3. Routers
    4. DC Server


    Is this correct? but first i need to change it on desktops right? so in between 192.168.0.1-192.168.3.254 devices can join the domain and can talk to each other in network without any issue.

    Thanks.
    Attached Files

  • #2
    As per Ossian's reply in this thread, you need to do it the other way round: https://www.petri.com/forums/forum/n...ain-controller. Just replace the subnet mask instead of using DHCP if you prefer. Here's some help using a different method for your script: https://social.technet.microsoft.com...way?forum=ITCG
    A recent poll suggests that 6 out of 7 dwarfs are not happy

    Comment


    • #3
      Originally posted by Blood View Post
      As per Ossian's reply in this thread, you need to do it the other way round: https://www.petri.com/forums/forum/n...ain-controller. Just replace the subnet mask instead of using DHCP if you prefer. Here's some help using a different method for your script: https://social.technet.microsoft.com...way?forum=ITCG
      Thank you so much Blood!,

      Script works

      Comment


      • #4
        Excellent! Glad you got it sorted out.
        A recent poll suggests that 6 out of 7 dwarfs are not happy

        Comment

        Working...
        X