<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:gsbox39stz@thurston.ru" title="Fireball <gsbox39stz@thurston.ru>"> <span class="fn">Fireball</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - RFE: systemd-networkd: implement setting tokens for .network"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81177">bug 81177</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>RFE: systemd-networkd: implement setting tokens for .link/.netdev
           </td>
           <td>RFE: systemd-networkd: implement setting tokens for .network
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - RFE: systemd-networkd: implement setting tokens for .network"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81177#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - RFE: systemd-networkd: implement setting tokens for .network"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81177">bug 81177</a>
              from <span class="vcard"><a class="email" href="mailto:gsbox39stz@thurston.ru" title="Fireball <gsbox39stz@thurston.ru>"> <span class="fn">Fireball</span></a>
</span></b>
        <pre>Hello again.
I'm setting token for two of my interfaces: eth0 and br0 (they are unrelated,
br0 includes tap1 and veth0).
Setting the token works for eth0 always.

Recently it broke for br0.
So I set Environment=SYSTEMD_LOG_LEVEL=debug for networkd.

My br0.network:

[Match]
Name=br0

[Network]
Description=Network Bridge For VPN
IPv6Token=::32
IPForward=yes

A piece of log during boot (journalctl -b|grep networkd|grep br0):

 systemd-networkd[432]: br0             : loaded bridge
 systemd-networkd[432]: br0             : creating
 systemd-networkd[432]: br0             : flags change: +MULTICAST +BROADCAST
 systemd-networkd[432]: br0             : link 13 added
 systemd-networkd[432]: device 0x7f45925790d0 has devpath
'/devices/virtual/net/br0'
 systemd-networkd[432]: br0             : udev initialized link
 systemd-networkd[432]: br0             : netdev has index 13
 systemd-networkd[432]: br0             : netdev ready
 systemd-networkd[432]: br0             : saved original MTU: 1500
 systemd-networkd[432]: br0             : created
 systemd-networkd[432]: br0             : link state is up-to-date
 systemd-networkd[432]: br0             : found matching network
'/etc/systemd/network/br0.network'
 systemd-networkd[432]: br0             : bringing link up
 systemd-networkd[432]: br0             : link configured
 systemd-networkd[432]: veth0           : enslaving by 'br0'
 systemd-networkd[432]: br0             : enslaving link 'veth0'
 systemd-networkd[432]: br0             : flags change: +UP
 systemd-networkd[432]: br0             : br0             : could not bring up
interface: Invalid argument
 systemd-networkd[432]: br0             : flags change: +LOWER_UP +RUNNING
 systemd-networkd[432]: br0             : gained carrier
 systemd-networkd[432]: br0             : Adding address:
fe80::8cb7:3bff:fe38:1f40/64 (valid for ever)
 systemd-networkd[432]: br0             : Adding address:
xxxx:xxxx:xxxx:xxxx:8cb7:3bff:fe38:1f40/64 (valid for 23h 59min 59s)

The token is not shown with "ip token get dev br0".
If I remove IPv6Token= the error "could not bring up interface: Invalid
argument" is not shown anymore.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>