LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to fool my ISP into accepting a static ip address, when it delivers via DHCP? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-fool-my-isp-into-accepting-a-static-ip-address-when-it-delivers-via-dhcp-167763/)

vdemuth 04-08-2004 10:35 AM

How to fool my ISP into accepting a static ip address, when it delivers via DHCP?
 
Hello all you networking gurus'
My Internet access is via adsl to my ISP, who assign my ip address automatically when I login. The only problem with this is that it takes about 2 minutes or so. As the address that I get via DHCP has never varied during countless boots/logins/ifup eth0 commands, is it possible for me to simply assign my DHCP address as being static. I have tried to do this, but when I do, the only net address I can then get is either my router on 10.0.0.2, or my ISP. All other addresses seem to be blocked. Is this a clever trick by my ISP, and if so, is there a way around it?

Hardware router at 10.0.0.2 which acts also as nameserver
nameserver resolution passed via router to:-
213.162.97.253 & 213.162.97.66

IP Address given by ISP 192.168.254.2
Subnet 255.255.255.0
Gateway 192.168.254.254

ifconfig eth0 gives

inet addr: 10.0.0.13 Bcast:255.255.255.255 Mask: 255.0.0.0

My ISP tells me that if I set my NIC to my IP Address then it won't work. I haven't tried this yet as I am inclined to believe that they must be right.

TIA

paulsm4 04-08-2004 11:31 AM

Your ISP is correct.

If your service agreement is for DHCP, you get DHCP. If you happen to get the same IP address, that's merely coincidence due to the vagaries of the way their address leasing/address pools are set up.

trickykid 04-08-2004 11:34 AM

You can't assign a Static IP when your ISP is issuing you a DHCP.

And how are you getting an IP of 192.168.254.2 from your ISP, that is a private LAN IP which is not reachable on the net. Are you going thru a router or some kind, etc?

vdemuth 04-12-2004 11:07 AM

Fixed it. My ISP got me to alter my router settings from NAT to NAPT. Don't know exactly what this does. But now get my IP address in 3-4 seconds.


All times are GMT -5. The time now is 09:03 AM.