mohammedmahmoud Thu, 05/24/2007 - 03:28


No, the access switch port can only be a member of 1 VLAN.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

yoyo_the_king Thu, 05/24/2007 - 03:39


if i have 2 pc with diferent address ip on different vlan,and i want connect them in the same switchport.

how can i do that?

mohammedmahmoud Thu, 05/24/2007 - 03:44


Are you connecting them via another Cisco switch to this switchport ?


Mohammed Mahmoud.

yoyo_the_king Thu, 05/24/2007 - 03:50


no i connect them directly.

sometime i connect pc1 and sometime i connect pc2.

Amit Singh Thu, 05/24/2007 - 03:50

If you have 2 different hosts in 2 different vlans, you need a Layer3 switch or a router to have communication between the hosts.

-amit singh

yoyo_the_king Thu, 05/24/2007 - 04:07

yes i have it.

this my architectur

trunk trunk


i have 2 vlan (vlan 10 :

and (vlan 20 :

i have 2 pc each one in vlan


pc2: (

i want that they can communicate in every switchport i connect them.

Amit Singh Thu, 05/24/2007 - 04:18

If you have created the SVIs on 4503 for the respective vlans and you have the IP routing enabled, all the PC in the respective vlans should be able to talk to each other. You have to make sure that the gateway for Hosts should be the IP address for the respective getway vlan. i.e the PC should have the gateway as on 4503 and shouls have the gateway as

You also have to make sure that the PC switchports are configured in their repective vlan on Siwtch1 and Switch2.

If you want everyswitcport of switch1 should be in vlan 10 then use

switchport range interface fa 0/x -y

switchport access vlan 10

Do the same on Switch2 as well for vlan 20. This way your all switchports on switch1 will be in vlan10 and all switchports on switch2 will be on vlan 20.

-amit singh

mohammedmahmoud Thu, 05/24/2007 - 05:13


This gets us to the start, you can't configure the access switch port with multiple VLANs.

HTH, please do rate all helpful replies using the scroll box on the right,

Mohammed Mahmoud.

yoyo_the_king Fri, 05/25/2007 - 00:44


but is it possible to configure a switchport to access mode and voice mode

yoyo_the_king Fri, 05/25/2007 - 03:25


i don't know if i understund, if you can confirm this plz:

we can't affect a switchport to 2 vlan data in the same time,

but we can affect it to 1 vlan data and another vlan:voice in the same time.

this is right?

mohammedmahmoud Fri, 05/25/2007 - 03:31


In the case of voice VLAN the switchport acts as a trunk to the IP Phone and then the PC is connected to the built in switch of the IP Phone and the PC is now in the data VLAN inspite of the voice VLAN, and both VLANs are carried over the trunk between the IP Phone and the switch port.

[edit] Christopher suggestion would be nice in your case, using the VMPS and Dynamic VLAN membership.

With VMPS, you can assign switch ports to VLANs dynamically, based on the source MAC address of the device connected to the port. When you move a host from a port on one switch in the network to a port on another switch in the network, the switch assigns the new port to the proper VLAN for that host dynamically.

Use "switchport access vlan dynamic", but you'll need a VMPS server "vmps server ipaddress", AFAIK a Cisco switch can act as a VMPS server, let me check it out for you.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.


This Discussion