IOS XR L2MPLS P2P VPN

http://www.cisco.com/c/en/us/support/docs/routers/asr-9000-series-aggregation-services-routers/116453-technote-ios-xr-l2vpn-00.html

Troubleshooting L2VPN and Ethernet Services :

http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-0/troubleshooting/guide/tr40asr9kbook/tr40l2v.pdf

l2transport interface gerekliliği :

Interface tanımlması l2transport şeklinde yapılmaz ise, yani layer 2 interface olarak, xconnect up olmayacaktır.

Örnek : RP/0/RSP1/CPU0:test9006(config)#int gigabitEthernet 0/0/0/19 l2transport

l2transport ile tanımlanan bir ana interface altına subinterface tanımlaması yapamazsınız.

Bu şekile port modda, ana inteface ile kurulan xconnent vc type 5/ETH olarak kurulacaktır. Type 4/Vlan olarak kurulması için transport mode vlan’a sistem izin vermez.

IOX XR’da farklılıkları :

IOS XR var sayılan olarak her zaman xconnect’leri type 5/ETH olarak kurar ve vlan bilgisini gönderir (tüm ethernet frame’ini, FCS hariç). Ana interface veya subinterface kullanmanız farketmez.

Eğer karşı uçda IOS tabanlı bir cihaz var ise, vlan bilgisinin iletilip iletilmemesine dikkat edilmelidir. Karşı tarafda ana interface altında konfiğ girili ise sorun olmaz. Fakar subinterface altında girile ise vlan bilgisini çıkartacaktır.

IOS XR var sayılan olarak type 5/ETH pseduwire kurar iken, IOS XE ise ana interface için type 5/ETH, subint veya EVC için type 4/VLAN kurar. IOS XE’de EVC ve subint farkı ise, vlan bilgisini iletip iletmiyeceğidir. EVC konfiği ile vlan bilgisini iletir. Tabi eğer EVC altında rewrite pop tag 1 yapılmış ise yine iletmiyeceği için sorun olur. IOS XE’de interworking vlan komutuda incelenmelidir.

##################################################################################################################################################################################################################
1 – IOX XR MAIN – IOX XE MAIN NO PW CLASS : iki tarafda type 5/ETH olarak kuruyor.vlan bilgileri ile birlikte gidiyor.
l2vpn
xconnect group TEST-XC1
p2p TEST-XC1
interface GigabitEthernet0/0/0/19
neighbor ipv4 10.2.1.131 pw-id 100
!
!
!

interface GigabitEthernet0/0/0
no ip address
negotiation auto
xconnect 10.2.1.249 100 encapsulation mpls
end

34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0:8(Ethernet) UP mpls 10.2.1.249:100 UP
Interworking: none Local VC label 163
Remote VC label 289987

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 10:46:54.462 GMT
Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19, state is up
Type Ethernet
MTU 1500; XC ID 0x1080001; interworking none
Statistics:
packets: received 1048, sent 50
bytes: received 251594, sent 12770
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289987 163
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19 unknown
MTU 1500 1500
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 10:06:00 (00:40:50 ago)
Last time status changed: 06/11/2014 10:44:52 (00:01:59 ago)
Last time PW went down: 06/11/2014 10:44:13 (00:02:37 ago)
Statistics:
packets: received 50, sent 1048
bytes: received 12770, sent 251594
##################################################################################################################################################################################################################
2 – XE SUBINT XR MAIN : XR type 5, XE Type 4 olarak kuruyor. XR bakınca karşı taraf type 5 olarak görülüyor!!. Erişim yok.
interface GigabitEthernet0/0/0
no ip address
negotiation auto
interface GigabitEthernet0/0/0.1111
encapsulation dot1Q 1111
xconnect 10.2.1.249 100 encapsulation mpls

