I was reading cisco book where it says Sinle vlan can support multiple subnets.Because switch ports are configured for vlan number only and not a network address any station connected to a poprt can present ant subnet address range.
if someone can please explain me this with example.
Take a look at the config example I have below:
ip address 184.108.40.206 255.255.255.0 secondary
ip address 220.127.116.11 255.255.255.0 secondary
ip address 10.10.10.1 255.255.255.0
Again, not recommended but this is just for your info:
As stated above, there are some circumstances where you can have multiple IP subnets in the same VLAN.
I think however, that we come to the same conclusion where you should have a 1-to-1 relation between VLAN and IP subnets as a recommended design.
If you find yourself in a situation where you must aggregate different subnets on the same VLAN, my opinion is to consider a redesign.
VLANs are L2 and are just a concept that switches know about and IP subnets are L3.
So, as I said, technically you can have multiple IP subnets on the same VLAN but again, not recommended solution.