cisco switchport mode access
LAwLz has it perfectly correct.
I want to explain a little more about 802.1Q trunks.
A Trunk can carry traffic from multiple VLANs as LAwLz explained. This is most important when you want to route from one VLAN to another. For example: an accountant wants to send an e-mail from his computer on the accounting VLAN to a Marketing manager on a computer in the Marketing VLAN. Without a router or layer 3 switch the traffic would never reach the marketing VLAN. Originally you had to have a physical port on the router connected to a switch port that was assigned to the Accounting VLAN and another different physical port on the router connected to a switchport that was assigned to the Marketing VLAN.
802.1Q VLAN trunking allows both the traffic from the marketing VLAN and the traffic from the accounting VLAN to travel across the SAME physical cable from the switch to the router. You then set up sub-interfaces on the router port that correspond to the VLANs and IP addresses of the accounting and marketing VLANs. The idea is the same as the separate physical ports but allows you to use ONE port on the router connected to ONE port on the switch.
Additionally if you connect a trunk port on a switch (switch1) to a trunk port on another switch (switch2) [non layer-3 switches specifically] , you can extend a vlan from switch1 to switch2. This comes into play where you need the same VLANs in different buildings or on different floors or you have run out of available switchports on an existing switch.
Now if you have 24 ports of 10/100 on the marketing VLAN and 24 10/100 ports on the accounting VLAN. At full duplex that's 4800 Mbits/sec of traffic potentially per VLAN. Or 9600Mbits/sec potentially going up one trunk port. If the trunk port speed is only 100Mbits/sec (200 Mbps full duplex) you are oversubscribed by 48-to-1 and SERIOUSLY congested. This is why trunk ports are normally higher speed ports like 1-Gbps or 10-Gbps ports.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now