Set IP Address using Command Prompt?

G

Guest

Hello,

I know you can use ipconfig /all at the command prompt to view the network
parameters for a network connection, but can you use the command prompt to
set the IP to a specific address? And I'm not referring to release/renew in
which some address is pulled from the DHCP server. Rather, I'm looking for
something equivelant to going into the control panel and changing the TCP/IP
settings for the network connection in question and setting the IP address to
something specific.

My goal is to set up a script for certain users that log onto a certain
machine, so that certain users get certain IP's, while other users get other
IP's. The goal of this, then, is to allow/disallow internet web browsing
through our hardware firewall which only controls based on IP (and doesn't
care about user name).
 
G

Guest

Google is your friend : )

In order to configure TCP/IP settings such as the IP address, Subnet Mask,
Default Gateway, DNS and WINS addresses and many other options you can use
Netsh.exe.

Netsh.exe is a command-line scripting utility that allows you to, either
locally or remotely, display or modify the network configuration of a
computer that is currently running. Netsh.exe also provides a scripting
feature that allows you to run a group of commands in batch mode against a
specified computer. Netsh.exe can also save a configuration script in a text
file for archival purposes or to help you configure other servers.
 
D

David Candy

The phrase " Google is your friend" is banned here. MS just recently cleaned their web site of this phrase. Try "MSN is your friend".
 
G

Guest

I find it terribly amusing that the phrase Googleisyourfriend is banned! I
better not mention that google is my homepage!

I will search Google, ahem, I mean "MSN" :), on netsh.exe. Thanks for the
tip!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top