Home All Groups Group Topic Archive Search About
Author
18 Oct 2006 3:19 PM
Ed Greenberg
I'd like my Windows XP pro box to be active on two subnets at once. It's not
necessary (or even desirable) that it route.

I'd like to have my standard DHCP address, but also add a static address on
another IP network on the same physical media.

In Unix, this would be:
ifconfig eth0 <IP ADDR> up
ifconfig eth0:1 <OTHER IP ADDR> up

Is there any way to accomplish this in Windows XP?

Author
18 Oct 2006 3:52 PM
Robert L [MVP - Networking]
This how to may help,

ipconfig How to setup multiple IPs on NIC How to setup two IPs on a computer How to use MS DHCP to reserve an IP on MAC How to use TCP/IP without installing a NIC ...
      www.howtonetworking.com/Networking/ipconfig.htm 


Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
  "Ed Greenberg" <Ed Greenb***@discussions.microsoft.com> wrote in message news:A92600B6-D1AD-4E97-AA6D-8D4A6546BCF8@microsoft.com...
  I'd like my Windows XP pro box to be active on two subnets at once. It's not
  necessary (or even desirable) that it route.

  I'd like to have my standard DHCP address, but also add a static address on
  another IP network on the same physical media.

  In Unix, this would be:
  ifconfig eth0 <IP ADDR> up
  ifconfig eth0:1 <OTHER IP ADDR> up

  Is there any way to accomplish this in Windows XP?
Author
18 Oct 2006 6:29 PM
Ed Greenberg
Thanks Robert,

You refered me to a Q/A such as:


>How to setup multiple IPs on NIC
>
> Q: I have a windows server with just one NIC and have multiple public IPs for
> different websites. Can I have multiple IPs on one NIC?
>
> A: Yes, the Properties of the NIC>Properties of TCP/IP>Advanced, add additional
> IPs.

Unfortunately, there is no advanced tab under TCP/IP properties. There is an
"Alternate Configuration" tab, but this only comes into play when DHCP is not
available.

Is there another part of the referenced document that applies?

Thanks,
</edg>

Show quoteHide quote
"Robert L [MVP - Networking]" wrote:

> This how to may help,
>
> ipconfig How to setup multiple IPs on NIC How to setup two IPs on a computer How to use MS DHCP to reserve an IP on MAC How to use TCP/IP without installing a NIC ...
>       www.howtonetworking.com/Networking/ipconfig.htm 
>
>
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
> How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
>   "Ed Greenberg" <Ed Greenb***@discussions.microsoft.com> wrote in message news:A92600B6-D1AD-4E97-AA6D-8D4A6546BCF8@microsoft.com...
>   I'd like my Windows XP pro box to be active on two subnets at once. It's not
>   necessary (or even desirable) that it route.
>
>   I'd like to have my standard DHCP address, but also add a static address on
>   another IP network on the same physical media.
>
>   In Unix, this would be:
>   ifconfig eth0 <IP ADDR> up
>   ifconfig eth0:1 <OTHER IP ADDR> up
>
>   Is there any way to accomplish this in Windows XP?
Author
18 Oct 2006 6:48 PM
Robert L [MVP - Networking]
You can't have DHCP assign multiple IP addresses to one NIC in Windows.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
  "Ed Greenberg" <EdGreenb***@discussions.microsoft.com> wrote in message news:D1327E44-6858-4E89-B1F8-0BC8BC330925@microsoft.com...
  Thanks Robert,

  You refered me to a Q/A such as:


  >How to setup multiple IPs on NIC
  >
  > Q: I have a windows server with just one NIC and have multiple public IPs for
  > different websites. Can I have multiple IPs on one NIC?
  >
  > A: Yes, the Properties of the NIC>Properties of TCP/IP>Advanced, add additional
  > IPs.

  Unfortunately, there is no advanced tab under TCP/IP properties. There is an
  "Alternate Configuration" tab, but this only comes into play when DHCP is not
  available.

  Is there another part of the referenced document that applies?

  Thanks,
  </edg>

Show quoteHide quote
  "Robert L [MVP - Networking]" wrote:

  > This how to may help,
  >
  > ipconfig How to setup multiple IPs on NIC How to setup two IPs on a computer How to use MS DHCP to reserve an IP on MAC How to use TCP/IP without installing a NIC ...
  >       www.howtonetworking.com/Networking/ipconfig.htm 
  >
  >
  > Bob Lin, MS-MVP, MCSE & CNE
  > Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
  > How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
  >   "Ed Greenberg" <Ed Greenb***@discussions.microsoft.com> wrote in message news:A92600B6-D1AD-4E97-AA6D-8D4A6546BCF8@microsoft.com...
  >   I'd like my Windows XP pro box to be active on two subnets at once. It's not
  >   necessary (or even desirable) that it route.
  >
  >   I'd like to have my standard DHCP address, but also add a static address on
  >   another IP network on the same physical media.
  >
  >   In Unix, this would be:
  >   ifconfig eth0 <IP ADDR> up
  >   ifconfig eth0:1 <OTHER IP ADDR> up
  >
  >   Is there any way to accomplish this in Windows XP?
Author
18 Oct 2006 11:57 PM
Ed Greenberg
Robert,

Thanks again for your assistance, but I think we're still a bit apart on the
concept I'm looking for.

DHCP vs Static doesn't enter into it. What I need is:

1. The interface comes up and gets an address according to it's
configuration - static, dhcp, whatever.
2. The interface also has a second static address at the same time -- kind
of like a virtual interface.
3. The routing tables send traffic to the appropriate interface.
4. Processes can bind to listen to either or both of the addresses.

See below an example of the configuration I'd like. Unfortunately, this is
from Linux, not from Windows. Note that the interrupt and base address of
both eth0 and eth0:1 are the same.

This allows the machine to talk to other machines on both the 10.1.10.0 and
192.168.1.0 networks operating on the same physical layer.

A good example of the need for this is that you are running on one network,
and you bring up a device that has a static address on another network. You
want to talk to the second device long enough to re-address it.

[edg@hedwig ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:5A:6B:CA:04 
          inet addr:10.1.10.254  Bcast:10.1.10.255  Mask:255.255.255.0
          inet6 addr: fe80::210:5aff:fe6b:ca04/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:58338207 errors:1 dropped:0 overruns:0 frame:1
          TX packets:58372602 errors:0 dropped:0 overruns:0 carrier:1
          collisions:7 txqueuelen:1000
          RX bytes:2073836996 (1.9 GiB)  TX bytes:3859763677 (3.5 GiB)
          Interrupt:11 Base address:0xec00

eth0:1    Link encap:Ethernet  HWaddr 00:10:5A:6B:CA:04 
          inet addr:192.168.1.106  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0xec00

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:59480 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14515349 (13.8 MiB)  TX bytes:14515349 (13.8 MiB)

[edg@hedwig ~]$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
10.1.10.0       *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         10.1.10.1       0.0.0.0         UG    0      0        0 eth0
[edg@hedwig ~]$
Author
28 Dec 2006 11:13 PM
Kristofer
I have the same problem.

I.E. I have one NIC that uses two ips on two diffrent subnets. The first IP
(dynamic) I get from a DHCP server that I don't control. The second IP is a
static that I set (on another subnet to access other local network devices).
I can get around this by receiving the first IP from the DHCP server and
after that change all the settings manually. However, as a result, my IP
lease from the DHCP server expires after a certain amount of time.

This is a temporary NETSH script that has to be executed every time the IP
lease expires:
#start

pushd interface ip

set address name="Local Area Connection" source=dhcp
set dns name="Local Area Connection" source=dhcp
set wins name="Local Area Connection" source=dhcp

set address name="Local Area Connection" source=static addr="first ip"
mask=255.255.252.0
add address name="Local Area Connection" addr="second ip" mask=255.255.255.0
set address name="Local Area Connection" gateway="gateway ip" gwmetric=0
set dns name="Local Area Connection" source=static addr="first dns ip"
add dns name="Local Area Connection" addr="another dns ip" index=2

popd

#end
----

Please note that both DNS servers are received from the DHCP server.

So my question is that if there is a better way to do this in Windows XP?
Cincerely Kristofer







Show quoteHide quote
"Robert L [MVP - Networking]" wrote:

> This how to may help,
>
> ipconfig How to setup multiple IPs on NIC How to setup two IPs on a computer How to use MS DHCP to reserve an IP on MAC How to use TCP/IP without installing a NIC ...
>       www.howtonetworking.com/Networking/ipconfig.htm 
>
>
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
> How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
>   "Ed Greenberg" <Ed Greenb***@discussions.microsoft.com> wrote in message news:A92600B6-D1AD-4E97-AA6D-8D4A6546BCF8@microsoft.com...
>   I'd like my Windows XP pro box to be active on two subnets at once. It's not
>   necessary (or even desirable) that it route.
>
>   I'd like to have my standard DHCP address, but also add a static address on
>   another IP network on the same physical media.
>
>   In Unix, this would be:
>   ifconfig eth0 <IP ADDR> up
>   ifconfig eth0:1 <OTHER IP ADDR> up
>
>   Is there any way to accomplish this in Windows XP?