IPv6 Fixed Address Using Ip Token

Home » CentOS » IPv6 Fixed Address Using Ip Token
CentOS 2 Comments

I’m about to publish a fixed IPv6 address and I understand I can use the ip token command to lock the host part of the RA-assigned address to a fixed value. But I can’t see an obvious place to configure this. The logical place would be in the ifcfg- file. Is there someplace else I
should set this? NetworkManager? It looks like the new systemd-networkd has support for this but my interfaces seem to be configured from the old initscripts and the new systemd-networkd isn’t installed.

2 thoughts on - IPv6 Fixed Address Using Ip Token

  • It looks like there is no support for IPv6 tokenized identifiers in the existing ifcfg scripting (report an upstream bug?) so you would have to wait for Red Hat to produce a solution, patch the scripts yourself (set the interface’s token just before bringing the interface up in ifup-ipv6) or remove their use and write your own systemd.network(5)
    unit for all the interfaces — perhaps one of the two latter things while waiting for the former.

    /mark

  • But it looks like the ifcfg-rh module for NetworkManager will use an IPV6_TOKEN line, if present, e.g.,

    /etc/sysconfig/network-scripts/ifcfg-ens0:

    IPV6_TOKEN=::53

    /mark