Ethernet Switching
Highlighted
Ethernet Switching

VLAN Translation on Trunk Port

[ Edited ]
2 weeks ago

Hi Guys,

 

i try to translate one vlan tag on a Trunk Port. 

For Example xe-0/1/0.0 is a Trunk port and have 4 vlan tags on it. I need to Translate one tag into another ID outgoing to Interface ge-0/0/0.

 

I Try to use the vlan swap option but i get this error:

"Mapping operation "swap" cannot be defined for trunk interface"

So its not possible to Translate a vlan-id on a trunk port ?

 

Model: ex4200-48p
Junos: 15.1R7.9

4 REPLIES 4
Highlighted
Ethernet Switching

Re: VLAN Translation on Trunk Port

2 weeks ago

Hello,

 

On EX4200, VLAN translation on trunk port is done differently, with "vlan-rewrite" knob

https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/vlan-rewr...

 

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
Ethernet Switching

Re: VLAN Translation on Trunk Port

[ Edited ]
2 weeks ago

There is no configuration "vlan-rewrite"

Also there is no "interface-mode trunk" it named "port-mode trunk"

 

show interface 
description "10G to ....";
mtu 9000;
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ 629 3000 3001 3002 ];
}
}
}

{master:0}[edit interfaces xe-0/1/0]

 

 

{master:0}[edit interfaces xe-0/1/0 unit 0 family ethernet-switching]
admin@sx111# set vlan ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
+ members Membership for this interface (name or id)
{master:0}[edit interfaces xe-0/1/0 unit 0 family ethernet-switching]
admin@sx111# set vlan

Highlighted
Ethernet Switching
Solution
Accepted by topic author Kev1904
2 weeks ago

Re: VLAN Translation on Trunk Port

2 weeks ago

Ok, got it. 

Its not supported by this Platform.

 

 

{master:0}[edit interfaces xe-0/1/0]
admin@sx111# show
description "10G to..";
mtu 9000;
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ XXX XXX XXX XXX ];
}
##
## Warning: configuration block ignored: unsupported platform (ex4200-48p)
##
##
## Warning: 'vlan-rewrite' statement supported only under trunk interface mode
##
vlan-rewrite {
translate 629 3000;
}
}
}

{master:0}[edit interfaces xe-0/1/0]

Highlighted
Ethernet Switching

Re: VLAN Translation on Trunk Port

2 weeks ago
Feedback