Re: Using different hostnames on different interfaces (with dhclient)
- From: Stefan Puiu <stefan puiu gmail com>
- To: Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: Using different hostnames on different interfaces (with dhclient)
- Date: Thu, 26 Jan 2012 12:06:07 +0200
Hey, this works, thanks a lot!
One correction though: dhcp-send-hostname should be "true", and
dhcp-hostname should be set to the desired hostname. After googling a
bit I found the keyfile ini file format here:
http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html
Stefan.
On Wed, Jan 25, 2012 at 9:15 PM, Dan Williams <dcbw redhat com> wrote:
> So it looks like NM will use the system hostname if the connection
> doesn't provide one (ie, option #1), overriding the send-hostname from
> the config file. Which kinda sucks, I wasn't expecting that, but due
> some internal architecture we can't distinguish between the system
> hostname and the one from the connection config when DHCP is being
> started. That's fixable though and we should do it; the goal is for
> options in the dhclient config files to override the system hostname
> (but not configuration hostname as specified below).
>
> For option 1, if your connection is specified using keyfiles (ie, it's
> in /etc/NetworkManager/system-connections you can add
> "dhcp-send-hostname=<desired hostname>" key to the [ipv4] block and that
> should work.
>
> Dan
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]