#!/bin/bash

dev=$1
tag=$2

ip link add link $dev name $dev.$tag type vlan id $tag
ip link set $dev.$tag up