Re: How to configure NM using dhclient-script file

That's rather concise answers.

28.11.2020 06:00, Mars via networkmanager-list пишет:
Hi Thomas,

Much thanks for your reply,  my problem is that NM cannot deal with the DHCPv6 message with IA_PD option,

It is unclear what you mean here. NM supports IA_PD for connection
sharing, it will use prefixes provided by IA_PD on upstream interface to
configure downstream interface. Downstream interface (or more precisely
- connection active on downstream interface) has to be configured with

You need to describe what you have configured, what results did you
expect and what results you observe before any useful comment can be made.

the default IA_NA option with NM cannot  generate the right prefixlen, just configuring 128 .

Is it separate issue or somehow connected to the previous one?

DHCPv6 does not provide address prefix length at all. Every address
returned by "IA Address" DHCPv6 option has prefix 128.

Again you need to explain what you observe and what exactly does not
work or works incorrectly and why you think it is related to address
prefix length.

Best Regards

At 2020-11-27 17:54:26, "Thomas Haller" <thaller redhat com> wrote:
On Fri, 2020-11-27 at 09:48 +0800, Mars via networkmanager-list wrote:
NM uses nm-dhcp-helper as network configuration script for dhclient
as follows , how to confiure dhclient-script file within NM ?

/sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf
/var/run/ -lf /var/lib/NetworkManager/dhclient- -cf
/var/lib/NetworkManager/dhclient-eth0.conf eth0
Thank you very much for any help you can provide.


You cannot (*). When NetworkManager runs dhclient, then this is mostly
an implementation detail for doing DHCP. Sure, it honors dhclient's
config files in /etc/dhcp and it also dispatches the dhclient hooks.
That is very powerful (since it's just arbitrary scripts that get
executed), but it's also undesirable because the funcitonality is not
available with dhcp=internal plugin and not available via
NetworkManager API and NetworkManager mostly doens't know what is
happening there. But in general, this is not supposed to give the user
direct access to dhclient.

(*) well, of course you can do all kind of hacky solutions, like
replacing /usr/libexec/nm-dhcp-helper with a wrapper script.

It might be better to explain what you ultimately want to do. Instead
of asking how to do something that you think might be a solution for
you (without explainging what your actual problem is).


networkmanager-list mailing list
networkmanager-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]