1.

Solve : MS-Win CLI network configuration?

Answer»

Hi folks,

I am using a WinXP computer that is used on two NETWORKS. Both are using TCP/IP but one network uses DHCP and the other uses a static configuration. It is imperative that it is NEVER connected to both at the same time. For now I have been switching the network cable and going into the microsoft Control Panel to reconfigure the interface every time I switch. The machine has two ethernet SOCKETS but I am currently restricting usage to only one to ensure that the two networks never meet. As I need to switch 3-4 times a day it wasn't LONG before 'there must be an easier way' popped into mind.

I know that if this was a 'nix system I could have each network plugged in to each socket and use 'ifconfig' to start/stop each interface. I could then write a script that would ensure that eth0 was disabled before ETH1 was activated, and vice versa. However the MS equivalent seems unable to do this. Does anyone know otherwise?

An acceptable alternative would be to stay with the lead-switching but have a script reconfiguring the interface. Again the MS command set seems lacking?

Any help would be greatly appreciated,
Many thanks, kimdino



Discussion

No Comment Found