The interfaces between the switches need to be configured to be trunk ports. There are various automatic options, but the only way to be sure is to configure them as trunks.
switch trunk encapsulation dot1q
switch mode trunk
Where x is the interface number.
You may not need the second line, as some switches (and I can never remember which ones) can only be a dot1q trunk, so don’t need this command.
If you do that on both interfaces, then the link is a trunk, and will pass the VLAN information.
You also need to have at least one physical interface in an up/up state in the VLAN for it to come up.