Switch2(config-if)# switchport mode trunk Switch2(config)# interface fastethernet0/24 Switch2(config)# interface fastethernet0/11 Switch2(config-if)# switchport access vlan 4 Switch2(config)# interface fastethernet0/10 Switch2(config)# interface fastethernet0/2 Switch2(config-if)# switchport access vlan 3 Switch2(config-if)# switchport mode access Switch2(config)# interface fastethernet0/1 ! Create VLANs 3 and 4 in the switch database Switch1(config-if)# switchport trunk encapsulation dot1q Switch1(config-if)# switchport mode trunk Switch1(config)# interface fastethernet0/24 Switch1(config)# interface fastethernet0/11 Switch1(config-if)# switchport access vlan 4 Switch1(config)# interface fastethernet0/10 ! Assign Ports Fe0/10 and Fe0/11 in VLAN 4 Switch1(config)# interface fastethernet0/2 Switch1(config-if)# switchport access vlan 2 Switch1(config-if)# switchport mode access Switch1(config)# interface fastethernet0/1 ! Create VLANs 2 and 4 in the switch database
SET IP ADDRESS CISCO SWITCH HOW TO
The ports of the two switches shall be configured as following:įe0/24 –> Trunk Port How to Create and Configure VLANs on Cisco Switches VLAN 4 belongs both to SWITCH 1 and SWITCH 2, therefore we need a Trunk Port between the two switches in order for hosts in VLAN4 in Switch 1 to be able to communicate with hosts in VLAN4 in Switch 2. On the LAN network above, we have three VLANs. Let’s see the following network scenario to help us clarify some concepts. The Trunk Port passes all VLANs between the switches. If you have more than one switch connected and you want the same VLANs to belong across all switches, then a Trunk Port must be configured between the switches. That is, each switch port interface is assigned individually into a Layer 2 VLAN. VLAN assignment on a switch is configured on a per-interface basis.