DCHP, NetworkManager and Random IPv6 addresses

Mark Elkins mje at posix.co.za
Mon Dec 3 16:49:44 CET 2012


On Mon, 2012-12-03 at 16:41 +0200, JP Viljoen wrote:
> On 03 Dec 2012, at 4:38 PM, Mark Elkins <mje at posix.co.za> wrote:
> > Just a tad off topic, but...
> > 
> > on a Gentoo Laptop, I have NetworkManager 0.9.4.0 (compiled with dhcpcd)
> > connecting to wired and wireless networks. I also have random IPv6
> > generation working (nice!).
> > 
> > Before NetworkManager, the Hooks in dhcpcd used to work just fine but
> > now dhcpcd is called with the "-c /usr/libexec/nm-dhcp-client.action"
> > option so hooks are ignored.
> > 
> > My hook was to update the forward DNS with the current IP addresses
> > (both v4 and v6) and I kinda miss that functionality.
> > 
> > Any suggestions.
> 
> '''/etc/NetworkManager/dispatcher.d''', from the man page.
> 
> -J

Good clue (though I've been there)
Works for wired but not wireless. Environmental variables are set for
wired configs - eg "DHCP4_IP_ADDRESS" but don't exist when the same
simple script is called via a Wireless interface coming up.
I do see the info in '/var/log/messages' but I think at a later stage of
the whole process.
I was also hoping that as I saw in my /var/log/messages files references
to Router Advertisements, that my IPv6 addresses might also be available
in the shell environment - but alas....
(not running DHCPv6 daemon on my network yet?)

Also, any clues to building a custom resolv.conf (half from DHCP, half
static)?

-- 
  .  .     ___. .__      Posix Systems - (South) Africa
 /| /|       / /__       mje at posix.co.za  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6147 bytes
Desc: not available
URL: <https://lists.cluenet.de/pipermail/ipv6-ops/attachments/20121203/ac6e5e87/attachment.bin>


More information about the ipv6-ops mailing list