04-23-2004 04:24 AM - edited 03-02-2019 03:12 PM
hi,
i want to match packets based on input interface.
but not on the physical interface - i want to match on subinterface !
is this possible ??
04-23-2004 05:05 AM
Yes it is possible.
match interface e0.10 should work!
04-23-2004 05:22 AM
thanks for answer - seems it´s only possible for physical int:
class-map match-any gemdat_not_voice
description Traffic von Gemeinde jedoch ohne Voice
match dscp af21
match dscp af13
match dscp af12
match dscp af11
!
r-grztr1(config)#class-map match-any gemdat_not_voice
r-grztr1(config-cmap)#description Traffic von Gemeinde jedoch ohne Voice
r-grztr1(config-cmap)# match dscp af21
r-grztr1(config-cmap)#match ?
access-group Access group
any Any packets
class-map Class map
cos IEEE 802.1Q/ISL class of service/user priority values
destination-address Destination address
discard-class Discard behavior identifier
dscp Match DSCP in IP(v4) and IPv6 packets
fr-de Match on Frame-relay DE bit
fr-dlci Match on fr-dlci
input-interface Select an input interface to match
ip IP specific values
mpls Multi Protocol Label Switching specific values
not Negate this match result
packet Layer 3 Packet length
precedence Match Precedence in IP(v4) and IPv6 packets
protocol Protocol
qos-group Qos-group
source-address Source address
r-grztr1(config-cmap)#match inp
r-grztr1(config-cmap)#match input-interface fast
r-grztr1(config-cmap)#match input-interface fastEthernet 0/0.100
r-grztr1(config-cmap)#
!
class-map match-any gemdat_not_voice
description Traffic von Gemeinde jedoch ohne Voice
match dscp af21
match dscp af13
match dscp af12
match dscp af11
match input-interface FastEthernet0/0
!
as u can see although i configured the subint. - in the config we have the whole physical which is not
possible in my enviroment.
!
i tried with the latest 12.3 T (12.3.7T)
04-23-2004 05:22 AM
thanks for answer - seems it´s only possible for physical int:
class-map match-any gemdat_not_voice
description Traffic von Gemeinde jedoch ohne Voice
match dscp af21
match dscp af13
match dscp af12
match dscp af11
!
r-grztr1(config)#class-map match-any gemdat_not_voice
r-grztr1(config-cmap)#description Traffic von Gemeinde jedoch ohne Voice
r-grztr1(config-cmap)# match dscp af21
r-grztr1(config-cmap)#match ?
access-group Access group
any Any packets
class-map Class map
cos IEEE 802.1Q/ISL class of service/user priority values
destination-address Destination address
discard-class Discard behavior identifier
dscp Match DSCP in IP(v4) and IPv6 packets
fr-de Match on Frame-relay DE bit
fr-dlci Match on fr-dlci
input-interface Select an input interface to match
ip IP specific values
mpls Multi Protocol Label Switching specific values
not Negate this match result
packet Layer 3 Packet length
precedence Match Precedence in IP(v4) and IPv6 packets
protocol Protocol
qos-group Qos-group
source-address Source address
r-grztr1(config-cmap)#match inp
r-grztr1(config-cmap)#match input-interface fast
r-grztr1(config-cmap)#match input-interface fastEthernet 0/0.100
r-grztr1(config-cmap)#
!
class-map match-any gemdat_not_voice
description Traffic von Gemeinde jedoch ohne Voice
match dscp af21
match dscp af13
match dscp af12
match dscp af11
match input-interface FastEthernet0/0
!
as u can see although i configured the subint. - in the config we have the whole physical which is not
possible in my enviroment.
!
i tried with the latest 12.3 T (12.3.7T)
04-23-2004 05:12 AM
Hello,
I configured this, and the match command accepts the subinterface, but in the running config and in the output of the command show policy-map it appears that the policy only matches the physical interface:
I configured:
class-map TEST
match interface FastEthernet1/0.1
but the running config shows:
class-map TEST
match interface FastEthernet1/0
And this is when I inspect the policy map itself.
show policy-map interface FastEthernet1/1
Match: input-interface FastEthernet1/0
It looks like subinterfaces cannot be matched...
HTH,
GP
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