I want my pc receive ip from vlan40 when i connect it using lan cable. But it’s not worked. Did i do something wrong ?
Any ideas is helpful. Thanks in advance.
Is your PC connected to vlan40?
Is it on a port that is sending vlan40 untagged or did you put some switch between them to remove the tag?
If not, this is not going to work.
Unless your PC is using inserting Vlan Tags it will be looking for DHCP on ether5.
Use the Torch function with all options enabled (in Winbox) and a timeout of 30 seconds and see whether dhcp request are being tagged or not.
You can also take a spare Mikrotik and add your vlan40 to ether1 and then bridge vlan40 to a spare ethernet port for the PC. Plug this spare routers ether1 into you first routers ether5 and it should work.
Ahh… overlooked that.
In this case it is normal that it does not work, a PC will not use VLAN tagging by itself unless you
configure it to do so, which is normally not possible in Windows. (it requires a server-grade ethernet card)
On Linux it is possible by creating a vlan40 interface just like on the MikroTik.