Sign in to follow this  
Followers 0
whitehatGuru

Changing IPAddress using Command prompt

11 posts in this topic

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

0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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.

1

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

Thanks bob

0

Share this post


Link to post
Share on other sites

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. :)

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0