vconfig command code example
Example: vconfig command
# Add a VLAN interface definition, eth0.5, for eth0 on PVID 5:
vconfig add eth0 5
# Configure the network settings for the VLAN interface:
ip addr add 192.168.1.121/24 dev eth0.5
# Bring up the VLAN interface:
ip link set eth0.5 up
# If you subsequently need to delete the interface, use the following commands to bring it down and remove its definition:
ip link set eth0.5 down
vconfig rem eth0.5