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

Switch Access tow Data Vlan at same time

how can i configure cisco 3560 switch port to be ember of 2 data vlan at the same time :

bellow is the switch port configuration:

interface GigabitEthernet0/1
switchport access vlan 19
switchport mode access
switchport voice vlan 18
switchport port-security maximum 3
switchport port-security
switchport port-security violation protect
switchport port-security aging type inactivity
storm-control broadcast level 1.00
spanning-tree portfast
spanning-tree bpduguard enable
end

if you noticed here the switch port is accessing VLAN 19 which is data VLAN , and its Voice VLAN is 18

how can i make access another Data vlan eg: 11

please help me with the same.

1 Accepted Solution

Accepted Solutions

If the port is set to a trunk port, it is a member to all the VLANs specified.

View solution in original post

6 Replies 6

shivlu jain
Level 5
Level 5

Hi

On single port could only be part of access vlan. If you want to pass multiple data vlans on that port then you need to configure that port as trunk port.

regards

Shivlu Jain

http://www.mplsvpn.info    

Leo Laohoo
Hall of Fame
Hall of Fame

Make it a dot1q trunk port and allow VLANs 11, 18 and 19.

leolaohoo wrote:

Make it a dot1q trunk port and allow VLANs 11, 18 and 19.

Hi

thanks for your replay, Butwhen configured the same i was not able to make the switch port member of VLAN 19 and 11 as well

bellow is the configuration :

Switch(config)#int g0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport trunk allowed vlan all ( i Just Allwed All VLAN )
Switch(config-if)#do sh run int g0/1
Building configuration...
Current configuration : 397 bytes
!interface GigabitEthernet0/1
switchport access vlan 19
switchport trunk encapsulation dot1q
switchport mode access
switchport voice vlan 18
switchport port-security maximum 3
switchport port-security
switchport port-security violation protect
switchport port-security aging type inactivity
storm-control broadcast level 1.00
spanning-tree portfast
spanning-tree bpduguard enable
!
Switch(config-if)#switchport access vlan ?
  <1-4094>  VLAN ID of the VLAN when this port is in access mode
  dynamic   When in access mode, this interfaces VLAN is controlled by VMPS

Switch(config-if)#switchport access vlan 19 11
                                               ^
% Invalid input detected at '^' marker.

Please advice

If the port is set to a trunk port, it is a member to all the VLANs specified.

so i can connect an end host to the port ? but IP address it will get , if you noticed we can make the switch port access only one VLAn even if we configured it as a trunk port ?

Thanks for the rating.

so i can connect an end host to the port ?    

Yes.  It's possible.

if you noticed we can make the switch port access only one VLAn even if we configured it as a trunk port

If you  want the port to access only one (1) VLAN then Best Practice is to configure the ports as access.

Review Cisco Networking products for a $25 gift card