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 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