Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-1076

Improvements and fixes to corenetwork templates

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.1
    • Fix Version/s: None
    • Labels:

      Description

      I Originally experienced some issues with an ipv6 link-local collision, upon investigation I noticed that the bridge template(and other templates) lacked any ipv6 awareness. On further investigation I discovered that the bridge template usurps the MAC Address of the last nic in the list of slaves; now for some nics, like an unused tap, it won't affect anything if nothing is using the tap, but if it is an active nic, then both the nic and the bridge will be assigned an link-local ipv6 address causing network failures.

      The solution to this was to add a little more logic to the bridge template, specifically adding variables for manual MAC addresses($mac_addr), and ipv6 addresses($ipaddr6) and finally a method to specify an ipv6 gateway($gateway6)

      ipv6 gateway functions were not tested, due to a lack of ipv6, but the address assignment works correctly, as does the MAC override.

      sysctl calls updated to include ipv6 forwarding as well.

      Once bug is closed I will update the wiki with the new information. This update is a drop in replacement, requiring no edits to existing existing bridge configurations unless they desire to enable these new features.

        Attachments

        1. bond-iproute2
          1 kB
        2. bridge-dhcpcd-iproute2
          2 kB
        3. bridge-iproute2
          2 kB
        4. bridge-openvswitch-iproute2
          2 kB
        5. bridge-vde
          4 kB
        6. conf.d-vde-bridge
          0.1 kB
        7. interface-iproute2
          2 kB
        8. interface-noip
          0.1 kB
        9. netif.tmpl-iproute2
          7 kB
        10. tap-iproute2
          0.7 kB
        11. tap-iproute2-testisgood
          0.6 kB
        12. tap-iproute2-testnogood
          0.6 kB
        13. vde-slirp
          5 kB

          Issue Links

            Activity

            Hide
            setsuna-xero Glenn Phillips added a comment -
            Show
            setsuna-xero Glenn Phillips added a comment - New Github Repo for files https://github.com/Setsuna-Xero/Experimental-Templates
            Hide
            setsuna-xero Glenn Phillips added a comment - - edited

            Wiki Page as well(needs approval)
            http://www.funtoo.org/Network_Templates

            Show
            setsuna-xero Glenn Phillips added a comment - - edited Wiki Page as well(needs approval) http://www.funtoo.org/Network_Templates
            Hide
            oleg Oleg Vinichenko added a comment -

            it make sense to create a devel branch in corenetwork repo and merge https://github.com/Setsuna-Xero/Experimental-Templates there. Roll out masked openrc for testing purpose.

            Show
            oleg Oleg Vinichenko added a comment - it make sense to create a devel branch in corenetwork repo and merge https://github.com/Setsuna-Xero/Experimental-Templates there. Roll out masked openrc for testing purpose.
            Hide
            setsuna-xero Glenn Phillips added a comment -

            Sounds like a Plan, I've got a new bridge-vde template up with some fixes for dirty-shutdowns and killed processes, I'll commit to github and work on mirroring the changes to vde-slirp

            Show
            setsuna-xero Glenn Phillips added a comment - Sounds like a Plan, I've got a new bridge-vde template up with some fixes for dirty-shutdowns and killed processes, I'll commit to github and work on mirroring the changes to vde-slirp
            Hide
            dantrell Dantrell B. added a comment - - edited

            This has been resolved with the addition of corenetwork/experimental.

            Show
            dantrell Dantrell B. added a comment - - edited This has been resolved with the addition of corenetwork/experimental .

              People

              • Assignee:
                dantrell Dantrell B.
                Reporter:
                setsuna-xero Glenn Phillips
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: