~alpine/devel

1

Fwd: Re: [alpine-devel] [Alpine 2.4] Network Interface Hotplugging Detection

Details
Message ID
<5094F760.4080604@arcor.de>
Sender timestamp
1351939936
DKIM signature
missing
Download raw message
ReHi Natanael,

> From the man page:
> 
>      static value
>              Configures a static value.  If you set ip_address then
>      dhcpcd will not attempt to obtain a lease and just use the value
>      for the address with an infinite lease time.
> 
>              Here is an example which configures a static address,
>              routes and dns.
>                    interface eth0
>                    static ip_address=192.168.0.10/24
>                    static routers=192.168.0.1
>                    static domain_name_servers=192.168.0.1
While dhcpcd accepts multiple static ip_address statements, only the
last statement prevails nullifying all previous statements. Therefore, I
see no way to use dhcpcd to assign more than one ip address to a single
interface.

> Looks like it also has some support for ipv6. I dont know about static.
dhcpcd in deed has IPv6 RA (router advertisement) and RS (router
solicitation) capability for SLAAC (stateless address autoconfiguration)
implemented. This can be used to assign an IPv6 address to a local
interface with the help of an DHCPv6 server, that can even be installed
on the same machine utilizing local interfacing (localhost).

The IPv6 implementation of dhcpcd allows only a single IPv6 address per
interface. Furthermore, it is a highly unstructured (and therefore
unrecommended) way to assign the IPv4 address to an interface using a
static statement in /etc/dhcpcd.conf and retriving an IPv6 address for
the same interface through IPv6 RS/RA as part of the configuration of a
DHCP server.

Regards, Tiger






---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

Re: [alpine-devel] [Alpine 2.4] Network Interface Hotplugging Detection

Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20121104162856.37e4e31a@ncopa-laptop.res.nor.wtbts.net>
In-Reply-To
<5094F760.4080604@arcor.de> (view parent)
Sender timestamp
1352042936
DKIM signature
missing
Download raw message
On Sat, 03 Nov 2012 11:52:16 +0100
Der Tiger <der.tiger.alpine@arcor.de> wrote:

> While dhcpcd accepts multiple static ip_address statements, only the
> last statement prevails nullifying all previous statements.
> Therefore, I see no way to use dhcpcd to assign more than one ip
> address to a single interface.

...
 
> The IPv6 implementation of dhcpcd allows only a single IPv6 address
> per interface. Furthermore, it is a highly unstructured (and therefore
> unrecommended) way to assign the IPv4 address to an interface using a
> static statement in /etc/dhcpcd.conf and retriving an IPv6 address for
> the same interface through IPv6 RS/RA as part of the configuration of
> a DHCP server.

Thanks for clarifying. Also, I'd also guess that when using static ip
is a case when you don't want the ip address removed when cable is
unplugged.

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)