PC Review


Reply
Thread Tools Rate Thread

DNS and Default Gateway

 
 
giladm1@012.net.il
Guest
Posts: n/a
 
      25th Sep 2005
HiAll

I'm using win xp and i want to remove the Default Gatway IP address or the
DNS address by script.
Or from a batch file.

Thanks


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmV5U3lz?=
Guest
Posts: n/a
 
      28th Sep 2005
I´m guessing that you want and alternate configuration for the tcp/ip setting
in your machine.

4 normal way to do this.

Automatic by Apipa. This implies to use this segment in one of the networks.
Dinamic by Dhcp.
Alternate configuration. Explained below
Manually. Change each time by hand.

You can use this :
http://www.microsoft.com/technet/pro...0d95cfbcf.mspx

The general idea is to have dhcp configuration and in absence of it the
machine choose tha alternate configuration.

Other way could be to have another network card in the machine. and disabled
each card as you use.

and finally a regedit solution. Just an idea.

use run, regedit a go to
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\

There is a list of interfaces choose the one that match your current
configuration. The description is not very clear. Select it.
Use File, export or right clik export to have the configuration exported to
a file (say gateway.reg). The extension is important.

iif you open the file gateway.reg file with the following content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{F7260876-0DD7-4156-BDA8-3E7EEDB05E4D}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:0000000
"IPAddress"=hex(7):31,00,30,00,2e,00,31,00,2e,00,32,00,2e,00,31,00,33,00,30,00,\
00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35,\
00,35,00,2e,00,30,00,00,00,00,0
"DefaultGateway"=hex(7):31,00,30,00,2e,00,31,00,2e,00,32,00,2e,00,34,00,38,00,\
00,00,00,00
"DefaultGatewayMetric"=hex(7):30,00,00,00,00,00
"NameServer"="10.1.2.202,200.33.146.201"
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,0
"NTEContextList"=hex(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000e10
"LeaseObtainedTime"=dword:42d69dd5
"T1"=dword:42d6a4dd
"T2"=dword:42d6aa23
"LeaseTerminatesTime"=dword:42d6abe5
"IPAutoconfigurationAddress"="0.0.0.0"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000000

as you see the "name server" the dns names ip´s is easy to change.
not as easy with the gateway is in hex format. but this can be solved.
setting it in the card normally and the use the regedit to export it.
you need to repair the card see the change in the details tab of the card.

Two lasts things:

One:tcp/ip evaluates dns in order if the first one fails pass to the second
and so on. So I think you dont need. to change this. Only takes one moment
more.

Two: Read about IRDP protocol. I dont known if applies to xp but could be
another solution. http://support.microsoft.com/default...d=kb;es;269734

Greetings
--
Reynaldo Ruiz (ReySys)
Cosmobit


"(E-Mail Removed)" wrote:

> HiAll
>
> I'm using win xp and i want to remove the Default Gatway IP address or the
> DNS address by script.
> Or from a batch file.
>
> Thanks
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Default Gateway xfix Windows Vista Networking 1 15th Apr 2008 02:58 AM
no default gateway? =?Utf-8?B?TG91aXNl?= Windows XP Networking 7 24th Jul 2007 10:12 PM
Default gateway =?Utf-8?B?TUlLRTQ0?= Windows XP General 2 14th Jun 2006 01:04 AM
Default gateway unpingable, but can browse gateway IP over http?? jeffhenrichs@gmail.com Windows XP Networking 0 11th Oct 2005 03:40 AM
Default Gateway Haven Microsoft Windows 2000 RAS Routing 3 3rd Feb 2004 09:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 PM.