34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0.1111:1111(Eth VLAN) UP mpls 10.2.1.249:100 UP
Interworking: ethernet Local VC label 28
Remote VC label 289987

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 10:59:14.845 GMT
Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19, state is up
Type Ethernet
MTU 1500; XC ID 0x1080001; interworking none
Statistics:
packets: received 1070, sent 73
bytes: received 255644, sent 18855
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set
PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289987 28
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19 unknown
MTU 1500 1500
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 10:06:00 (00:53:11 ago)
Last time status changed: 06/11/2014 10:58:10 (00:01:01 ago)
Last time PW went down: 06/11/2014 10:57:05 (00:02:06 ago)
Statistics:
packets: received 73, sent 1070
bytes: received 18855, sent 255644
##################################################################################################################################################################################################################
3 XE EVC XR MAIN : XR Type 5, XE type 4.İki tarafda vlan bilgisi ile birlikte gönderdiği için sorun yok. XR yine karşı ucu type 5 olarak görüyor!
interface GigabitEthernet0/0/0
no ip address
negotiation auto
service instance 1 ethernet
encapsulation dot1q 1111
xconnect 10.2.1.249 100 encapsulation mpls
!
end
34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0:1111(Eth VLAN) UP mpls 10.2.1.249:100 UP
Interworking: ethernet Local VC label 159
Remote VC label 289987

DN pri ac Gi0/0/2:10(Ethernet) DN l2tp 193.192.125.226:1 DN
Interworking: none Session ID: 0
Tunnel ID: 0
Protocol State: DOWN
Remote Circuit State: DOWN
pw-class: verizon_test
RP/0/RSP1/CPU0:test9006#sh l2vpn xconnect detail
Thu Nov 6 11:39:22.689 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19, state is up
Type Ethernet
MTU 1500; XC ID 0x1080001; interworking none
Statistics:
packets: received 1104, sent 85
bytes: received 261624, sent 19811
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289987 159
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19 unknown
MTU 1500 1500
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 10:06:00 (01:33:18 ago)
Last time status changed: 06/11/2014 11:36:52 (00:02:27 ago)
Last time PW went down: 06/11/2014 11:10:17 (00:29:02 ago)
Statistics:
packets: received 85, sent 1104
bytes: received 19811, sent 261624
##################################################################################################################################################################################################################
4 IOX XE MAIN XR SUBINT : Her iki tarafda type 5.
interface GigabitEthernet0/0/0/19
mtu 9014
negotiation auto
!
interface GigabitEthernet0/0/0/19.1111 l2transport
encapsulation dot1q 1111
mtu 9014
!
l2vpn
xconnect group TEST-XC1
p2p TEST-XC1
interface GigabitEthernet0/0/0/19.1111
neighbor ipv4 10.2.1.131 pw-id 100
!
!
!
!
RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 15:10:58.171 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19.1111, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [1111, 1111]
MTU 9000; XC ID 0x1080001; interworking none
Statistics:
packets: received 5, sent 8
bytes: received 532, sent 1457
drops: illegal VLAN 0, illegal length 0
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289989 161
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19.1111 unknown
MTU 9000 9000
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 15:04:58 (00:05:56 ago)
Last time status changed: 06/11/2014 15:09:25 (00:01:29 ago)
Statistics:
packets: received 8, sent 5
bytes: received 1457, sent 532

34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0:8(Ethernet) UP mpls 10.2.1.249:100 UP
Interworking: none Local VC label 161
Remote VC label 289989
##################################################################################################################################################################################################################
5 IOX XE SUBINT MAIN XR SUBINT : XE Type 4 XR Type 5. Dolayısı ile sorun var. XE vlansız (XE De EVC konfiği değil subint konfiği olmasından dolayı) XR vlanlı gonderiyor. XR karşıyı type 5 olarak goruyor!
interface GigabitEthernet0/0/0
mtu 9014
no ip address
negotiation auto
interface GigabitEthernet0/0/0.1111
encapsulation dot1Q 1111
xconnect 10.2.1.249 100 encapsulation mpls
mtu 9000

interface GigabitEthernet0/0/0/19
mtu 9014
negotiation auto
!

interface GigabitEthernet0/0/0/19.1111 l2transport
encapsulation dot1q 1111
mtu 9000
!

34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0.1111:1111(Eth VLAN) UP mpls 10.2.1.249:100 UP
Interworking: ethernet Local VC label 163
Remote VC label 289989

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 15:13:41.050 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19.1111, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [1111, 1111]
MTU 9000; XC ID 0x1080001; interworking none
Statistics:
packets: received 5, sent 11
bytes: received 532, sent 2396
drops: illegal VLAN 0, illegal length 0
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289989 163
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19.1111 unknown
MTU 9000 9000
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 15:04:58 (00:08:39 ago)
Last time status changed: 06/11/2014 15:12:25 (00:01:12 ago)
Last time PW went down: 06/11/2014 15:12:11 (00:01:26 ago)
Statistics:
packets: received 11, sent 5
bytes: received 2396, sent 532
##################################################################################################################################################################################################################
5.1 Cozum : XR rewrite pop tag 1. XE Type 4 XR Type 5. Fakat XR bit tagi atip gonderdiği için sorun yok.
!
interface GigabitEthernet0/0/0/19.1111 l2transport
encapsulation dot1q 1111
rewrite ingress tag pop 1 symmetric
!
mtu ayarlaması tabi.
sonuçlar aynı. vlan 1111 IOX XR stip edip gonderir sorun cozulur. Bu sekişde farklı s-vlanlar ile taşınma sağlanır.

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 15:35:07.911 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19.1111, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [1111, 1111]
MTU 9000; XC ID 0x1080001; interworking none
Statistics:
packets: received 43, sent 63
bytes: received 5016, sent 8536
drops: illegal VLAN 0, illegal length 0
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289989 28
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19.1111 unknown
MTU 9000 9000
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 15:04:58 (00:30:05 ago)
Last time status changed: 06/11/2014 15:33:33 (00:01:30 ago)
Last time PW went down: 06/11/2014 15:32:13 (00:02:51 ago)
Statistics:
packets: received 63, sent 43
bytes: received 8536, sent 5016

34gyr_tntestlns03#sh run | section 0/0/0
interface GigabitEthernet0/0/0
mtu 9014
no ip address
negotiation auto
interface GigabitEthernet0/0/0.1111
encapsulation dot1Q 1111
xconnect 10.2.1.249 100 encapsulation mpls
mtu 9000
34gyr_tntestlns03#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0.1111:1111(Eth VLAN) UP mpls 10.2.1.249:100 UP
Interworking: ethernet Local VC label 28
Remote VC label 289989

##################################################################################################################################################################################################################

5.2 Cozum XR type 4 yapmak. İlginç bir biçimde XE interworking vlan oluyor. XE halen type 4 ve XR da type 4 dondu. Tek sorun dummy vlan tag. Bunu kaldırmak içinde pass-through yapınca calısıyor. Zira XE’deki bu interworking vlan olması paketleri vlan tagli gondermesine yol açıyor. Bunun için en allta verdiğim note bak.
l2vpn
nsr
router-id 10.2.1.249
logging
bridge-domain
pseudowire
nsr
vfi
!
pw-class TN_DEFAULT_PW_CLASS
encapsulation mpls
transport-mode vlan
!
!
xconnect group TEST-XC1
p2p TEST-XC1
interface GigabitEthernet0/0/0/19.1111
neighbor ipv4 10.2.1.131 pw-id 100
pw-class TN_DEFAULT_PW_CLASS
!
!
!
!
34gyr_tntestlns03#show xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
DN pri ac Gi0/0/0.1111:1111(Eth VLAN) DN mpls 10.2.1.249:100 UP
Interworking: vlan Local VC label 170
Remote VC label 289989

