Monday, August 15, 2011

L2VPN Vlan mode Ethernet over Mpls (EoMPLS) Configuration Example on Cisco IOS XR

interface GigabitEthernet0/0/1/10.1 l2transport
 encapsulation dot1q 10
 rewrite ingress tag pop 1 symmetric

l2vpn
 pw-class test1
  encapsulation mpls
   transport-mode vlan

 xconnect group test
  p2p test
   interface GigabitEthernet0/0/1/10.1
   neighbor 10.10.10.2 pw-id 110
    pw-class test1
  

RP/0/RSP0/CPU0:R5_ESN_CER#show l2vpn xconnect neighbor 10.10.10.2 detail

Group test, XC test, state is up; Interworking none
  AC: GigabitEthernet0/0/1/10.1, state is up
    Type VLAN; Num Ranges: 1
    VLAN ranges: [10, 10]
    MTU 8986; XC ID 0x440003; interworking none
    Statistics:
      packets: received 8259, sent 7933
      bytes: received 4740234, sent 4236300
      drops: illegal VLAN 0, illegal length 0
  PW: neighbor 10.10.10.2, PW ID 110, state is up ( established )
    PW class vlan, XC ID 0x440003
    Encapsulation MPLS, protocol LDP
    PW type Ethernet VLAN, control word enabled, interworking none
    PW backup disable delay 0 sec
    Sequencing not set
      MPLS         Local                          Remote                       
      ------------ ------------------------------ -----------------------------
      Label        16038                          311019                       
      Group ID     0x2000300                      0x0                          
      Interface    GigabitEthernet0/0/1/10.1     unknown                      
      MTU          8986                           8986                         
      Control word enabled                        enabled                      
      PW type      Ethernet VLAN                  Ethernet VLAN                
      VCCV CV type 0x2                            0x16                         
                   (LSP ping verification)        (LSP ping verification)      
                                                  (BFD PW FD only)             
      VCCV CC type 0x7                            0x7                          
                   (control word)                 (control word)               
                   (router alert label)           (router alert label)         
                   (TTL expiry)                   (TTL expiry)                 
      ------------ ------------------------------ -----------------------------
   

When we test the connectivity between CPE devices:

CPE1#ping 10.1.1.2 repeat 10 size 1800 df  
Type escape sequence to abort.
Sending 10, 1800-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
Packet sent with the DF bit set
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 1/1/4 ms

1 comment:

  1. What are the devices used in this scenario? Can you please provide the configurations of other end box(10.10.10.2) as well.

    Im trying to bring up p2p L2VPN between ASR9K and NPEG2, vc stays up, but CE to CE is not reachable.

    Regards,
    Darshak

    ReplyDelete