cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3085
Views
0
Helpful
6
Replies

Same VLan, different IP

Create Share
Level 1
Level 1

Hi!

Is it possible to have different vlans and IP addresses for two devices connected to the same switch port?

Thanks.

1 Accepted Solution

Accepted Solutions

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

View solution in original post

6 Replies 6

Leo Laohoo
Hall of Fame
Hall of Fame
for two devices connected to the same switch port?

How?  By using a spliter?

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

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

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

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.

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.

Don't forget to rate helpful posts.