Switching

 View Only
  • 1.  Management IP for switches operating as L2 only

    Posted 01-12-2026 12:07

    I have two  EX4100s in a VC that are handling routing for a building. There are other EX4100s  in different closets around the building that are trunking all VLANs to the VC.

    VC <-fiber-> Switch1 <-fiber-> Switch2 <-fiber->Back to VC.

    The VC has fiber transceiver on et-0/1/0 to Switch 1 and on et-0/1/1 to Switch 2. Switch 1 and 2 are similarly connected  All three link operate as trunks.

    Switches 1 and 2 don't have any IPs or routing config but I want to add a management IP to these access switches so they can be managed remotely. What is the best way to set this up? 

    With the config below,  I can ping the IRB for the management VLAN  on the VC (10.1.101.1), but cannot ping outside the subnet because Switch 1 has no route to anywhere else and AFAIK I cannot specify a default gateway to 10.1.101.1.

    VC

    set interfaces irb unit 101 family inet address 10.1.101.1/24

    set vlans DCMgmt vlan-id 101

    set vlans DCMgmt l3-interface irb.101

    set  interfaces et-0/1/0 unit 0 family ethernet-switching interface-mode trunk

    set  interfaces et-0/1/0 unit 0 family ethernet-switching vlan members all

    Switch 1

    set interfaces irb unit 101 family inet address 10.1.101.2/24

    set vlans DCMgmt vlan-id 101

    set vlans DCMgmt l3-interface irb.101

    set  interfaces et-0/1/0 unit 0 family ethernet-switching interface-mode trunk

    set  interfaces et-0/1/0 unit 0 family ethernet-switching vlan members all

    Thanks



    ------------------------------
    JONATHAN SINCLAIR
    ------------------------------


  • 2.  RE: Management IP for switches operating as L2 only
    Best Answer

    Posted 01-13-2026 11:10

    Hi Jonathan,

    Maybe you could add a route like this on switch 1 and switch 2:

    set routing-options static route 0.0.0.0/0 next-hop 10.1.101.1

    That would impact traffic on the DCMgmt vlan but would not impact traffic flowing through the switch on other vlans.  If it were me that's what I would try anyway. 



    ------------------------------
    CHRIS ROBERTS
    ------------------------------



  • 3.  RE: Management IP for switches operating as L2 only

    Posted 25 days ago

    Yup, that was it. I had a problem with this before and thought it wasn't working, but that was a problem with xe vs et interface prefix. Static route works.

    Thanks!



    ------------------------------
    JONATHAN SINCLAIR
    ------------------------------