Adapter with DHCP AND static IPs?

  • Thread starter Thread starter danielfernandes.mail
  • Start date Start date
D

danielfernandes.mail

Hi there


I would like to know if it's possible in any way to set an adapter to
used DHCP to retrieve its IP and to add as well to the same adapter
other IPs.
I have tried using the netsh command to do this but adding any static
IP to an interface would remove the previously entered setting that
sets it to use DHCP.


The reason I am asking this is because I have an ADSL modem (DLink
DSL300T) with multiple public IPs.


I had to do the following to make this work (assuming my primary public

IP is xxx.xxx.xxx.5)
- On DSL300T :
route add xxx.xxx.xxx.4 gw xxx.xxx.xxx.5
route add xxx.xxx.xxx.3 gw xxx.xxx.xxx.5


This will allow the modem to listen to xxx.xxx.xxx.4 and .3 IPs to be
routed to the primary IP.
Modem has an internal IP of 192.168.1.1


- On Windows external adapter :
primary IP : 192.168.1.10
mask : 192.168.1.1
gateway : 255.255.255.0


... and additional IPs as follow : xxx.xxx.xxx.5,
xxx.xxx.xxx.4 and xxx.xxx.xxx.3 with mask of 255.255.255.248.


I tried as well the following which if I remember right
usually works :
primary IP : xxx.xxx.xxx.5
mask : 255.255.255.248
gateway : xxx.xxx.xxx.5


... and additional IPs as follow : xxx.xxx.xxx.4 and
xxx.xxx.xxx.3 with mask of 255.255.255.248 and 192.168.1.10 with mask
of 255.255.255.0


- on RRAS :
Added range xxx.xxx.xxx.3 to xxx.xxx.xxx.5


Everything seems to work, I can access both these 3 public IPs from the

outside just fine.


The problem is that for some reason the communication between the
external adapter to the modem will fail after a couple of days (a ping
to 192.168.1.1 would be unsuccessful).


Disabling/Enabling external adapter or restarting RRAS doesn't seem to
help.
The only way I found was to set external adapter to use DHCP
momentarily and then switch back to the settings described above.


This is why I asked whether it is possible to have an adapter to use
DHCP for its primary IP and have additional IPs assigned to it as well.



Any help greatly appreciated!
Thanks
Daniel
 
I already have a second NIC but that doesn't help me in this case.
What I really need is for my external NIC to use DHCP and a static IP
address to solve my strange problem with the ADSL modem..
 
A NIC is either static OR DHCP, you can't have it both ways. You will
either need to use 2 adapters, or set it STATIC to both the IP addresses
or configure whatever is requiring the static IP to point to the one
assigned via DHCP.
 
Bob

I came across some registry hack that would allow addition of a static
IP to a NIC but I am not sure if this is still supported in Windows
2003.
The problem I've got is that when my ADSL connection is truly dead (not
exactly sure of what causes this) only forcing the NIC to use (even
temporarily) DHCP and then set back all settings as static fixes the
problem.

Dan
 
With Win2000/XP in control_panel_Ethernet Prop/Advanced you can add more
static IP & gateway to the same NIC, but not dynamic IP, unless within
Windows tools. Wherever try for some utilities that some manufacturers
build for the NIC, ie Sis, 3Com & Intel Nics.
¿Hablas Español? En el grupo de Win2000 Español se pone buena la cosa.
 
Back
Top