Go to the configuration of each switch port where your hosts are connected to - say one host connected to port 10 another in port 20 - say you wanted both host have access to vlans 1, 2 3 and 4 Switch 1 -------------- Switch 1(config)# interface GigabitEthernet 1/0/10 Switch 1 (config-if)# switchport trunk encapsulation dot1q Switch 1(config-if)# switchport mode trunk Switch 1(config-if)# switchport trunk allowed vlan 1,2,3,4 Switch 2 -------------- Switch 2(config)# interface GigabitEthernet 1/0/10 Switch 2 (config-if)# switchport trunk encapsulation dot1q Switch 2(config-if)# switchport mode trunk Switch 2(config-if)# switchport trunk allowed vlan 1,2,3,4 Also remember you need to have all these vlans allowed on trunk between the 2 switches Hope this helps...
Hello, I have a question, how do I configure a trunk switch in the vlans between two hosts?
Go to the configuration of each switch port where your hosts are connected to - say one host connected to port 10 another in port 20 - say you wanted both host have access to vlans 1, 2 3 and 4
Switch 1
--------------
Switch 1(config)# interface GigabitEthernet 1/0/10
Switch 1 (config-if)# switchport trunk encapsulation dot1q
Switch 1(config-if)# switchport mode trunk
Switch 1(config-if)# switchport trunk allowed vlan 1,2,3,4
Switch 2
--------------
Switch 2(config)# interface GigabitEthernet 1/0/10
Switch 2 (config-if)# switchport trunk encapsulation dot1q
Switch 2(config-if)# switchport mode trunk
Switch 2(config-if)# switchport trunk allowed vlan 1,2,3,4
Also remember you need to have all these vlans allowed on trunk between the 2 switches
Hope this helps...