07-05-2016 04:59 AM
interface GigabitEthernet1/0/0/0
!
interface GigabitEthernet1/0/0/0.1 l2transport
encapsulation default
l2vpn
xconnect group XC
p2p XC
interface GigabitEthernet1/0/0/0.1
interface GigabitEthernet1/0/0/4
or
interface GigabitEthernet1/0/0/0
l2transport
l2vpn
xconnect group XC
p2p XC
interface GigabitEthernet1/0/0/0
interface GigabitEthernet1/0/0/4
Second question is: I classify vlan tagged traffic ingress to GigabitEthernet100/0/0/2 on subinterfaces (see below) to be able to setup different services over the physical link connected to GigabitEthernet100/0/0/2 (typically coming from a customer)
One such service is internet access on vlan 10
To set this up, both of the below configs work, but Im trying to understand the best option to use. Im not sure if with option #2 (without bridge domain) I should be concerned about the other end of the link being connected to a large L2 domain with too many MAC addresses for the 9k to learn and the possibility of a broadcast storm etc.., as opposed to option #1 which is limited in terms of MACs and has storm control enabled.
option#1
interface GigabitEthernet100/0/0/2.10 l2transport
encapsulation dot1q 10
rewrite ingress tag pop 1 symmetric
service-policy input 100M
service-policy output 100M
l2vpn
bridge group INTERNET
bridge-domain INTERNET
storm-control multicast kbps 1000
storm-control broadcast kbps 1000
interface GigabitEthernet100/0/0/2.10
mac
limit
maximum 35
action no-flood
!
secure
logging
!
!
split-horizon group
!
routed interface BVI10
interface BVI10
ipv4 address 192.168.0.1/28
option#2
interface GigabitEthernet100/0/0/2.10
encapsulation dot1q 10
ipv4 address 192.168.0.1/28
service-policy input 100M
service-policy output 100M
Thanks for your help
Mark
07-05-2016 07:59 AM
Hi Mark,
encapsulation default, as explained in the command reference, "matches frames that are unmatched by non-default service instances (anything that does not meet the criteria of other services instances on the same physical interface falls into this service instance)". On the other hand, "interface GigabitEthernet1/0/0/4" matches only frames that arrive without any dot1q/dot1ad encapsulation.
On the 2nd question you are right that option #2 is preferred. It's much simpler and provides for better performance. On asr9k you can mix L3 and L2 sub-interfaces on the same physical interface. BVI should be used only when the bridge domain has multiple attachment circuits.
Hope this helps,
/Aleksandar
07-05-2016 09:23 AM
Hi Aleksander,
thanks for your fast reply.
So do I understand correctly that the following config matches only untagged frames, and tagged frames will be dropped ?
interface GigabitEthernet1/0/0/0
l2transport
thanks
Mark
07-05-2016 09:25 AM
hi Mark,
that's correct, this config will catch only untagged frames. Tagged frames will be dropped if there are no sub-interfaces that match the encapsulation.
/Aleksandar
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