DN pri ac Gi0/0/2:10(Ethernet) DN l2tp 193.192.125.226:1 DN
Interworking: none Session ID: 0
Tunnel ID: 0
Protocol State: DOWN
Remote Circuit State: DOWN
pw-class: verizon_test

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 15:42:10.462 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19.1111, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [1111, 1111]
MTU 9000; XC ID 0x1080001; interworking none
Statistics:
packets: received 53, sent 73
bytes: received 6196, sent 9676
drops: illegal VLAN 0, illegal length 0
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class TN_DEFAULT_PW_CLASS, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet VLAN, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289989 170
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19.1111 unknown
MTU 9000 9000
Control word disabled disabled
PW type Ethernet VLAN Ethernet VLAN
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 15:04:58 (00:37:08 ago)
Last time status changed: 06/11/2014 15:40:52 (00:01:15 ago)
Last time PW went down: 06/11/2014 15:40:28 (00:01:39 ago)
Statistics:
packets: received 73, sent 53
bytes: received 9676, sent 6196

##################################################################################################################################################################################################################
6 IOX XE EVC IOS XR SUBINT : XR type 5 XE type 4 olarak goruyor. Fakat ilginç bir biriçimde çalışıyor. XE type 4 olarak görmesine rağmen vlan ile gonderiyor!! EVC oldugundan dolayı.
interface GigabitEthernet0/0/0
mtu 9014
no ip address
negotiation auto
service instance 1 ethernet
encapsulation dot1q 1111
xconnect 10.2.1.249 100 encapsulation mpls
mtu 9000

interface GigabitEthernet0/0/0/19.1111 l2transport
encapsulation dot1q 1111
mtu 9014
!

l2vpn
nsr
router-id 10.2.1.249
logging
bridge-domain
pseudowire
nsr
vfi
!
pw-class TN_DEFAULT_PW_CLASS
encapsulation mpls
transport-mode ethernet
!
!
xconnect group TEST-XC1
p2p TEST-XC1
interface GigabitEthernet0/0/0/19.1111
neighbor ipv4 10.2.1.131 pw-id 100
!
!
!
34gyr_tntestlns03#show xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware

XC ST Segment 1 S1 Segment 2 S2
——+———————————+–+———————————+–
UP pri ac Gi0/0/0:1111(Eth VLAN) UP mpls 10.2.1.249:100 UP
Interworking: ethernet Local VC label 159
Remote VC label 289989

RP/0/RSP1/CPU0:test9006#show l2vpn xconnect detail
Thu Nov 6 15:53:23.771 GMT

Group TEST-XC1, XC TEST-XC1, state is up; Interworking none
AC: GigabitEthernet0/0/0/19.1111, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [1111, 1111]
MTU 9000; XC ID 0x1080001; interworking none
Statistics:
packets: received 69, sent 89
bytes: received 8084, sent 11540
drops: illegal VLAN 0, illegal length 0
PW: neighbor 10.2.1.131, PW ID 100, state is up ( established )
PW class not set, XC ID 0xc0000001
Encapsulation MPLS, protocol LDP
Source address 10.2.1.249
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set

PW Status TLV in use
MPLS Local Remote
———— —————————— —————————–
Label 289989 159
Group ID 0x4000580 unknown
Interface GigabitEthernet0/0/0/19.1111 unknown
MTU 9000 9000
Control word disabled disabled
PW type Ethernet Ethernet
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
———— —————————— —————————–
Incoming Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
Outgoing Status (PW Status TLV):
Status code: 0x0 (Up) in Notification message
MIB cpwVcIndex: 3221225473
Create time: 06/11/2014 15:04:58 (00:48:21 ago)
Last time status changed: 06/11/2014 15:51:08 (00:02:12 ago)
Last time PW went down: 06/11/2014 15:50:54 (00:02:26 ago)
Statistics:
packets: received 89, sent 69
bytes: received 11540, sent 8084

Type 4 and Type 5 PWs

Two types of PWs can be used – type 4 and type 5.

  • A type 4 PW is known as a VLAN-based PW. The ingress PE is not supposed to remove the incoming VLAN tags that are to be transported over the PW.On the EVC-based platforms such as the ASR 9000, the problem is that the incoming ACs might have a rewrite command that pops the incoming VLAN tags, so there might not be any VLAN tag to be transported over the PW. In order to address this possibility, the EVC platforms insert a dummy VLAN tag 0 on top of the frame for type 4 PWs. Type 4 PWs are configured with the transport-mode vlan command. The remote PE should be EVC-based and should understand that the top VLAN tag is the dummy tag to be stripped.However, if you use a type 4 PW between an EVC platform and a non-EVC platform, this might lead to interoperability problems. The non-EVC platform does not consider the top VLAN tag as the dummy VLAN tag and instead forwards the frame with the dummy VLAN tag 0 as the outer tag. The EVC platforms have the ability to manipulate the VLAN tags received on the incoming frame with the rewrite command. The results of that VLAN manipulation are transported over the type 4 PW with the extra dummy tag 0 on top.Recent Cisco IOS XR software releases offer the ability to use a type 4 PW without use of the dummy tag 0 with the transport-mode vlan passthrough command. The VLAN tag manipulation on the Ethernet Flow Point (EFP) must ensure that at least one tag remains because there must be a VLAN tag transported on a type 4 PW and because, in this case, there is no dummy tag that meets that requirement. The tags that remain on the frame after the incoming interface tag rewrite are transported transparently through the PW.
  • A type 5 PW is known as an Ethernet port-based PW. The ingress PE transports frames received on a main interface or after the subinterface tags have been removed when the packet is received on a subinterface. There is no requirement to send a tagged frame over a type 5 PW, and no dummy tag is added by the EVC-based platforms. The EVC-based platforms have the ability to manipulate the VLAN tags received on the incoming frame with the rewrite command. The results of that VLAN manipulation are transported over the type 5 PW, whether tagged or untagged.

INTERNETWORKING VLAN :

Ethernet VLAN Interworking Restrictions

The following restrictions apply to Ethernet/VLAN interworking:

  •  When you configure VLAN to Ethernet interworking, VLAN to Frame Relay (routed), or ATM using Ethernet (bridged) interworking, the PE router on the Ethernet side that receives a VLAN tagged frame from the CE router removes the VLAN tag. In the reverse direction, the PE router adds the VLAN tag to the frame before sending the frame to the CE router.

(If you enable the L2VPN Interworking: VLAN Enable/Disable Option for AToM feature with the interworking vlan command, VLAN ID is included as part of the Ethernet frame. See the VLAN Interworking for more information. )

  •  In bridged interworking from VLAN to Frame Relay, the Frame Relay PE router does not strip off VLAN tags from the Ethernet traffic it receives.
  •  The Cisco 10720 Internet router supports Ethernet to VLAN Interworking Ethernet only over L2TPv3.
  •  Ethernet interworking for a raw Ethernet port or a VLAN trunk is not supported. Traffic streams are not kept separate when traffic is sent between transport types.
  •  In routed mode, only one CE router can be attached to an Ethernet PE router.
  •  There must be a one-to-one relationship between an attachment circuit and the pseudowire. Point-to-multipoint or multipoint-to-point configurations are not supported.
  •  Configure routing protocols for point-to-point operation on the CE routers when configuring an Ethernet to non-Ethernet setup.
  •  In the IP interworking mode, the IPv4 (0800) translation is supported. The PE router captures ARP (0806) packets and responds with its own MAC address (proxy ARP). Everything else is dropped.
  •  The Ethernet or VLAN must contain only two IP devices: PE router and CE router. The PE router performs proxy ARP and responds to all ARP requests it receives. Therefore, only one CE and one PE router should be on the Ethernet or VLAN segment.
  •  If the CE routers are doing static routing, you can perform the following tasks: 
    •  The PE router needs to learn the MAC address of the CE router to correctly forward traffic to it. The Ethernet PE router sends an Internet Control Message Protocol (ICMP) Router discovery protocol (RDP) solicitation message with the source IP address as zero. The Ethernet CE router responds to this solicitation message. To configure the Cisco CE router’s Ethernet or VLAN interface to respond to the ICMP RDP solicitation message, issue the ip irdpcommand in interface configuration mode. If you do not configure the CE router, traffic is dropped until the CE router sends traffic toward the PE router.
    •  To disable the CE routers from running the router discovery protocol, issue the ip irdp maxadvertinterval 0 command in interface mode.
  •  This restriction applies if you configure interworking between Ethernet and VLAN with Catalyst switches as the CE routers. The spanning tree protocol is supported for Ethernet interworking. Ethernet interworking between an Ethernet port and a VLAN supports spanning tree protocol only on VLAN 1. Configure VLAN 1 as a nonnative VLAN.
  •  When you change the interworking configuration on an Ethernet PE router, clear the ARP entry on the adjacent CE router so that it can learn the new MAC address. Otherwise, you might experience traffic drops.

