Hi xavierpaul,
Nellikka's observations are correct. You need to have the interface vlan-id assignment in the logical-system EDGE-2, but the vlan-tagging config has to be globally. Please see the output below from a MX, I am using xe-5/1/1 in my case :
labroot@jtac-mx480-r2001-re0# show interfaces xe-5/1/1 | display set
[edit]
labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 vlan-id 2500
[edit]
labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1
[edit]
labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 150
[edit]
labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt
[edit]
labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data
[edit]
labroot@jtac-mx480-r2001-re0# set interfaces xe-5/1/1 vlan-tagging
[edit]
labroot@jtac-mx480-r2001-re0# show | compare
[edit logical-systems EDGE-2 interfaces xe-5/1/1 unit 0]
+ vlan-id 2500;
+ family inet {
+ address 1.1.1.3/24 {
+ vrrp-group 4 {
+ virtual-address 1.1.1.1;
+ priority 150;
+ preempt;
+ accept-data;
+ }
+ }
+ }
[edit interfaces]
+ xe-5/1/1 {
+ vlan-tagging;
+ }
[edit]
labroot@jtac-mx480-r2001-re0# commit check
configuration check succeeds
[edit]
labroot@jtac-mx480-r2001-re0#
labroot@jtac-mx480-r2001-re0# commit
commit complete
[edit]
labroot@jtac-mx480-r2001-re0# show logical-systems EDGE-2
interfaces {
xe-5/1/1 {
unit 0 {
vlan-id 2500;
family inet {
address 1.1.1.3/24 {
vrrp-group 4 {
virtual-address 1.1.1.1;
priority 150;
preempt;
accept-data;
}
}
}
}
}
}
[edit]
tks,
Abhishek