vMX
Highlighted
vMX

Changing the vlan label to juniper MX-80

2 weeks ago

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

5 REPLIES 5
Highlighted
vMX

Re: Changing the vlan label to juniper MX-80

2 weeks ago

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-exam...

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

 

 

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

 

Kudos are appreciated too 

 

 

Regards,

Nadeem

 

Highlighted
vMX

Re: Changing the vlan label to juniper MX-80

[ Edited ]
2 weeks ago

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-...

 

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 Smiley Happy

 

Please mark "Accepted Solution" if this helps you.

Kudos are always appreciated Smiley Happy

 

Highlighted
vMX
Solution
Accepted by topic author Ildar Yagafarov
2 weeks ago

Re: Changing the vlan label to juniper MX-80

2 weeks ago

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

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
vMX

Re: Changing the vlan label to juniper MX-80

2 weeks ago

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-t...
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.

Highlighted
vMX

Re: Changing the vlan label to juniper MX-80

a week ago

Hi Ildar,

 

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

 

Regards

Nadeem