Automatically change IP Address

hidnface

New Member
Hi all,

I worked for different companies and when I connect to their local network, each time I need to change my IP address to the local one, because they don't have DHCP.

I was thinking of an easiest way to switch from one IP to another without to manually input the IP, gateway, DHCP server, DNS server each time...:rolleyes: :D

Do you think, there's a way or software I can do this please?
 

My Computer

System One

  • Manufacturer/Model
    HP 530
    CPU
    Intel Core Duo T2600 2.16GHz
    Memory
    2GB Ram
    Hard Drives
    500 GB Hard Disk
    Internet Speed
    ADSL 1M
I FOUND THE ANSWER. :party::party:

I can do this using command prompt. Each time I need to change my IP, I run the batch file...

Changing IP
Code:
@echo off

netsh int ip set address "Local Area Connection" static 192.168.1.17 255.255.255.0 192.168.1.1 1 

netsh int ip set dns "Local Area Connection" static 192.168.1.1 primary 

exit
For activating DHCP
Code:
@ECHO OFF
netsh int ip set address "local area connection" dhcp 

netsh int ip set dns "local area connection" dhcp 

EXIT
:cool::cool:
 

My Computer

System One

  • Manufacturer/Model
    HP 530
    CPU
    Intel Core Duo T2600 2.16GHz
    Memory
    2GB Ram
    Hard Drives
    500 GB Hard Disk
    Internet Speed
    ADSL 1M
you could also a create a couple of loopback interfaces and just input the ip address for the different subnets you work at then you automatcaly have L3 connectivity
 

My Computer

System One

  • Manufacturer/Model
    Sony Vaio
    CPU
    Intel Core 2 duo
    Memory
    4 GB
    Graphics Card(s)
    ATI Mobility Radeon™ HD 3400 Series
    Screen Resolution
    1600x900
    Hard Drives
    400 GB
    Case
    Laptop
    Internet Speed
    DSL 2 Mbps in dec 16 yesssss
    Other Info
    We Can DO I.T.
Back
Top