public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] DHCP - specific inet no - how to
@ 2012-11-08  7:36 Helmut Jarausch
  2012-11-08  8:18 ` Andrea Conti
  0 siblings, 1 reply; 9+ messages in thread
From: Helmut Jarausch @ 2012-11-08  7:36 UTC (permalink / raw
  To: gentoo-user

Hi,

I have a small local network with local Inet numbers 192.168.1.x .
How can I request a specific Inet number for a given device  
(PC,printer).
Normally, a device tries to get the previous inet number, but sometime  
this
changes. I'd like to assign fix adresses since the net is used by only  
a few device.
But I cannot configure the DHCP server myself since this is provided by  
my internet provider.

Many thanks for a hint,
Helmut.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08  7:36 [gentoo-user] DHCP - specific inet no - how to Helmut Jarausch
@ 2012-11-08  8:18 ` Andrea Conti
  2012-11-08  8:32   ` Helmut Jarausch
  2012-11-08  8:45   ` Neil Bothwick
  0 siblings, 2 replies; 9+ messages in thread
From: Andrea Conti @ 2012-11-08  8:18 UTC (permalink / raw
  To: gentoo-user

Hello,

> Normally, a device tries to get the previous inet number, but sometime this
> changes.

DHCP clients can neither request nor suggest a specific IP address, so
they don't "try to get" anything. It's just the DHCP server giving out
the previous IP to the same client, either by chance or because the
existing lease hasn't expired yet.

> But I cannot configure the DHCP server myself since this is provided by
> my internet provider.

Then you're basically out of luck. Since you have few devices and those
devices are under your control, just forget about DHCP and configure
them statically.

andrea


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08  8:18 ` Andrea Conti
@ 2012-11-08  8:32   ` Helmut Jarausch
  2012-11-08  8:45   ` Neil Bothwick
  1 sibling, 0 replies; 9+ messages in thread
From: Helmut Jarausch @ 2012-11-08  8:32 UTC (permalink / raw
  To: gentoo-user

On 11/08/2012 09:18:35 AM, Andrea Conti wrote:
> Hello,
> 
> > Normally, a device tries to get the previous inet number, but  
> sometime this
> > changes.
> 
> DHCP clients can neither request nor suggest a specific IP address, so
> they don't "try to get" anything. It's just the DHCP server giving out
> the previous IP to the same client, either by chance or because the
> existing lease hasn't expired yet.
> 
> > But I cannot configure the DHCP server myself since this is  
> provided by
> > my internet provider.
> 
> Then you're basically out of luck. Since you have few devices and  
> those
> devices are under your control, just forget about DHCP and configure
> them statically.

Thanks!
But I get the nameserver of DHCP, as well. Can this be fetched from  
DHCP since this may change?

 From man dhclient
  A DHCP client may request an address from this pool,  and  then
  use  it  on  a temporary basis for communication on network
I've just not found out howto.

Helmut.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08  8:18 ` Andrea Conti
  2012-11-08  8:32   ` Helmut Jarausch
@ 2012-11-08  8:45   ` Neil Bothwick
  2012-11-08 11:13     ` Helmut Jarausch
  2012-11-12 18:49     ` Andrea Conti
  1 sibling, 2 replies; 9+ messages in thread
From: Neil Bothwick @ 2012-11-08  8:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:

> > Normally, a device tries to get the previous inet number, but
> > sometime this changes.  
> 
> DHCP clients can neither request nor suggest a specific IP address, so
> they don't "try to get" anything. It's just the DHCP server giving out
> the previous IP to the same client, either by chance or because the
> existing lease hasn't expired yet.

dhcpcd has a --resquest option to do just this. It only works if the
address is available and if the server is returning a different address
now it may be that your preferred address is in use.

Have you considered running a local DHCP server, like dnsmasq?


-- 
Neil Bothwick

WinErr 01C: Uncertainty error - Uncertainty may be inadequate.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08  8:45   ` Neil Bothwick
@ 2012-11-08 11:13     ` Helmut Jarausch
  2012-11-08 11:48       ` Neil Bothwick
  2012-11-08 13:15       ` J. Roeleveld
  2012-11-12 18:49     ` Andrea Conti
  1 sibling, 2 replies; 9+ messages in thread
From: Helmut Jarausch @ 2012-11-08 11:13 UTC (permalink / raw
  To: gentoo-user

On 11/08/2012 09:45:34 AM, Neil Bothwick wrote:
> On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:
> 
> > > Normally, a device tries to get the previous inet number, but
> > > sometime this changes.
> >
> > DHCP clients can neither request nor suggest a specific IP address,  
> so
> > they don't "try to get" anything. It's just the DHCP server giving  
> out
> > the previous IP to the same client, either by chance or because the
> > existing lease hasn't expired yet.
> 
> dhcpcd has a --resquest option to do just this. It only works if the
> address is available and if the server is returning a different  
> address
> now it may be that your preferred address is in use.
> 
> Have you considered running a local DHCP server, like dnsmasq?

Thanks Neil!
I have router (provided by my internet provider) which can be accessed  
by WLAN.
Since I cannot modify/configure this router how can I make use of  
dnsmasq ?

Helmut.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08 11:13     ` Helmut Jarausch
@ 2012-11-08 11:48       ` Neil Bothwick
  2012-11-08 13:15       ` J. Roeleveld
  1 sibling, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2012-11-08 11:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

On Thu, 08 Nov 2012 12:13:56 +0100, Helmut Jarausch wrote:

> > Have you considered running a local DHCP server, like dnsmasq?  
> 
> I have router (provided by my internet provider) which can be accessed  
> by WLAN.
> Since I cannot modify/configure this router how can I make use of  
> dnsmasq ?

Good question! Can you not even disable the DHCP server in the router?


-- 
Neil Bothwick

Inland Revenue: We've got what it takes to take what you've got!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08 11:13     ` Helmut Jarausch
  2012-11-08 11:48       ` Neil Bothwick
@ 2012-11-08 13:15       ` J. Roeleveld
  2012-11-09 19:17         ` Mick
  1 sibling, 1 reply; 9+ messages in thread
From: J. Roeleveld @ 2012-11-08 13:15 UTC (permalink / raw
  To: gentoo-user

On Thursday, November 08, 2012 12:13:56 PM Helmut Jarausch wrote:
> On 11/08/2012 09:45:34 AM, Neil Bothwick wrote:
> > On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:
> > > > Normally, a device tries to get the previous inet number, but
> > > > sometime this changes.
> > > 
> > > DHCP clients can neither request nor suggest a specific IP address,
> > 
> > so
> > 
> > > they don't "try to get" anything. It's just the DHCP server giving
> > 
> > out
> > 
> > > the previous IP to the same client, either by chance or because the
> > > existing lease hasn't expired yet.
> > 
> > dhcpcd has a --resquest option to do just this. It only works if the
> > address is available and if the server is returning a different
> > address
> > now it may be that your preferred address is in use.
> > 
> > Have you considered running a local DHCP server, like dnsmasq?
> 
> Thanks Neil!
> I have router (provided by my internet provider) which can be accessed
> by WLAN.
> Since I cannot modify/configure this router how can I make use of
> dnsmasq ?
> 
> Helmut.

Are you not able to use your own router?

Being able to configure the DHCP and NAT-configuration of the router is often 
required to get certain software to work. There are multi-player games that 
need ports forwarded to be able to play with other people over the internet. 
(Just to name a common scenario)

--
Joost


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08 13:15       ` J. Roeleveld
@ 2012-11-09 19:17         ` Mick
  0 siblings, 0 replies; 9+ messages in thread
From: Mick @ 2012-11-09 19:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 2113 bytes --]

On Thursday 08 Nov 2012 13:15:27 J. Roeleveld wrote:
> On Thursday, November 08, 2012 12:13:56 PM Helmut Jarausch wrote:
> > On 11/08/2012 09:45:34 AM, Neil Bothwick wrote:
> > > On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:
> > > > > Normally, a device tries to get the previous inet number, but
> > > > > sometime this changes.
> > > > 
> > > > DHCP clients can neither request nor suggest a specific IP address,
> > > 
> > > so
> > > 
> > > > they don't "try to get" anything. It's just the DHCP server giving
> > > 
> > > out
> > > 
> > > > the previous IP to the same client, either by chance or because the
> > > > existing lease hasn't expired yet.
> > > 
> > > dhcpcd has a --resquest option to do just this. It only works if the
> > > address is available and if the server is returning a different
> > > address
> > > now it may be that your preferred address is in use.
> > > 
> > > Have you considered running a local DHCP server, like dnsmasq?
> > 
> > Thanks Neil!
> > I have router (provided by my internet provider) which can be accessed
> > by WLAN.
> > Since I cannot modify/configure this router how can I make use of
> > dnsmasq ?
> > 
> > Helmut.
> 
> Are you not able to use your own router?
> 
> Being able to configure the DHCP and NAT-configuration of the router is
> often required to get certain software to work. There are multi-player
> games that need ports forwarded to be able to play with other people over
> the internet. (Just to name a common scenario)
> 
> --
> Joost

Do you get a GUI when go to your routers LAN address with a browser, or a 
request for username when you telnet/ssh to it?  If yes, you can try the 
various default passwords to see if you can log in, like admin, password, and 
others that google may advise as suitable candidates.

Then you can try to set it up as a bridged-modem and do the routing and PPPoE 
authentication using a separate router as already advised.

If this fails then contacting your ISP for advice on configuring your router 
may also be an option.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] DHCP - specific inet no - how to
  2012-11-08  8:45   ` Neil Bothwick
  2012-11-08 11:13     ` Helmut Jarausch
@ 2012-11-12 18:49     ` Andrea Conti
  1 sibling, 0 replies; 9+ messages in thread
From: Andrea Conti @ 2012-11-12 18:49 UTC (permalink / raw
  To: gentoo-user


> dhcpcd has a --resquest option to do just this.

One never stops learning...

> It only works if the
> address is available and if the server is returning a different address
> now it may be that your preferred address is in use.

It also depends on the dhcp server understanding the request. I don't
know if the option is actually a required part of the DHCP protocol, and
as implemented even in cheap telco routers... although many routers
these days run some sort of embedded linux with dnsmasq.

andrea


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-12 18:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08  7:36 [gentoo-user] DHCP - specific inet no - how to Helmut Jarausch
2012-11-08  8:18 ` Andrea Conti
2012-11-08  8:32   ` Helmut Jarausch
2012-11-08  8:45   ` Neil Bothwick
2012-11-08 11:13     ` Helmut Jarausch
2012-11-08 11:48       ` Neil Bothwick
2012-11-08 13:15       ` J. Roeleveld
2012-11-09 19:17         ` Mick
2012-11-12 18:49     ` Andrea Conti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox