Yes, or we can use another hub and connect it to the another trunk link configured for vlan20 so that multiple PC's connected to hubs will be in vlan20.
One more question arises here is that, any switchport which is connected to a hub should always be an access port and not a trunk port?
Thank you for your reply.
both will work actually, an access port or a trunk with the native vlan set to the same as the access port. I guess it depends on what the requirements are, yours were to use hubs, trunks, and native vlans ? They probably want you to learn about these things...in a real, live environment, an access port would probably be a better option.
I connected a hub to one of the access switch and connected two PC's and given IP Add in same subnet as of vlan 10.
As the hub is unmanaged then the port on the access switch that is interconnecting with this hub needs to be in an access-port in vlan 10 for hosts in 10.0.0.x
Then add a additional link on the access switch towards the hub for hosts in 20.0.0.x for vlan 20, This also needs to be an access port in vlan 20 , You then should obtain connection for hosts on either vlan.
NOTE- You dont require any trunk interface on the access switch towards the hub just access ports are sufficient