Hi Alan,
Correct, based on JUNOS version and such you may not use vlan interfaces, but rather irb interfaces. And you cannot associate an irb interface with multiple L2 vlans. The l3 interface should exist on the l2 vlan that your upstream l3 gateway is using for that vlan.
It sounds like you're doing in-band management using a data port not the management port (me0 on the 2300).
So you'll need to have an irb interface that you assign the ip information to, add that as the l3-interface to the vlan, and set the static route. Something like these stanzas in your config:
vlans {
default {
vlan-id 1;
l3-interface irb.0;
}
}
interfaces
irb {
unit 0 {
family inet {
address 10.0.255.100/24;
}
}
}
}
routing-options {
nonstop-routing;
static {
route 0.0.0.0/0 next-hop 10.0.255.1;
}
}
As a best practice, I don't use VLAN 1 or irb.0. If you want you could post some of your config here and we could provide specific info back.
------------------------------
ALLYN CROWE
------------------------------
Original Message:
Sent: 06-17-2021 13:01
From: Alan Alan
Subject: EX2300-C Help with Vlan.0
I saw it mentioned somewhere that I need to forget about vlan.0 and use irb instead. However, when I enter "set vlans default l3-interface irb.0, it tells me that there is an error in parsing bridge domains/vlans.
irb cannot be associated with mutliple domains/instances.
I deleted the vlan.0 and changed it to irb.0
------------------------------
Alan Alan
Original Message:
Sent: 06-17-2021 10:03
From: Alan Alan
Subject: EX2300-C Help with Vlan.0
Hello everyone,
I'm trying to mimic the configuration I have on a 2200-C switch that recently lost all POE. I previously used Ezsetup to get the GUI working, the rest was fairly easy. Setting up the new one has not been the same experience. One sticking point is the old switch has an l3-interface vlan.0 statement for the management vlan and I don't know how create it on the new switch. Under vlans, the new switch says the default vlan-id is 1 and the l3-interface is irb.0.
I have a couple of vlans, one port set up as a trunk for all and then an access port that is just for me to test out accessing the management IP. I have a static route going to our firewall, which does all of our routing. I'm unable to access this switch from the network, and have been configuring it with Putty via the console port. I"m obviously missing something, and I was hoping someone here could help.
Thanks!
------------------------------
Alan Alan
------------------------------