I'm trying to configure different routing-instances for certain IRBs on an EX4600. I've got one IRB dedicated for management purposes (i.e. ssh connections) that should use routing-instance r1 (type: virtual router) and everything else should use routing instance r2 (also virtual router). Since all vlans arrive via the same trunk port I can't use physical ports in the vrf configuration like in this example: https://www.juniper.net/documentation/en_US/junos/topics/topic-map/virtual-routing-instances.html. The very moment I commit the changes the ssh session becomes unresponsive, so I guess management services need to use the default instance 🙂
The option I can think now is to set the interface irb in the routing-instance instead of physical port. The situation with this is that all VLANs should have a l3-interface to route traffic since the physical port should be removed from both routing instances and stay in the default instance.
Another options is using the management interface. Starting in Junos OS 17.3R1, you can confine the management interface in a dedicated management instance by configuring the management-instance configuration statement at the [edit system] hierarchy level.
Here is the documentation if you want to check this option.