ip link add link eth0 name eth0.3001 type vlan id 3001
ip addr add 192.168.100.1/24 brd 192.168.100.255 dev eth0.3001
ip link set dev eth0.3001 up
ip -d addr show
Reference: https://www.baeldung.com/linux/vlans-create
ip link add link eth0 name eth0.3001 type vlan id 3001
ip addr add 192.168.100.1/24 brd 192.168.100.255 dev eth0.3001
ip link set dev eth0.3001 up
ip -d addr show
Reference: https://www.baeldung.com/linux/vlans-create
Social Plugin