Hi,
it's a well known issue for vLAB
Check this:
https://services.jlabs.juniper.net/kb?id=kb_article_view&sysparm_article=KB0010179&sys_kb_id=5600efc9dbe81010cccf9ec6db961971&spa=1%E2%80%8B
Flexible VLAN Tagging on CPE device:
Config on vMX-A5:
set interfaces ge-0/0/0 flexible-vlan-tagging
set interfaces ge-0/0/0 gigether-options ethernet-switch-profile tag-protocol-id 0x9100
set interfaces ge-0/0/0 unit 100 vlan-tags outer 0x9100.100
set interfaces ge-0/0/0 unit 200 vlan-tags outer 0x9100.200
set interfaces ge-0/0/0 unit 100 family inet address 192.168.100.10/24
Config on vMX-A4:
set interfaces ge-0/0/0 flexible-vlan-tagging
set interfaces ge-0/0/0 gigether-options ethernet-switch-profile tag-protocol-id 0x9100
set interfaces ge-0/0/0 unit 100 vlan-tags outer 0x9100.100
set interfaces ge-0/0/0 unit 200 vlan-tags outer 0x9100.200
set interfaces ge-0/0/0 unit 100 family inet address 192.168.100.20/24
Config on Core:
Config on vMX-A1:
set interfaces ge-0/0/3 gigether-options ethernet-switch-profile tag-protocol-id 0x9100
set interfaces ge-0/0/2 gigether-options ethernet-switch-profile tag-protocol-id 0x9100
set interfaces ge-0/0/3 unit 100 vlan-tags outer 0x9100.100
set interfaces ge-0/0/3 unit 200 vlan-tags outer 0x9100.200
set interfaces ge-0/0/2 unit 100 vlan-tags outer 0x9100.100
set interfaces ge-0/0/2 unit 200 vlan-tags outer 0x9100.200
set interfaces ge-0/0/3 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/3 unit 0 family bridge vlan-id-list 100-300
set interfaces ge-0/0/2 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/2 unit 0 family bridge vlan-id-list 100-300
set bridge-domains bridge100 vlan-tags outer 0x9100.100
set bridge-domains bridge200 vlan-tags outer 0x9100.200
BR,
Andrei
------------------------------
Andrei Cebotareanu
------------------------------
Original Message:
Sent: 12-03-2023 23:10
From: xine32
Subject: Trunking interface not working on vMX router
Hi !
I'm currently studding for Junos service provider exam. I'm using V-LAB to experiment my reading. In order to teste my knowledge I use topology "BGP - Multi-AS with Dual Route Reflectors" in V-LABs.
I load factory-default configuration and load the attached router configuration. In the topology RR1 and RR2 aren't used as host device from which I'm initiating ping request to each other to test VLAN connectivity.
As a testing purpose only I had setup on each router IRB interface on both VLAN 100 and 200 to validate the each host are properly connected on their respective VLAN on both interface to each switches. So RR1 is able to ping 10.100.111.111 and 10.100.222.222, and RR2 can ping 10.100.222.111 & 10.100.111.222.
IRB interface on VMX1 can't ping IRB on VM2. same as for RR2 can ping RR1 on either interface and can only ping one of IRB interface on each VMX even if they have interface on vlan vlan ID (I know from routing perspective my setup is actualy making no sense... but I'm only troubleshooting trunk interface ge-0/0/0 between vMX1 & 2 actually)
from the beginning I was setting it up as an enterprise style usigng
following configuration
on either side VMX1 & 2
interface ge-0/0/0 vlan-tagging
interface ge-0/0/0 unit 0 family bridge interface-mode trunk
interface ge-0/0/0 unit 0 family bridge vlan-id-list 100
interface ge-0/0/0 unit 0 family bridge vlan-id-list 200
set bridge-domains vlan-100 vlan-id 100
set bridge-domains vlan-200 vlan-id 200
since it was't working as expected, I setup the flexible style in V2 of the configuration and modify the configuration this way :
set interfaces ge-0/0/0 flexible-vlan-tagging
set interfaces ge-0/0/0 encapsulation flexible-ethernet-services
set interfaces ge-0/0/0 unit 100 encapsulation vlan-bridge
set interfaces ge-0/0/0 unit 100 vlan-id 100
set interfaces ge-0/0/0 unit 200 encapsulation vlan-bridge
set interfaces ge-0/0/0 unit 200 vlan-id 200
set bridge-domains vlan-100 domain-type bridge
set bridge-domains vlan-100 vlan-id 100
set bridge-domains vlan-100 interface ge-0/0/0.100
set bridge-domains vlan-100 routing-interface irb.100
set bridge-domains vlan-200 domain-type bridge
set bridge-domains vlan-200 vlan-id 200
set bridge-domains vlan-200 interface ge-0/0/0.200
What is actully missing in my configuration to make my trunk interface working fine in both configuration style.
I had attached a diagram of the topology with IP address on the diagram to explain setup and provide visual of the configuration.
Thank you !
------------------------------
Xine
------------------------------