05-27-2015 08:19 PM - edited 03-08-2019 12:13 AM
Hi guys,
I have a question regarding cisco switches, I don't know when to use switchport mode trunk, is it only used when for example, switch A is connected to switch B or it can also be used for switches connected to routers? I'm still having trouble in configuring switches.
Another question is how can I configure a switch connected to a router with different vlans but can see each other, is it possible?
Thanks.
05-27-2015 08:26 PM
Another question is how can I configure a switch connected to a router with different vlans but can see each other, is it possible?
05-28-2015 12:35 AM
If would be worth having a quick google on the difference between an Access Port and a Trunk Port, there are plenty of people who are a lot better at explaining things than I am :)
Generally a Trunk port is used between switches but can be used to connect a Switch with a Router or even a Switch with a Server. Both devices that you are connecting together need to be capable of 'tagging' packets before then send them across the link.
Have a read up on Access and Trunk ports and then read up on Untagged and Tagged, if you can get round the concepts then you should understand L2 switching technology a bit better.
05-28-2015 07:12 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
A (Cisco) switch trunk allows you to send have multiple VLANs use the port. (VLANs, excluding native, are tagged so switch can tell them apart.)
On routers, you create a similar port by defining subinterfaces, each subinterface defined to use a certain VLAN tag.
(router) e.g.:
interface FastEthernet0/0
description to switch trunk
no ip address
interface FastEthernet0/0.1
description vlan 1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
interface FastEthernet0/0.45
description vlan 45
encapsulation dot1Q 45
ip address 192.168.45.1 255.255.255.0
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