Networking Forums

Networking Forums > Computer Networking > Windows Networking > how to add an ip to a NIC (from the command line)?

Reply
Thread Tools Display Modes

how to add an ip to a NIC (from the command line)?

 
 
gst
Guest
Posts: n/a

 
      10-01-2008, 12:31 PM
hi,

is there a way to add, not set, additional ips bound to a certain
network adapter? (*)

i'm trying

commandprompt> netsh interface "LAN" ip add address=192.168.99.1
255.255.255.0 192.168.99.1
The following command was not found: interface LAN ip add
address=192.168.99.1 255.255.255.0 192.168.99.1.
("LAN" is the correct ethernet adapter name)

the truth is - i'm trying it on a winxp-pro machine, but it would very
nice for me to receive an answer even if it applies only to servers.

anyway, what alternatives could be employed? a "bridged" virtual
adapter (this would add a MAC addr too) or something similar, maybe?


thank you in advance
gst


(*) the end resoult i'm looking for should be
being able to use my corporate dhcp-assigned ip for usual
networking, plus
a (preferabily) non-routable ip to simulate "http listening" over
two distinct IPs, while being
able to discern what ip has been contacted
 
Reply With Quote
 
 
 
 
Jose Santos
Guest
Posts: n/a

 
      10-01-2008, 02:42 PM
Hi,

try this:

netsh int ip add address <InterfaceName> <IP-Address> <SubnetMask>

Works on a W2k8, so I think it should also work on older systems.

Greetings!
Jose
 
Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FXP command line client ? Pierre Bru Windows Networking 1 08-28-2006 04:46 PM
VB Installer from command line Newell White Windows Networking 3 06-26-2006 04:12 PM
mailing from the command line Andrew Schulman Linux Networking 1 01-27-2005 10:30 PM
command line Rupert Windows Networking 2 10-20-2003 07:23 PM
How to share using command line Dariusz Zaremba Windows Networking 0 08-08-2003 07:54 AM



1 2 3 4 5 6 7 8 9 10 11