08-11-2014 01:31 AM - edited 03-07-2019 08:20 PM
can i assign a trunk port to the interface connected to a pc??..i tried it in pkt tracer but strangely it worked with vlan 1 but not with vlan 2 or any other vlan
08-11-2014 03:09 AM
Hello Ravi,
Well we can create a trunk link between a switch and a pc and allow vlans on the trunk link as well.However in ideal scenarios an access link is always created between the two.
anywayz it would be better if u post ur configuration and what exactly ur trying to achieve.
Thanks
08-11-2014 09:15 PM
just a simple config.i was checking whether it'd work.
l3 switch 3650
interface FastEthernet0/1
switchport trunk allowed vlan 1-2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
pc
ip 192.168.2.2
gateway: 192.168.2.1
08-11-2014 11:44 PM
Just need to know are you able to ping from pc to svi vlan 2,if not then u need to create vlan 2 first.
Thanks
08-12-2014 11:53 PM
i have created vlan 2 already but still doesnt ping.When i kept vlan 1 ip as 192.168.2.1/24 and tried in trunk mode then it pinged but when in vlan 2 ,,it wouldnt ping.
08-13-2014 04:31 AM
As said rightly by Florian,your pc should be capable of working with IEEE 802.1q trunks which i don't think the packet tracer pc is...
Thanks
08-11-2014 05:25 AM
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
Sure you can. Of course for it to work correctly, the PC would need to be able to process VLAN tagged frames.
BTW, take anything you do with Packet Tracer with a very large grain of salt.
08-13-2014 12:37 AM
Hi!
You sure can do that, but it will only work, if your PC is capeable of working with IEEE 802.1q trunks.
The fact that you are able to Ping the PC in VLAN1 and not an VLAN2 is because of the native-vlan configuration of the Switch, which should be by default vlan1.
So the PC receives the Frames for vlan1 untagged as standard Ethernet-Frames and can handle them. The frames for vlan2 however are tagges with a IEEE 802.1q-type tag, so the PC can't recognize them, until you configure him to work with IEEE802.1q
I don't know if Ciscos Packet-Tracers PC is capable of working with the Tags. I think the Servers in Packettracer can.
Best Regards and all the best,
Florian
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