Changes between Initial Version and Version 1 of WindowsScripts


Ignore:
Timestamp:
05/08/06 13:34:25 (12 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WindowsScripts

    v1 v1  
     1Automatically set the TCP/IP settings in Windows 2000/XP. 
     2Custom settings such as "Append DNS Suffixes" must be 
     3added manually in the Advanced TCP/IP properties of the 
     4network adapter. 
     5 
     6{{{ 
     7# netsh script for VOLARIS 
     8# netsh -c interface dump > volaris.netsh 
     9# run with netsh -f volaris.netsh 
     10#======================== 
     11pushd interface 
     12reset all 
     13popd 
     14pushd interface ip 
     15set address name="Local Area Connection" source=static addr=128.95.228.13 mask=255.255.255.0 
     16set address name="Local Area Connection" gateway=128.95.228.100 gwmetric=0 
     17set dns name="Local Area Connection" source=static addr=128.95.120.1 register=PRIMARY 
     18add dns name="Local Area Connection" addr=128.95.112.1 index=2 
     19add dns name="Local Area Connection" addr=128.95.44.1 index=3 
     20set wins name="Local Area Connection" source=static addr=none 
     21popd 
     22}}} 
     23 
     24 
     25{{{ 
     26# netsh script for dhcp 
     27# netsh -c interface dump > dhcp.netsh 
     28# run with netsh -f dhcp.netsh 
     29#======================== 
     30pushd interface 
     31reset all 
     32popd 
     33pushd interface ip 
     34set address name="Local Area Connection" source=dhcp  
     35set dns name="Local Area Connection" source=dhcp register=PRIMARY 
     36set wins name="Local Area Connection" source=dhcp 
     37popd 
     38}}}