01-28-2007 02:21 AM - edited 03-05-2019 02:01 PM
Suppose switch-B is connected to a port (say, 1/2) of switch-A where vlans are configured. If I want to make all ports on switch-B access to, say, vlan2, can I just configure the port 1/2 on switch-A like this:
Interface GigabitEthernet1/2
switchport access vlan 2
and leave switch-B without any vlan configuration.
Does this work?
Thanks,
01-28-2007 04:13 AM
Hi
You don't need to trunk between the 2 switches. You just allocate all ports into vlan 2. Vlan 2 must exist on the switch though.
HTH
Jon
01-28-2007 04:16 AM
First of all you have to create vlans on switch-B as well.
To use VTP you need to establish a trunk between the switches since DTP doesn't work with access ports.
In this trunk, on switch-A side, there's written what are the VLANs allowed (suppose you want to use dot1q)
So:
!
interface GigabitEthernet1/2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2
no shut
!
the same configuration has to be configured on switch-B side as well.
You can now configure all the access ports you need on switch-B like this:
!
interface FastEthernet0/1
switchport
switchport access vlan 2
no shut
!
This apply only if you want to span VLANs across multiple switches. If this VLAN apply only for devices that belong on the same switch you don't need to trunk, just create it and configure access ports.
Please rate if apply.
Ciao,
Ric
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