- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Cisco Modeling Labs
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 : (
Example 4-6 R1 Subinterface Configuration)
https://www.ciscopress.com/articles/article.asp?p=3089357&seqNum=5
again depends what IOS image you using on virtual lab also important.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 06:44 AM
Thank you M02@rt37 and balaji.bandi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 06:46 AM
you're so welcome @aidanvenn
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
