]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
replace /sbin/vconfig with /sbin/ip call
[pve-common.git] / src / PVE / Network.pm
index 387f19274fe42a90a11d5aff2f845ac341168c01..9c05e7868b8b1b0680e5357710506f97a6d58d83 100644 (file)
@@ -375,7 +375,7 @@ sub activate_bridge_vlan_slave {
        
     # create vlan on $iface is not already exist
     if (! -d "/sys/class/net/$ifacevlan") {
-       system("/sbin/vconfig add $iface $tag") == 0 ||
+       system("/sbin/ip link add link $iface name ${iface}.${tag} type vlan id $tag") == 0 ||
            die "can't add vlan tag $tag to interface $iface\n";
     }