Two IP addresses

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
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?
 
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>
 
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
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>
 
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 ~]$
 
Back
Top