Jump to content


Photo
- - - - -

Changing IPAddress using Command prompt


  • Please log in to reply
10 replies to this topic

#1 whitehatGuru

whitehatGuru

    Will I break 10 posts?

  • Members
  • 9 posts
  • Country:
  • Gender:Male

Posted 17 November 2009 - 09:56 AM

Open cmd andType in the below command in CMD.

Syntex:
Netsh int ip set address/dns/wins “interface_namesource IP_address Subnet_mask default_gateway 1

Example:
For Static IP
Netsh int ip set address “Local Area Connectionstatic 192.168.1.2 255.255.255.0 192.168.1.1 1

For Static DNS
Netsh int ip set dns “Local Area Connectionstatic 208.67.222.222 primary

Netsh int ip set dns “Local Area Connectionstatic 208.67.202.202 secondary


For Dynamic IP (DHCP)
Netsh int ip set address “Local Area Connectiondhcp

Netsh int ip set dns “Local Area Connectiondhcp

#2 intimidat0r

intimidat0r

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 455 posts

Posted 17 November 2009 - 09:32 PM

Open cmd andType in the below command in CMD.

Syntex:
Netsh int ip set address/dns/wins “interface_namesource IP_address Subnet_mask default_gateway 1

Example:
For Static IP
Netsh int ip set address “Local Area Connectionstatic 192.168.1.2 255.255.255.0 192.168.1.1 1

For Static DNS
Netsh int ip set dns “Local Area Connectionstatic 208.67.222.222 primary

Netsh int ip set dns “Local Area Connectionstatic 208.67.202.202 secondary


For Dynamic IP (DHCP)
Netsh int ip set address “Local Area Connectiondhcp

Netsh int ip set dns “Local Area Connectiondhcp


What's the point of changing your local IP address, exactly?

#3 whitehatGuru

whitehatGuru

    Will I break 10 posts?

  • Members
  • 9 posts
  • Country:
  • Gender:Male

Posted 18 November 2009 - 07:46 AM

What's the point of changing your local IP address, exactly?


it Sounds u didn't get the title "Changing IPAddress using Command prompt"

:biggrin: expert used to do d most of there task via cmd...don't u heard that before.

Linux is cool bcos you can do every task via command line or say terminal, but for windows people are just familiar with GUI..and thats the reason I'm trying to teach How to Change Your IP using Command Prompt.

#4 totallyAunti

totallyAunti

    Mack Daddy 31337

  • Members
  • 209 posts
  • Country:
  • Gender:Male
  • Location:nubie-ville (somewhat new to internet, watch out)

Posted 19 November 2009 - 01:41 AM


Open cmd andType in the below command in CMD.

Syntex:
Netsh int ip set address/dns/wins “interface_namesource IP_address Subnet_mask default_gateway 1

Example:
For Static IP
Netsh int ip set address “Local Area Connectionstatic 192.168.1.2 255.255.255.0 192.168.1.1 1

For Static DNS
Netsh int ip set dns “Local Area Connectionstatic 208.67.222.222 primary

Netsh int ip set dns “Local Area Connectionstatic 208.67.202.202 secondary


For Dynamic IP (DHCP)
Netsh int ip set address “Local Area Connectiondhcp

Netsh int ip set dns “Local Area Connectiondhcp


What's the point of changing your local IP address, exactly?


I like his reply ;) . He didn't really answer you as to why bother changing it.

#5 lattera

lattera

    Underground Shizzleness

  • Members
  • 511 posts
  • Gender:Male

Posted 20 November 2009 - 12:22 AM

We underwent some pretty heavy network changes at work. I had to change my IP address (and even switch between static IP and DHCP) several times for testing purposes. Some people (like me) find working in the terminal to be easier than GUI. I only knew about "ipconfig /release" and its corresponding "ipconfig /renew". Thanks for the tips, whitehatGuru.

#6 chown

chown

    SUPR3M3 31337 Mack Daddy P1MP

  • Moderating Team
  • 493 posts
  • Country:
  • Gender:Male
  • Location:Floating on a sea of hydrogen

Posted 20 November 2009 - 11:58 AM

Thanks bob

#7 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,102 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 18 November 2013 - 08:00 PM

The biggest advantage of doing anything from the command line, is that it can easily be scripted with PERL, Python, or even the native language of the shell a person is using. :)



#8 Swerve

Swerve

    Dangerous free thinker

  • Members
  • 809 posts
  • Country:
  • Gender:Male

Posted 24 November 2013 - 08:29 PM

One day I'll get round to trying some Python, it has some good libaries for web scraping.



#9 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,102 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 25 November 2013 - 05:07 AM

I like Python for its readability. We use Python at work a lot just for that. Reading other's PERL can vary from very readable, to looking at hieroglyphic chicken scratch.



#10 systems_glitch

systems_glitch

    Dangerous free thinker

  • Moderating Team
  • 1,652 posts
  • Gender:Male

Posted 25 November 2013 - 10:32 AM

I like Python for its readability. We use Python at work a lot just for that. Reading other's PERL can vary from very readable, to looking at hieroglyphic chicken scratch.

 

Python does at least force a little bit of coding style, otherwise you don't get control structures! One can definitely write awful, unreadable code in any language though. We have seen plenty of bad Ruby here, and Ruby is supposed to be highly readable.



#11 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,102 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 25 November 2013 - 07:50 PM

True that, Glitch.

 

But, IMO, PERL is the worst. But that is what makes it my personal favorite language. One can adapt PERL to fit their own style. However, when you get five I.T. guys collaborating on a project, and each tries to out-do one-another with PERL "one-liners", it difficult to find people good enough to decipher everyone's code. 

 

I guess any language is like to an extent, even BASIC. But PERL just varies so much from programmer to programmer.






BinRev is hosted by the great people at Lunarpages!