configuring trunk on a cisco port

Hi Experts,

I was reading on a lab scenario and I see 2 ways . I am not sure which one is the correct one.

SWA(CONFIG)# interface fa0/1
SwA(config-if)# switchport trunk encapsulation dot1q
SwA(config-if)#Switchport mode trunk


SwA(config)# interface fa0/1
SwA(config-if)#Switchport encapsulation dot1q
SwA(config-if)#Switchport mode trunk

can you please tell me which one is correct ?
Habib ZNetwork AnalystAsked:
Who is Participating?
fgasimzadeConnect With a Mentor Commented:
First one is correct
agonza07Connect With a Mentor Commented:
1st one, you need the trunk command before you set the encapsulation on it.
stilldmoneyConnect With a Mentor Commented:
3rd to agree.. 1 is correct. Is there anything else you need help with?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.