cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1040
Views
1
Helpful
3
Replies

Trunk Command Not Working in Cisco Packet Tracer

ksamujtaba
Level 1
Level 1

Hi,

In cisco packet tracer i was practing inter vlan routing, i got an issue about trunkport command not working.

For Example:

I have 2PC's with PC1(Vlan10) and PC2(Vlan20) both ports(f0/2 & f0/3) configured with vlan's, but when i am configuring f0/1 to trunk port for router port(Gig0/0), it's not showing the table of trunk port.

Conf t

int f0/1

switchport mode trunk

exit

Switch#sh int tr (after this command port stillin down state and trunk port table doesn't appear below).

please suggest me about this issue, i was struk here since 3days.

Thank You & Regards,

3 Replies 3

Martin L
VIP
VIP

1st interface is in red , so it is probably shutdown; 2nd Router needs some configuration; For inter vlan routing with router u must use ROAS, router-on-as-stick. U need something like this

interface GigabitEthernet0/0.10

encapsulation dot1Q 10

ip address x.y.z

interface GigabitEthernet0/0.20

encapsulation dot1Q 20

ip address x.x.x.x

 

Regards, ML
**Please Rate All Helpful Responses **

HI Martin,

Thank You for your reply, still after configuring still interface between switch and router is in red, i need all configuration on router and on switch as int f0/1 is trunk.

In switch when i need to check switch#sh int tr command below details not appear it is empty.

So please can you suggest.

Thank You,

Just quick question, when you enter that command in the switch is that give any error ?

like below :

(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.

may be try below example :

interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card