+ Reply to Thread
Results 1 to 8 of 8

Thread: Airtel Broadband: Changing IP Address through command line

  1. #1
    Newbie
    Join Date
    Apr 2008
    Location
    india
    Posts
    14

    Default Airtel Broadband: Changing IP Address through command line

    Hi,i need a bat file for changing IP address randomly ..Also should change in the ip range.For ex.now this is my setting..

    Ip address : 192.168.1.2
    subnet mask : 255.0.0.0
    default gateway :192.168.1.1

    preferred dns :125.22.47.125
    alternate dns :202.56.250.5

    Now i need a bat file which should change my ip address alone randomly in the range 192.168.1.2 to 192.168.1.100...I dont know its possible or not..but i need to do this how can i..thanks in advance..

  2. #2
    Regular
    Join Date
    Jun 2005
    Location
    Bangalore
    Posts
    296

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    you do that using netsh command from bat file. try finding the syntax in google and implement the logic in batch file

  3. #3
    admin's Avatar
    Join Date
    Aug 2004
    Location
    Gurgaon
    Age
    28
    Posts
    32,305
    Blog Entries
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.254
    sets the IP address of the system configuration Local Area Connection to 192.168.0.10, the subnet mask to 255.255.255.0, and the gateway address to 192.168.0.254.
    2GB Online Storage Free! | Star Sports Formula-1 Appeal | Become a fan of India Broadband on Facebook | India Broadband Forum might soon switch to this forum software

  4. #4
    Newbie
    Join Date
    Apr 2008
    Location
    india
    Posts
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    Quote Originally Posted by merc782 View Post
    you do that using netsh command from bat file. try finding the syntax in google and implement the logic in batch file
    Hi,I will try..but i am not sure v can do random ip selection in a particular range or not??

  5. #5
    Newbie
    Join Date
    Apr 2008
    Location
    india
    Posts
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    Quote Originally Posted by admin View Post
    sets the IP address of the system configuration Local Area Connection to 192.168.0.10, the subnet mask to 255.255.255.0, and the gateway address to 192.168.0.254.
    HI ,i think ur code will work..but how can i bring random selection here..it should change everytime..Any how thanks..I need this for eliminating rapdidshare waiting time.i will import this bat file in Jdownloader..if any one knew some other way pls tell me..

  6. #6
    admin's Avatar
    Join Date
    Aug 2004
    Location
    Gurgaon
    Age
    28
    Posts
    32,305
    Blog Entries
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    eliminating rapdidshare waiting time
    mmm changing your local computer IP is not going to change the IP assigned to you by your ISP.
    2GB Online Storage Free! | Star Sports Formula-1 Appeal | Become a fan of India Broadband on Facebook | India Broadband Forum might soon switch to this forum software

  7. #7
    Newbie
    Join Date
    Apr 2008
    Location
    india
    Posts
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    Quote Originally Posted by admin View Post
    mmm changing your local computer IP is not going to change the IP assigned to you by your ISP.
    Sorry dudes..made a mess... You are right..just now figgured out the difference..Now i found how to reboot the my modem for getting my ip..Now last step guys pls help..This is the command i used to give in cmd prompt for rebooting modem.

    telnet 192.168.1.1
    pasword : (Now it asks for password )
    set reboot

    Done its working.But how to make batch file for this because the second line is password input.and this password is CONSTANT ...help guys..My thanks to all who replied..;)

  8. #8
    Newbie
    Join Date
    Apr 2008
    Location
    india
    Posts
    14

    Default Re: IP Change Randomly -Bat file needed..Pls help....

    Quote Originally Posted by admin View Post
    mmm changing your local computer IP is not going to change the IP assigned to you by your ISP.
    i want to restart my model automatically at night.so i need batch file so that i ll schedule it..

    modem name : beetel 450tc1adsl2+ router....

    this is the commands to do restart my modem..
    telnet 192.168.1.1
    Password : (it asks for password and now it should take it autoamtically from that batch file so that it continues with out asking for input)
    set restart

    now how to make this as batch file..important is that it doesnt wait for user input for password..help me guys..thanks..

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: September 11th, 2009, 05:17 PM
  2. New sify command line client
    By chandi in forum Sify Broadband Alternative Clients Forum
    Replies: 8
    Last Post: November 25th, 2007, 02:11 PM
  3. Replies: 10
    Last Post: October 10th, 2007, 08:33 PM
  4. Changing address
    By knak in forum Airtel Broadband
    Replies: 2
    Last Post: October 1st, 2005, 07:16 PM
  5. Changing router address?
    By muttster` in forum MTNL Broadband
    Replies: 11
    Last Post: July 20th, 2005, 09:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts