Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.mobile.android > #62098 > unrolled thread
| Started by | Johann Beretta <beretta@nun-ya-bizness.com> |
|---|---|
| First post | 2019-06-09 00:26 -0700 |
| Last post | 2019-06-09 10:13 -0400 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.mobile.android
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? Johann Beretta <beretta@nun-ya-bizness.com> - 2019-06-09 00:26 -0700
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? "Carlos E.R." <robin_listas@es.invalid> - 2019-06-09 12:14 +0200
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? Johann Beretta <beretta@nun-ya-bizness.com> - 2019-06-11 00:07 -0700
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? "Carlos E.R." <robin_listas@es.invalid> - 2019-06-11 10:04 +0200
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-06-09 12:21 +0200
Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? nospam <nospam@nospam.invalid> - 2019-06-09 10:13 -0400
| From | Johann Beretta <beretta@nun-ya-bizness.com> |
|---|---|
| Date | 2019-06-09 00:26 -0700 |
| Subject | Re: How does setting a static IP on a mobile device prevent linux router from assigning that IP address? |
| Message-ID | <qdicaj$aj0$1@dont-email.me> |
On 4/11/17 3:10 PM, Tomos Davies wrote:
> How does setting a static IP on a linux Android mobile device prevent the
> linux router from assigning that IP address to another device?
>
<snip>
It doesn't and if you set a static IP on your device, without telling
the router, you risk an IP address conflict and can end up with
colliding packets, or packets addressed for one device that are
sporadically routed to two different devices. IP address conflicts are
miserable to work with.
Routers of any sophistication will allow you to set your DHCP range.
Using this method you could set, for example, 10.0.0.100 to 10.0.0.200
for the DHCP pool, and have 10.0.0.2 (assuming 10.0.0.1 is for the
router itself) through 10.0.0.99 available for static assignments.
However, you'll have to remember what addresses you have assigned. If
you forget and assign the same address to two different devices, you'll
have severe problems.
Another method (and much more "safe") is to simply mark certain IPs in
your pool to only be assigned to particular MAC addresses. This is known
as address reservation. Your Android device will simply be given the
same address, by the router, every single time it connects to the
network. For all intents and purposes, you'll have a static address,
but you will have no risk of address collisions.
/ip dhcp-server lease
add address=10.10.10.237 always-broadcast=yes
client-id=1:18:a6:f7:e7:41:ef \
comment=Harper lease-time=1d mac-address=18:A6:F7:E7:41:EF server=\
dhcp-server
add address=10.10.10.227 always-broadcast=yes client-id=1:c0:3f:e:c5:27:65 \
comment="Hradecky" lease-time=1d mac-address=C0:3F:0E:C5:27:65 \
server=dhcp-server
That particular block of text is how you'd reserve addresses on a
MikroTik router (as an example only) for two separate devices
One of the great joys of RouterOS (Mikrotik's Router Operating System),
for me, is the ability to COMMENT everything... In that particular
example, Harper is given a "static address" of 10.10.10.237. In reality,
it's a dynamic lease, but it is ONLY and ALWAYS assigned to his router.
The lease time is set to 1d (day) but can be just about any value you
want. I have, however, seen problems with leases that exceed 14 days as
some devices simply aren't able to deal with lease times that long.
I'm fairly certain the lease time is sent in some value of seconds and
once you get to two weeks you're handing out leases of 1,209,600 seconds
and some devices may not be able to work with that large of a number.
[toc] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-06-09 12:14 +0200 |
| Message-ID | <lp2vsf-76s.ln1@Telcontar.valinor> |
| In reply to | #62098 |
On 09/06/2019 09.26, Johann Beretta wrote: > On 4/11/17 3:10 PM, Tomos Davies wrote: >> How does setting a static IP on a linux Android mobile device prevent the >> linux router from assigning that IP address to another device? >> > <snip> > > It doesn't and if you set a static IP on your device, without telling > the router, you risk an IP address conflict and can end up with > colliding packets, or packets addressed for one device that are > sporadically routed to two different devices. IP address conflicts are > miserable to work with. While your post is interesting, why write now, after the thread died two years ago? :-) -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Johann Beretta <beretta@nun-ya-bizness.com> |
|---|---|
| Date | 2019-06-11 00:07 -0700 |
| Message-ID | <qdnjva$t4k$4@dont-email.me> |
| In reply to | #62101 |
On 6/9/19 3:14 AM, Carlos E.R. wrote: <snip> > > While your post is interesting, why write now, after the thread died two > years ago? :-) > > My newsserver had a hiccup and I ended up downloading some ancient articles (back to 2014).. I didn't notice until I had already posted.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-06-11 10:04 +0200 |
| Message-ID | <4u34tf-fdn.ln1@Telcontar.valinor> |
| In reply to | #62184 |
On 11/06/2019 09.07, Johann Beretta wrote: > On 6/9/19 3:14 AM, Carlos E.R. wrote: > <snip> >> >> While your post is interesting, why write now, after the thread died two >> years ago? :-) >> >> > > My newsserver had a hiccup and I ended up downloading some ancient > articles (back to 2014).. I didn't notice until I had already posted. Happens to us all now and then :-) -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Pascal Hambourg <pascal@plouf.fr.eu.org> |
|---|---|
| Date | 2019-06-09 12:21 +0200 |
| Message-ID | <qdimkv$nt$1@saria.nerim.net> |
| In reply to | #62098 |
Le 09/06/2019 à 09:26, Johann Beretta a écrit : > On 4/11/17 3:10 PM, Tomos Davies wrote: >> How does setting a static IP on a linux Android mobile device prevent the >> linux router from assigning that IP address to another device? > > It doesn't From dhcpd.conf manpage : ======================================================================== IP ADDRESS CONFLICT PREVENTION The DHCP server checks IP addresses to see if they are in use before allocating them to clients. It does this by sending an ICMP Echo request message to the IP address being allocated. If no ICMP Echo reply is received within a second, the address is assumed to be free. ======================================================================== Of course this works only if the device with the static address is online and replies to ICMP echo (aka ping) requests. > and if you set a static IP on your device, without telling > the router, you risk an IP address conflict and can end up with > colliding packets Can you explain the relationship between packet collision (physical layer) and IP address conflict (network layer) ?
[toc] | [prev] | [next] | [standalone]
| From | nospam <nospam@nospam.invalid> |
|---|---|
| Date | 2019-06-09 10:13 -0400 |
| Message-ID | <090620191013482160%nospam@nospam.invalid> |
| In reply to | #62102 |
In article <qdimkv$nt$1@saria.nerim.net>, Pascal Hambourg <pascal@plouf.fr.eu.org> wrote: > >> How does setting a static IP on a linux Android mobile device prevent the > >> linux router from assigning that IP address to another device? > > > > It doesn't > > From dhcpd.conf manpage : > ======================================================================== > IP ADDRESS CONFLICT PREVENTION > The DHCP server checks IP addresses to see if they are in use before > allocating them to clients. It does this by sending an ICMP Echo request > message to the IP address being allocated. If no ICMP Echo reply is > received within a second, the address is assumed to be free. > ======================================================================== > > Of course this works only if the device with the static address is > online and replies to ICMP echo (aka ping) requests. it only works if the dhcp server does that. not all do. most do not.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.mobile.android
csiph-web