10-12-2023 04:23 PM
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,
10-12-2023 05:04 PM
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 **
10-14-2023 08:26 AM
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,
10-14-2023 08:36 AM
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
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