Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#337613 - 27/09/2010 14:00 Windows 7, static and DHCP IP on one NIC?
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
It looks like the networking rewrite in Vista took out an old (hacky via registry) feature that allowed Windows to do what any other OS allows, assignment of a secondary static IP to a network interface with an active DHCP IP.

Anyone know a way to still do this under Windows 7? My situation is that I want to configure Synergy between my Mac and PC with a static IP to avoid issues with my DHCP IP changing. The DNS servers here aren't the quickest things to update (my IP change from friday still isn't showing up properly), so I figure just hardcoding IPs for Synergy will be the most reliable setup.

Keep in mind the "Alternate Configuration" tab that shows up in the TCP/IP properties is only for setting what IP is used when a DHCP server is unavailable. It isn't for having both a static and DHCP IP active at the same time.

Top
#337614 - 27/09/2010 14:43 Re: Windows 7, static and DHCP IP on one NIC? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
I had, in the past, used that "Alternate Configuration" tab for the very thing you want to use it for: Simultaneous DHCP and fixed addressing. Are you *certain* that it doesn't work for your purposes now?
_________________________
Tony Fabris

Top
#337616 - 27/09/2010 15:40 Re: Windows 7, static and DHCP IP on one NIC? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Does win7 permit doing this with an ifconfig command?

Eg. (Linux example):

ifconfig eth0:1 10.1.0.5

Top
#337623 - 27/09/2010 17:00 Re: Windows 7, static and DHCP IP on one NIC? [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Originally Posted By: tfabris
Are you *certain* that it doesn't work for your purposes now?

Yep. They fixed the "bug" where the Alternate Configuration was active when the primary configuration was talking to a DHCP server. The machine failed to ping it's own alternate config IP when I tried that.

Originally Posted By: mlord
Does win7 permit doing this with an ifconfig command?

Nope. It does have something similar now, but if I try and use the add command on the existing interface, it shuts off DHCP and uses my config as the primary. Subsequent add commands then properly add the additional IPs to the interface. It doesn't appear to support the :1 nomenclature that Linux uses.

The Windows 7 command is "netsh interface ipv4 add address"

Top
#337627 - 27/09/2010 17:11 Re: Windows 7, static and DHCP IP on one NIC? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
Originally Posted By: drakino
Yep. They fixed the "bug" where the Alternate Configuration was active when the primary configuration was talking to a DHCP server. The machine failed to ping it's own alternate config IP when I tried that.


Damn. Blast.

Any idea which version of Windows that happened in, just in case I ever run into a situation where I need to use the unrepaired version of windows to perform that trick?
_________________________
Tony Fabris

Top
#337629 - 27/09/2010 17:17 Re: Windows 7, static and DHCP IP on one NIC? [Re: tfabris]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Vista changed it, probably with the entire network rewrite that came in that dropped the tried and true evolved BSD networking code for internal Microsoft crap. One of the reasons Vista was on my do not use list, the network stack just did some stupid things when it was in a mixed network environment. The paid service pack to Vista seems to have helped quite a bit, but it's still not back to where it was in XP.

*edit* Gah, keep forgetting the BSD TCP/IP pieces were only in until NT 3.5 timeframe, back when the network stack was licensed after the OS/2 divorce with IBM. Anyhow, still a lot of issues came in when MS rewrote it for Vista.


Edited by drakino (27/09/2010 17:36)

Top
#337667 - 28/09/2010 02:19 Re: Windows 7, static and DHCP IP on one NIC? [Re: drakino]
gbeer
carpal tunnel

Registered: 17/12/2000
Posts: 2665
Loc: Manteca, California
Are there not, other ways to get a vista system to believe packets destined for some other IP should be accepted instead.
_________________________
Glenn

Top
#337673 - 28/09/2010 09:46 Re: Windows 7, static and DHCP IP on one NIC? [Re: gbeer]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
I don't think so.

Windows server will do all that using its own router features, including, i believe, multiple IPs on one NIC.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top