12-22-2023 06:15 AM
Hi All,
Trying the following config on a wiped IOSv router:
interface GigabitEthernet0/0 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20
but appears no support for "switchport" command as I get:
inserthostname-here(config)#interface GigabitEthernet0/0
inserthostname-here(config-if)# switchport trunk encapsulation dot1q
% Invalid input detected at '^' marker.
Am I losing the plot? or is is that correct?
Thanks for reading
Aidan
Solved! Go to Solution.
12-22-2023 06:24 AM
Hello @aidanvenn
because it is a Router, you need to creat sub-interface no ?
interface GigabitEthernet0/0
no shut
interface GigabitEthernet0/0.10
encapsulation dot1q 10
ip address x.x.x.x mask
no shut
interface GigabitEthernet0/0.20
encapsulation dot1q 20
ip address x.x.x.x mask
no shut
12-22-2023 06:24 AM
Hello @aidanvenn
because it is a Router, you need to creat sub-interface no ?
interface GigabitEthernet0/0
no shut
interface GigabitEthernet0/0.10
encapsulation dot1q 10
ip address x.x.x.x mask
no shut
interface GigabitEthernet0/0.20
encapsulation dot1q 20
ip address x.x.x.x mask
no shut
12-22-2023 06:35 AM
by default router interface in routing mode, there is no requirement for you to issue no switchport or switchport ?
If you looking router in stick below guide help you : (
https://www.ciscopress.com/articles/article.asp?p=3089357&seqNum=5
again depends what IOS image you using on virtual lab also important.
12-22-2023 06:44 AM
Thank you M02@rt37 and balaji.bandi
12-22-2023 06:46 AM
you're so welcome @aidanvenn
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