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

sys-apps/openrc problem with creating vlan interface

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      In /etc/init.d/netif.tmpl file line 97, create vlan interface with command:

      ip link add dev ${interface} link ${trunk} type vlan id ${vlan}
      

      But, ip command help say:

      Usage: ip link add [link DEV] [ name ] NAME
                         [ txqueuelen PACKETS ]
                         [ address LLADDR ]
                         [ broadcast LLADDR ]
                         [ mtu MTU ] [index IDX ]
                         [ numtxqueues QUEUE_COUNT ]
                         [ numrxqueues QUEUE_COUNT ]
                         type TYPE [ ARGS ]
      

      when create interface should use `name' not `dev', so line 97 should change to:

      ip link add name ${interface} link ${trunk} type vlan id ${vlan}
      

            Unassigned Unassigned
            elm Zhankao WEN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: