LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2004, 10:35 AM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
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
 
Old 04-08-2004, 11:31 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 04-08-2004, 11:34 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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?
 
Old 04-12-2004, 11:07 AM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I disable DHCP now I am using static address? rosco136 Linux - Networking 4 08-01-2005 02:53 AM
Static IP Address with DHCP server control taylortbb Linux - Networking 1 06-28-2005 01:43 PM
I want static IP, but have to use DHCP (preffered/desired address) homa2001 Linux - Networking 13 02-10-2005 01:47 AM
computer switches from static to dhcp address (automagically?) cyberpuerka Linux - Networking 1 09-03-2004 11:29 AM
Static address works but DHCP doesn't... devahl Linux - Networking 1 05-03-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration