When using vlan interface on OSPF to form an adjacency, session is not getting established.
On Juniper Networks EX4650, when using vlan interface for OSPF it does not show any neighbors.
{master:0}[edit]
user@switch# show protocols ospf
area 0.0.0.0 {
interface vlan.2;
}
{master:0}
user@switch> show ospf neighbor
EX4650 switches uses ELS configuration for VLAN interfaces. We should use IRB instead of vlan.interfaces.
user@switch# delete protocols ospf area 0 interface vlan.2
user@switch# set protocols ospf area 0 interface irb.2
OSPF should get full after using the correct configuration:
Address Interface State ID Pri Dead
192.168.0.1 irb.2 Full 10.85.241.9 128 32
You can check further information for OSPF on the techlibrary: https://www.juniper.net/documentation/us/en/software/junos/ospf/topics/topic-map/ospf-overview.html