Restrictions

The following restrictions apply to the L2VPN Interworking: VLAN Enable/Disable Option for AToM feature, which allows the VLAN ID to be included as part of the Ethernet frame:

  •  The L2VPN Interworking: VLAN Enable/Disable Option for AToM feature is supported on the following releases: 
    •  Cisco IOS release 12.2(52)SE for the Cisco Catalyst 3750 Metro switches
    •  Cisco IOS Release 12.2(33)SRE for the Cisco 7600 series routers
  •  L2VPN Interworking: VLAN Enable/Disable Option for AToM is not supported with L2TPv3. You can configure the featue only with AToM.
  •  If the interface on the PE router is a VLAN interface, it is not necessary to specify the interworking vlan command on that PE router.
  •  The L2VPN Interworking: VLAN Enable/Disable Option for AToM feature works only with the following attachment circuit combinations: 
    •  Ethernet to Ethernet
    •  Ethernet to VLAN
    •  VLAN to VLAN
  •  If you specify an interworking type on a PE router, that interworking type must be enforced. The interworking type must match on both PE routers. Otherwise, the VC may be in an incompatible state and remain in the down state. If the attachment circuit (AC) is VLAN, the PE router can negotiate (autosense) the VC type using Label Distribution Protocol (LDP).

For example, both PE1 and PE2 use Ethernet interfaces, and VLAN interworking is specified on PE1 only. PE2 is not configured with an interworking type and cannot autosense the interworking type. The result is an incompatible state where the VC remains in the down state.

On the other hand, if PE1 uses an Ethernet interface and VLAN interworking is enabled (which will enforce VLAN as the VC type), and PE2 uses a VLAN interface and interworking is not enabled (which causes PE2 to use Ethernet as its default VC type), PE2 can autosense and negotiate the interworking type and select VLAN as the VC type.

The table below summarizes shows the AC types, interworking options, and VC types after negotiation.

Table 4 Negotiating Ethernet and VLAN Interworking Types
PE1 AC Type Interworking Option PE2 AC Type Interworking Option VC Type after Negotiation
Ethernet none Ethernet none Ethernet
Vlan none Ethernet none Ethernet
Ethernet none Vlan none Ethernet
Vlan none Vlan none Ethernet
Ethernet Vlan Ethernet none Incompatible
Vlan Vlan Ethernet none Incompatible
Ethernet Vlan Vlan none Vlan
Vlan Vlan Vlan none Vlan
Ethernet none Ethernet Vlan Incompatible
Vlan none Ethernet Vlan Vlan
Ethernet none Vlan Vlan Incompatible
Vlan none Vlan Vlan Vlan
Ethernet Vlan Ethernet Vlan Vlan
Vlan Vlan Ethernet Vlan Vlan
Ethernet Vlan Vlan Vlan Vlan
Vlan Vlan Vlan Vlan Vlan