ip link set INTERFACE up/down
ip addr show dev eth0
ip addr add IP/NETMASK dev INTERFACE
Exemple :
ip addr add 192.168.1.2/24 dev eth0
ip route add default via IP
Exemple :
ip route add default via 192.168.1.1
ip link add link NOM_INTERFACE name NOM_INTERFACE.NUM_VLAN type vlan id NUM_VLAN
Exemple :
ip link add link eth0 name eth0.12 type vlan id 12