cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
881
Views
2
Helpful
4
Replies

IOSv Switchport Config Support

aidanvenn
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

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

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

4 Replies 4

M02@rt37
VIP
VIP

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

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

balaji.bandi
Hall of Fame
Hall of Fame

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.

BB

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

How to Ask The Cisco Community for Help

aidanvenn
Level 1
Level 1

Thank you M02@rt37 and balaji.bandi

 

you're so welcome @aidanvenn 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.