TCP/IP properties

  • Thread starter Thread starter Crios
  • Start date Start date
C

Crios

I have a laptop computer I use as a "mule" to transfer large files from the
office computer to the home computer.

At the office I use the LAN settings for the network connection (IP,
gateway, DNS server address), and at home I use different network connection
settings to connect the two computers using a crossover cable.

Currently, I have to manually change settings each time.
Is there a way to fast switch between the two settings or to set common
settings ?

Thanx

Crios
 
You can easily do with netsh commands in a shell script.

1 to set ip address and subnet, 2 to clear previous dns server ip's, 3 to
set primary dns server, 4 to set alt dns server, 5 to set ip address DHCP
assigned

1.) netsh interface ip set address name="Local Area Connection"
source=static addr=192.168.10.10 mask=255.255.255.0 gateway=none
2.) netsh interface ip delete dns name="Local Area Connection" addr=all
3.) netsh interface ip set dns name="Local Area Connection" source=static
addr=192.168.20.20
4.) netsh interface ip add dns name="Local Area Connection"
addr=192.168.30.30
5.) netsh interface ip set address name="Local Area Connection" source=dhcp

Where "Local Area Connection" is the name of your connection. (watch for
line wrap)


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
 
Crios said:
I have a laptop computer I use as a "mule" to transfer large files from the
office computer to the home computer.

At the office I use the LAN settings for the network connection (IP,
gateway, DNS server address), and at home I use different network connection
settings to connect the two computers using a crossover cable.

Currently, I have to manually change settings each time.
Is there a way to fast switch between the two settings or to set common
settings ?

Thanx

Crios

Here are a couple of options:
- Don't use the laptop as a "mule" - use a flash disk or a hard disk
in a USB case.
- Use DHCP at both ends.
 

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

Similar Threads


Back
Top