vMX

Expand all | Collapse all

Changing the vlan label to juniper MX-80

Jump to Best Answer
  • 1.  Changing the vlan label to juniper MX-80

    Posted 05-20-2020 03:32

    Hello everyone! There was a problem with changing the vlan label to juniper MX-80. That is, vlan 5 comes to me, you need to accept it on xe-0/0/0, change it to vlan 60 and send it to another interface xe-0/0/1.
    There is some consideration to do so. Is this true? Thank.
    set bridge-domains vlan-5 domain-type bridge
    set bridge-domains vlan-5 vlan-id 5
    set bridge-domains vlan-5 interface xe-0/0 / 0.5
    set bridge-domains vlan-5 interface xe-0/0 / 1.5

    set interfaces xe-0/0/0 unit 5 description LAN1
    set interfaces xe-0/0/0 unit 5 encapsulation vlan-bridge
    set interfaces xe-0/0/0 unit 5 vlan-id 5
    set interfaces xe-0/0/0 unit 5 input-vlan-map pop
    set interfaces xe-0/0/0 unit 5 output-vlan-map push

    set interfaces xe-0/0/1 unit 5 description LAN1
    set interfaces xe-0/0/1 unit 5 encapsulation vlan-bridge
    set interfaces xe-0/0/1 unit 5 vlan-id 60
    set interfaces xe-0/0/1 unit 5 input-vlan-map pop
    set interfaces xe-0/0/1 unit 5 output-vlan-map push



  • 2.  RE: Changing the vlan label to juniper MX-80

     
    Posted 05-20-2020 03:52

    Hi Ildar,

     

    I suppose you are using vlan-rewrite feature to achevie this functionality.

    This is supported on MX80.

     

    https://www.juniper.net/documentation/en_US/junos12.3/topics/example/layer-2-bulk-configuration-example-vlan-translation-with-lists-example-mx-solutions.html

    https://www.juniper.net/documentation/en_US/junos13.2/topics/reference/configuration-statement/vlan-rewrite-edit-interfaces.html

     

     

    If this solves your problem, please mark this post as "Accepted Solution" so we can help others too

     

    Kudos are appreciated too 

     

     

    Regards,

    Nadeem

     



  • 3.  RE: Changing the vlan label to juniper MX-80

    Posted 05-20-2020 03:53

    Hi Ildar,

     

    If I understand your query correctly, I believe you are trying to perform VLAN rewrite. Please correct me if I have understood this wrongly.

     

    Please check "Stacking a vlan tag" in the below document helps you:

    https://www.juniper.net/documentation/en_US/junos/topics/topic-map/tagged-vlans.html

     

    You can check the below for example configuration for translation:

    https://www.juniper.net/documentation/en_US/junos/topics/example/layer-2-bulk-configuration-example-vlan-translation-with-lists-example-mx-solutions.html

     

    Also, please refer to this old discussion. I am pasting the link below. It should help you:

    https://forums.juniper.net/t5/Ethernet-Switching/Vlan-translation-on-MX/td-p/312880

     

    The output of a working VLAN mapping:

    user@host> show interfaces ae5.2
    Logical interface ae5.2 (Index 345) (SNMP ifIndex 582)
    Flags: SNMP-Traps 0x24004000 VLAN-Tag [ 0x8100.2 ] In(swap-push .5 0x0000.4) Out(pop-swap .2) Encapsulation: VLAN-Bridge
    Statistics Packets pps Bytes bps
    Bundle:
    Input : 1293839 424 131971384 346792
    Output: 1293838 424 131971350 346792
    Protocol bridge, MTU: 1522

     

    Hope this helps 🙂

     

    Please mark "Accepted Solution" if this helps you.

    Kudos are always appreciated 🙂

     



  • 4.  RE: Changing the vlan label to juniper MX-80
    Best Answer

    Posted 05-20-2020 04:07

    Hello,

     

    You don't need to do explicit push/pop in this simple case, where bridge domain with VLAN normalization is used.

    Your config should look like:

     

    set bridge-domains vlan-5 domain-type bridge
    set bridge-domains vlan-5 vlan-id 5
    set bridge-domains vlan-5 interface xe-0/0/0.5
    set bridge-domains vlan-5 interface xe-0/0/1.5
    
    set interfaces xe-0/0/0 unit 5 description LAN1
    set interfaces xe-0/0/0 unit 5 encapsulation vlan-bridge
    set interfaces xe-0/0/0 unit 5 vlan-id 5
    set interfaces xe-0/0/0 unit 5 family bridge
    
    set interfaces xe-0/0/1 unit 5 description LAN1
    set interfaces xe-0/0/1 unit 5 encapsulation vlan-bridge
    set interfaces xe-0/0/1 unit 5 vlan-id 60
    set interfaces xe-0/0/1 unit 5 family bridge

     

     

    HTH

    Thx

    Alex



  • 5.  RE: Changing the vlan label to juniper MX-80

    Posted 05-21-2020 06:57

    Dear colleagues nadeemm and bmanvita, thank you, but I couldn’t configure it using your methods. I implemented the following
    unit 5 {
                description NET_1;
                encapsulation vlan-bridge;
                vlan-id 5;
                family bridge {
                    interface-mode trunk;
                    ##
                    ## Warning: 'vlan-id-list' cannot be used on interface with vlan-id / vlan-tags
                    ##
                    vlan-id-list [5 60];
                    vlan-rewrite {
                        translate 5 60;

    The error is visible above.
    When trying to save, it gave out
    [edit interfaces xe-0/0/1 unit 5 family bridge vlan-rewrite]
      'translate 5'
        trunk-vlan-id should not be present in vlan-id-list / inner-vlan-id-list
    error: configuration check-out failed
    I tried to solve the problem by creating
    set logical-systems REWRITE_VLAN interfaces xe-0/0/2 unit 66 family bridge
    as said here https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/interfaces-configuring-the-vlan-id-list-for-a-trunk-interface.html
    But this led to a new problem.
    [edit routing-instances]
      'XXX_x.x.x.0 / 24'
        '/' character in name is invalid when a logical-system is defined
    error: configuration check-out failed

    I decided not to experiment and did as aarseniev suggested and a special thanks to him for that. This is in my case the only working method.



  • 6.  RE: Changing the vlan label to juniper MX-80

     
    Posted 05-22-2020 00:10

    Hi Ildar,

     

    Thank you for updating. Its glad to know that solution provided by aarseniev was helpful in resolving the issue.

     

    Regards

    Nadeem