@amiraghdam
If I understand correctly, you have two 10-port switches. They are connected using the SFP ports 9 & 10.
You want to set up the two switches so that:
Port 1 on Switch #1 will only communicate with Port 1 on Switch #2
Port 2 on Switch #1 will only communicate with Port 2 on Switch #2
Port 3 on Switch #1 will only communicate with Port 3 on Switch #2
Port 4 on Switch #1 will only communicate with Port 4 on Switch #2
Port 5 on Switch #1 will only communicate with Port 5 on Switch #2
Port 6 on Switch #1 will only communicate with Port 6 on Switch #2
Port 7 on Switch #1 will only communicate with Port 7 on Switch #2
Port 8 on Switch #1 will only communicate with Port 8 on Switch #2
And, each port can trunk multiple VLANs?
And the VLANs on each port will be isolated to the port? Will you want to use the same VLAN #s on more than one port of the switch?
I think you're looking for a feature called VLAN-VPN:
VLAN-VPN Commands
I'm not sure if this will work, or if it will support multiple VLANs per port. But the way it is described through the CLI document, you would:
1. Enable dot1q tunnel globally
2. Assign unique TPIDs per port for Ports 1-8
2. Configure ports 1-8 as dot1q tunnel UNI ports
3. Assign a UNI VLAN to each port
4. Configure the SFP ports as NNI ports
5. Map the UNI port VLANs to an NNI port VLANs
(I've never set this up with TP-Link switches, having only owned one for a week. But I've set it up with Cisco switches in the past)
You would do this on both switches. Then, for example, if Port 1 had UNI VLAN 1, and it is mapped to NNI VLAN 1001, then tunneled to the other NNI port on the other switch, where the NNI interface would receive NNI VLAN 1001 and map it back to UNI VLAN 1 on Port 1. Same thing for Port 2. UNI VLAN 2, NNI VLAN 1002, and it would be tunnel between switches that way.
The complication comes if you need multiple VLANs per port, which means the UNI interfaces would need to be configured as Dot1Q Trunk ports. I don't see any indication that the switch can tunnel a Trunk port.
Here's another link that talks about the VLAN-VPN Feature (called L2PT, or Layer 2 Protocol Tunneling, in the Specification List):
VLAN-VPN Description
Hopefully this will be helpful.
-rb