To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


Virtual DR   Earthweb  
Events Premium Services Media Kit E-mail Offers Whitepapers Vendor Showcases

Go Back   Virtual Dr Forums-Computer Tech Support > Hardware > Networking

Networking Networking Discussion and Support! Help out others and get help with routers, gateways, NICs, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 7th, 2003, 02:40 PM
RingoSaturn's Avatar
RingoSaturn RingoSaturn is offline
Member due to bribery
 
Join Date: Mar 1999
Location: mpls
Posts: 408
change IP address via command line

Anyone know how a user can change there IP address through a command line? Or a script? I have a user who goes to different offices with his laptop, and they are in different subnets. I'd love to have a script for him that he could just run which would allow an automatic change of his:

IP address
subnet mask
default gateway

(oh, and no DHCP)
Thanks
__________________
...this one goes to 11...
Reply With Quote
  #2  
Old November 7th, 2003, 03:32 PM
RingoSaturn's Avatar
RingoSaturn RingoSaturn is offline
Member due to bribery
 
Join Date: Mar 1999
Location: mpls
Posts: 408
Never mind, I found it. Here's how if anyone's interested:

netsh interface ip set address "<connection name>" <static or dhcp> <ip address> <netmask> <gateway> <metric>

Where connection name = local area connection, or local area connection 2, depending on the interface you want changed.

Also, the metric is number of hops to the gateway, usually 1. I think this is an optional field.
__________________
...this one goes to 11...
Reply With Quote
Reply

Bookmarks
Go Back   Virtual Dr Forums-Computer Tech Support > Hardware > Networking



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:21 PM.









Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.