Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11921 corenetwork scripts need maintenance
  3. FL-12038

[corenetwork] When starting statically-configured bridge, slave device is not brought up

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Severe (Users) Severe (Users)
    • None
    • None
    • None
    • Hide
      # the following assumes that `eth0` is available on the testing system
      $ ifconfig eth0 down
      $ ip addr flush dev eth0
      $ cat << EOF > /etc/conf.d/netif.br_testing
      template='bridge'
      slaves='eth0'
      ipaddr='10.81.76.11/24'
      mtu='9000'
      EOF
      $ cd /etc/init.d
      $ ln -sf /etc/init.d/netif.tmpl netif.br_testing
      $ rc-config add netif.br_testing default
      $ openrc
      $ ifconfig | grep eth0 # returns nothing
      $ brctl show # shows `br_testing` with `eth0` attached
      Show
      # the following assumes that `eth0` is available on the testing system $ ifconfig eth0 down $ ip addr flush dev eth0 $ cat << EOF > /etc/conf.d/netif.br_testing template='bridge' slaves='eth0' ipaddr='10.81.76.11/24' mtu='9000' EOF $ cd /etc/init.d $ ln -sf /etc/init.d/netif.tmpl netif.br_testing $ rc-config add netif.br_testing default $ openrc $ ifconfig | grep eth0 # returns nothing $ brctl show # shows `br_testing` with `eth0` attached
    • Funtoo users who want to create a bridge with a static IP will have to take other actions to ensure that hosts on that bridge are actually accessible, by bringing up the relevant device(s). The system should do this automagically.

      A single-line change is needed, to first bring up the slave interfaces and then add them to the bridge.  The `bridge-dhcp` script already contains the necessary instruction, so isn't affected.

            cuantar cuantar
            cuantar cuantar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: