
PC и com циркулируют обычные Ethernet‑фреймы, а между узлами comleft и comright — любые модифицированные 802.1Q (т. н. trunk). При этом фреймы, получаемые от PC1 и PC4 помечаются одним VID, а от PC2 и PC3 — двумя другими. Таким образом PC1 и PC4 образуют единый VLAN и доступны друг для друга, а PC2 и PC3 находятся в изолированных VLAN‑ах с единственным абонентом в каждом.
com_left:
Adapter2 — trunk
Adapter3 — left4
Adapter4 — left2
com_right:
Adapter2 — trunk
Adapter3 — right4
Adapter4 — right3
pc1:
Adapter2 — left4
pc2:
Adapter2 — left2
pc3:
Adapter2 — right3
pc4:
Adapter2 — right4
[root@pc1 ~]# ip link set eth1 up[root@pc1 ~]# ip addr add dev eth1 10.0.0.1/24
[root@pc2 ~]# ip link set eth1 up[root@pc2 ~]# ip addr add dev eth1 10.0.0.2/24
[root@pc3 ~]# ip link set eth1 up[root@pc3 ~]# ip addr add dev eth1 10.0.0.3/24
[root@pc4 ~]# ip link set eth1 up[root@pc4 ~]# ip addr add dev eth1 10.0.0.4/24