Vlan – Setting a loopback/management address through a layer 2 trunk

juniper-junosloopbacktrunkvlan

We have two EX4200 switches in the following configuration:

Router (.1)=====static route=====(.2) EX_01========trunk========EX_02

I want to configure a loopback or management interface on EX_02. Junos doesn't allow ethernet switching on a loopback address, only inet. Is there another way to set the loopback address on EX_02 so that it's routable back to EX_01?

I've read elsewhere that some people will just run a cable from the me0 port into an access port on the front of the switch. I may end up just doing that; seems unnecessary though.

Best Answer

If you are set on using a loopback address to manage the device, then you will need to add two IP addresses - one in-band l3-interface attached to the VLAN, and one on the loopback interface. Your upstream device will then need a route to the loopback with a next-hop of the in-band VLAN address.

Otherwise, just use an in-band address attached to a dedicated management VLAN trunked between your devices.

I'm not sure there is anything to be gained by plugging me0 around into the front ports.