11-24-2022 12:11 AM
Hi All
I got C9500 in stackwise virtual (2 switches in stack). Am looking to configure sub-interface (for eg, twe1/0/1.340 on VRF A) in one of the physical port that connects to ISP and SVI (for eg, vlan891 on VRF A) for other internal VLAN and configure as trunk in another port. Is this possible to have SVI and sub-interface on same switch?
11-24-2022 12:27 AM
as per the information i do not see any issue, where do you see any limitation?
other than mentioned below :
11-24-2022 01:16 AM
Thank you. Just read through the link and I don't think there is any limitation on that switch. Also the switch model I got supports sub-interface.
11-24-2022 02:20 AM
Sure plan as per the requirement 1 step at a time if you looking to on live device.
11-24-2022 12:36 AM
there is no limit I think
the switchport first must be convert to L3 port then config subinterface.
the only point you must care about is the VRF
you must config ISP and SVI to be in same VRF
or config different VRF and then you need leak route between VRF.
11-24-2022 01:17 AM
yes so if i have sub interface on port 1 (for eg, twe1/0/1.340 on VRF Test) and an SVI (for eg, VLAN891 on VRF Test) which will be attached to another port as trunk (for eg, in port Twe1/0/2 as trunk port which goes to another L2 switch where firewall is connected).
11-24-2022 01:26 AM
meaning your ISP link and SVI in same VRF that great, there is no problem with this config.
Note:- keep notice when you config ISP with specific VRF then any new SVI you want to forward it traffic through ISP must be in same VRF.
11-24-2022 12:39 AM
Hello,
Your question is not much clear to me but No, it is not possible to mix Layer 2 and Layer 3 interfaces as subinterfaces. Also
Subinterfaces are not supported on StackWise Virtual Link (SVL)
Here is a solution
Create multiple VLANs as required and also create a VRF for the ISP. Put SVI in the VRF.
Now, you can create the trunk port and assign all required VLANs to the trunk port.
11-24-2022 01:15 AM
Hi,
No, I mean sub interface on port 1 (for eg, twe1/0/1.340 on VRF A) and an SVI (for eg, VLAN891 on VRF A) which will be attached to another port as trunk (for eg, in port Twe1/0/2 as trunk port which goes to another L2 switch where firewall is connected).
Will it work as above?
11-24-2022 02:25 AM
Subinterfaces are not supported on StackWise Virtual Link (SVL)
so option 1 is gone (sub interface on port 1 (for eg, twe1/0/1.340 on VRF A) )
2nd is possible (another port as trunk (for eg, in port Twe1/0/2 as trunk port which goes to another L2 switch where firewall is connected).
11-24-2022 02:40 AM
Think there is some misunderstanding, I didnt mean to sub interface the stackwise virtual?
I meant to sub-interface the port that connects to ISP which is port1.. The stackwise virtual is on different port(s).
11-24-2022 02:45 AM
The config looks like below:
!
interface twe1/0/1.340
description Link to ISP
vrf forwarding TEST
ip add 192.168.10.1 255.255.255.0
!
Interface vlan340
desc Link to Firewall
vrf forwarding TEST
ip add 192.168.255.1 255.255.255.0
!
interface twe1/0/2
Desc link to L2 switch
switchport mode trunk
switchport trunk allowed vlan 340
!
interface twe1/0/23
desc stackwise virtual
!
11-24-2022 02:49 AM - edited 11-24-2022 02:51 AM
what is the use case here for the port connected to ISP required another sub interface ? why ?
we generally do sub interface required, where other side trunk ..required more vlan required to pass.
if the ISP support trunk, why not make physical interface as trunk and allowed VLAN required in the trunk
create vlan x VRFX vlan y VRF Y so on - is that works ?
11-24-2022 03:27 AM
The only reason am looking to do is because the system MTU in the switch is 9000 (in middle of migration so cant change MTU to 1500 at this time due to dependency on other legacy switches) but the ISP MTU has to be set to 1500. If i configure as SVI then in every VLAN (nearly 50 VLAN that connects to ISP) i have to manually set the MTU to 1500.. If i configure as sub-interface then I can set the main port MTU to 1500 so all other sub-interfaces will be automatically on same MTU.
11-24-2022 03:10 AM
Yes, it will work like this:
interface twe1/0/1.340
description Link to ISP
encapsulation dot1q 341 <<<<<=== different VLAN ID
vrf forwarding TEST
ip add 192.168.10.1 255.255.255.0
Sub-interface ID is not an actual VLAN ID. Encapsulation needs to define as VLAN but it can't be the same as other SVI.
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