Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-6374 openrc/corenetwork improvements tracker
  3. FL-4925

Convert loopback to funtoo network script system.

Details

    Description

      Had a requirement to add extra global scope ip's to the loopback interface.

      Did cp /etc/netif.d/interface to /etc/netif.d/loopback and added the stuff from /etc/init.d/loopback above the other stuff in the netif_pre_up () function.

      Need to symlink /etc/init.d/netif.tmpl to /etc/init.d/netif.lo add it to boot run-level and remove loopback from it.

      For a default setup /etc/conf.d/netif.lo will be:

      template="loopback"
      rc_provide="net"
      

      This give you the option to add extra addresses + all the other nice stuff from funtoo network scripts like always available search domain and backup public dns etc...

      This is working fine so far on my system although an interface restart to update settings complain about "RTNETLINK answers: File exists" The script could probably be optimized but to add "127.0.0.1/8" to the config won't work because that need to be local scope and the other addresses must be global scope.

      Attachments

        Issue Links

          Activity

            People

              drobbins drobbins
              c||_mt Cor Legemaat
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: