Re: IP "Alternate configuration"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Sure...
I want to programmatically change the parameters usually altered via GUI, in
the TAB "Alternate Conguration".

Yes.
I want a script that changes that parameters and then re-open the tab and
find them configured.

I hope I have been more clear, now.

What you suggest is not what I mean.
I'm already able to configure an interface via Netsh, and I don't want to
"alternate" between two interface configurations (fixed and dynamic).

I want to configure my interface to obtain the configuration automatically
via DHCP.
OK, assuming I have called my interface "LAN", I can use the command "set
addr LAN DHCP" under the netsh to accomplish this.

Now I have my interface "LAN" DHCP enabled...
In the case of a failure of the DHCP service (after 1 munute), the interface
"LAN" will be (automatically, silently) configured with the values (IP subnet
mask, gateway...) set on the ALTERNATE CONFIGURATION TAB.

I don't want to fix the LAN interface configuration!
I want to still have it configured via DHCP!
I want to set that ALTERNATE (fixed) IP configuration.

Doing this via GUI is an easy job, I want to do the same via VBS (preferred).

Is it possible?

I hobe I was clearer

SubnetJO, Italy






"Pegasus [MVP]" wrote:

"Tabs" are used in GUIs (Graphical User Interfaces). Since you're after a
scriptable solution you need something that controls the same parameters
that your tab does. As I mentioned before, netsh.exe can do this. The
following command is an example: It will set the adapter to DHCP mode.

netsh interface ip set address "Local Area Connection" DHCP

If you want to alter between DHCP and a fixed address then you need two
netsh commands: One to enable DHCP, the other to set fixed addresses (which
are embedded in your command).


"SubnetJO" <SubnetJO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:62E01BE6-3940-4551-8212-3E79D5B8D0E6@xxxxxxxxxxxxxxxx
Thank for your reply.

I mean...
Take a WinXPpro machine.
Control Panel > Network Connections

On an Ethernet Interface:
Right click > properties

On the general tab, choose "Internet Protocol (TCP/IP)" and then click the
Properties button.

In the "Internet Protocol (TCP/IP) Properties" window, If the interface is
configured to "Obtain an IP address automatically" (on the "General tab"),
you can see the "alternate configuration" tab too.

On this tab you can set a static IP configuration for the case the
automatic
configuration (DHCP) fails.

I can set the IP configuration in many ways, including the Netsh.exe
utility, but I didn't find a way to programmatically place the alternate
IP
configuration.

Thanks,
SubnetJO, Italy







"Pegasus [MVP]" wrote:


"SubnetJO" <SubnetJO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D32F41D-F456-4157-A020-A46ECA338CF1@xxxxxxxxxxxxxxxx
Hi all.

Surely you know that if you set a network interface to be configured
dinamically by a DHCP server, you have the "Alternate Configuration"
TAB
where you can place a static IP configuration in the case the dynamic
configuration process fails (for any reason).

I'd like to set the (IP) "alternate configuration" programmatically,
using
a
script (VBS, VB, PowerShell, Netsh... doesn't matter), and I couldn't
find
a
documentation about.

Can any of you provide me a way to accomplish this task?
A sample code would be great!

Really thank you for your help.
SubnetJO, Italy

I cannot see any "Alternate Configuration" tab on my machine. Regardless
of
this, the usual command to set IP parameters is netsh.exe. You can use it
to
set fixed IP addresses or use DHCP.






.



Relevant Pages

  • [NEWS] Cisco IOS DHCP Blocked Interface DoS
    ... Cisco IOS devices running several branches of Cisco IOS that have Dynamic ... queue becomes blocked when receiving specifically crafted DHCP packets. ... configuration information from the DHCP server via the network. ... On a blocked Ethernet interface, ...
    (Securiteam)
  • Re: IP "Alternate configuration"
    ... It will set the adapter to DHCP mode. ... netsh interface ip set address "Local Area Connection" DHCP ... On the general tab, choose "Internet Protocol " and then click the ... On this tab you can set a static IP configuration for the case the ...
    (microsoft.public.windows.server.scripting)
  • Re: IP "Alternate configuration"
    ... the TAB "Alternate Conguration". ... I'm already able to configure an interface via Netsh, ... I want to configure my interface to obtain the configuration automatically ... addr LAN DHCP" under the netsh to accomplish this. ...
    (microsoft.public.windows.server.scripting)
  • Re: Wireless NIC in FreeBSD 6.0 ?
    ... >>>interfaces to be configured with dhcp. ... >>>down the other interface. ... > requested from the server, information required of the server, ... > wireless and the configuration of the working interface should take effect. ...
    (freebsd-questions)
  • Re: Wireless NIC in FreeBSD 6.0 ?
    ... If for some set of options the client should use the value sup- plied by the server, but needs to use some default value if no value was supplied by the server, these values can be defined in the default statement. ... how can I configure the wireless interface to use DHCP in dhclient.conf? ... the default configuration for your wireless nic ... ...
    (freebsd-questions)