Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assign IP to a network appliance

Status
Not open for further replies.

pmbtech

Programmer
Nov 24, 2003
47
US
I have a network device (LED Sign) that is shipped with an IP of 192.168.X
I need to write a utility for my customers to assign a new IP to it. The sign has a web based setup screen.
My problem is that my customers may have a 10.1.X network.
They setup the sign by connecting directly to it via a crossover or through a hub.
I know the MAC address(serial number) of the sign.
I set up a small 10.1.X network with a router and gateway and plugged my machine and the sign into a hub to simulate a customer.
I tried adding an entry in my machines' ARP cache as 10.1.1.100 and then pinged 10.1.1.100 but no joy.
I have been scouring the net and reading anything and everything I can find that even remotely is in the ball park, I've learned more about networks and IP routing than I ever thought I would but can't seem to get my head around this one.
Does anyone have any ideas on how I can get to a 192.1.X device from a 10.1.X device with a known MAC address?

Thanks for any Ideas
 
I don't know the answer to your question, but I would suggest you post this in the VBScript forum if you don't get an answer here. The folks over there are pretty good with systems admin scripting. You could probably translate the VBScript into VB.Net for a final solution.

forum329
 

This should change a PCs IP address:

Shell("netsh interface ip set address ""local area connection"" static 192.168.1.55 255.255.255.0 192.168.1.1 1")

The IP addresses in the command are: IPAddress SubnetMask GatewayAddress

You can change it back the same way. To set the network adapter to use DHCP, do this:

Shell("netsh interface ip set address ""local area connection"" source=dhcp")

You can also do this using System.Diagnostics.Process.Start instead of shell, but I can't do the testing right now on how to set up the parameters properly.

Hope this helps.


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top