Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  VPLS and Q-in-Q Port

    Posted 05-29-2009 06:03

    hi

     

    I want to find out about the following scenario and how to set it up.

     

    we will have multiple customers connected an an access switch with a Q-in-Q trunk port heading back to an MX box.

     

    we want to place the customers frames into a seperate VPLS instance depending on the outer Qtag.  The Outer Qtag is simply for customer seperation at each access switch.

     

    Can this be done and what do I need?

     

    thanks



  • 2.  RE: VPLS and Q-in-Q Port
    Best Answer

    Posted 06-12-2009 16:01

    This config should work.

     

     

    jnpr@Themis-MX960-RE0# show interfaces ge-4/0/3
    flexible-vlan-tagging;
    encapsulation flexible-ethernet-services;
    unit 10 {
        encapsulation vlan-vpls;
        vlan-tags outer 10 inner 5;
        family vpls;
    }

    [edit]
    jnpr@Themis-MX960-RE0# show routing-instances
    VPLS {
        instance-type vpls;
        vlan-id all;
        interface ge-4/0/3.10;
        protocols {
            vpls {
                encapsulation-type ethernet-vlan;
                no-tunnel-services;
                vpls-id 10;
                neighbor 2.2.2.2;
            }
        }
    }

     

    This is LDP-based VPLS

     

    note the vlan protocol id on the MX is 0x8100 for both tags. You could change it if you want.

     

    jnpr@Themis-MX960-RE0# run show interfaces ge-4/0/3             
    Physical interface: ge-4/0/3, Enabled, Physical link is Up
      Interface index: 244, SNMP ifIndex: 367
      Link-level type: 52, MTU: 1522, Speed: 1000mbps, BPDU Error: None,
      MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
      Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online
      Device flags   : Present Running
      Interface flags: SNMP-Traps Internal: 0x4000
      CoS queues     : 8 supported, 8 maximum usable queues
      Current address: 00:1f:12:8f:6a:97, Hardware address: 00:1f:12:8f:6a:97
      Last flapped   : 2009-06-12 15:30:51 PDT (00:28:29 ago)
      Input rate     : 67442952 bps (145351 pps)
      Output rate    : 66916120 bps (144215 pps)
      Active alarms  : None
      Active defects : None

      Logical interface ge-4/0/3.10 (Index 87) (SNMP ifIndex 436)
        Flags: SNMP-Traps 0x4000
        VLAN-Tag [ 0x8100.10 0x8100.5 ] In(pop) Out(push 0x8100.10)
        Encapsulation: VLAN-VPLS
        Input packets : 23677036
        Output packets: 23655713
        Protocol vpls, MTU: 1522
          Flags: Is-Primary

      Logical interface ge-4/0/3.32767 (Index 88) (SNMP ifIndex 437)
        Flags: SNMP-Traps 0x4004000 VLAN-Tag [ 0x0000.0 ]  Encapsulation: ENET2
        Input packets : 0
        Output packets: 0
        Protocol multiservice, MTU: Unlimited
          Flags: None

    [edit]
    jnpr@Themis-MX960-RE0# run show vpls mac-table

    MAC flags (S -static MAC, D -dynamic MAC,
               SE -Statistics enabled, NM -Non configured MAC)

    Routing instance : VPLS
     Bridging domain : __VPLS__, VLAN : 5
       MAC                 MAC      Logical
       address             flags    interface
       00:00:c0:01:01:01   D        ge-4/0/3.10         
       00:00:c0:01:01:02   D        lsi.1048579         

     

     
    jnpr@Themis-MX960-RE0# run show vpls connections
    Layer-2 VPN connections:

    Legend for connection status (St)   
    EI -- encapsulation invalid      NC -- interface encapsulation not CCC/TCC/VPLS
    EM -- encapsulation mismatch     WE -- interface and instance encaps not same
    VC-Dn -- Virtual circuit down    NP -- interface hardware not present
    CM -- control-word mismatch      -> -- only outbound connection is up
    CN -- circuit not provisioned    <- -- only inbound connection is up
    OR -- out of range               Up -- operational
    OL -- no outgoing label          Dn -- down                      
    LD -- local site signaled down   CF -- call admission control failure      
    RD -- remote site signaled down  SC -- local and remote site ID collision
    LN -- local site not designated  LM -- local site ID not minimum designated
    RN -- remote site not designated RM -- remote site ID not minimum designated
    XX -- unknown connection status  IL -- no incoming label
    MM -- MTU mismatch               MI -- Mesh-Group ID not availble
    BK -- Backup connection          ST -- Standby connection
    PF -- Profile parse failure      PB -- Profile busy

    Legend for interface status
    Up -- operational           
    Dn -- down

    Instance: VPLS
      VPLS-id: 10
        Neighbor                  Type  St     Time last up          # Up trans
        2.2.2.2(vpls-id 10)       rmt   Up     Jun 12 15:56:37 2009           1
          Remote PE: 2.2.2.2, Negotiated control-word: No
          Incoming label: 262148, Outgoing label: 262146
          Local interface: lsi.1048579, Status: Up, Encapsulation: VLAN
            Description: Intf - vpls VPLS neighbor 2.2.2.2 vpls-id 10



  • 3.  RE: VPLS and Q-in-Q Port

    Posted 06-23-2009 14:51

    wow

     

    thanks for the detailed answer, 

     

    follow up questions:

     

    1. vlan-tags outer 10 inner 5 = If I want to include all inner customer tags? [.*]? 


    Apart from that I believe I have enough to bash away in the lab, thanks