10-19-2011 03:52 AM - edited 03-07-2019 02:54 AM
Hi!
Is it possible to have different vlans and IP addresses for two devices connected to the same switch port?
Thanks.
Solved! Go to Solution.
10-20-2011 07:52 AM
You can have two devices on different vlans if one is a Cisco phone. Using the switchport voice vlan ### command.
Smitesh is correct if you connected an unmanaged switch or hub you'll only be about to use one vlan.
You could use a trunk to connect a managed switch to another managed switch but I don't think this would work if you connect an unmanaged switch to a trunk port on the managed switch. Although I've never tried this so it may work.
Matt
10-19-2011 04:00 AM
for two devices connected to the same switch port?
How? By using a spliter?
10-19-2011 04:36 AM
Hi,
if you mean 2 devices in same vlan but in different subnets on same switch then the answer is YES but I wouldn't recommend such a design.
Regards.
Alain.
10-19-2011 04:37 AM
Hi,
I guess you thinking about connectivity from switch to some unmanage switch or hub.
However, at switch; port can be configured as access-port for only single VLAN.
Regards,
Smitesh
10-20-2011 07:52 AM
You can have two devices on different vlans if one is a Cisco phone. Using the switchport voice vlan ### command.
Smitesh is correct if you connected an unmanaged switch or hub you'll only be about to use one vlan.
You could use a trunk to connect a managed switch to another managed switch but I don't think this would work if you connect an unmanaged switch to a trunk port on the managed switch. Although I've never tried this so it may work.
Matt
10-22-2011 01:21 PM
Yes you are right. I have IP Telephone connected to my LAN Cable and then to my pc. There is no unmanaged switch. I need to make IP Telephone and my computer subnet seperate. How can i do that?
Thanks.
10-23-2011 12:12 AM
Hi,
you can do it in 2 ways:
1)
switchport mode access
switchport access vlan 10
switchport voice vlan 20
2)
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20
Regards.
Alain.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide