Vlan tag

Uja

New Member
Nov 12, 2025
2
0
1
Hi everyone,

I have a question about an issue I encountered during my university lab practice. Our professor gave us a topology with two switches connected to each other: two PCs are connected to the first switch using normal Ethernet connections, and another PC is connected to the second switch using a VLAN tag.

The task was to ping from the VLAN-tagged PC to one of the PCs connected with a normal Ethernet connection.

On my Linux system, I configured the VLAN interface using the following commands:

sudo ip link add link enp3s0 name enp3s0.10 type vlan id 10
sudo ip link set enp3s0.10 up
sudo ip addr add 192.168.15.124/24 dev enp3s0.10

However, the ping didn’t work, and I couldn’t figure out why.
Could you please help me understand what the problem might be?
btw In general I have creat a subinterface.