JunOS : Interface must already be defined commit error

By | July 30, 2013

Getting this error trying to add a layer 3 routing interface (l3-interface) to a VLan on JunOS?

root@EX4200# set vlans v1000 l3-interface vlan.1000
root@EX4200# commit comment "add l3-iface to vlan 1000"
[edit vlans v1000 l3-interface]
'l3-interface vlan.1000'
Interface must already be defined under [edit interfaces]
error: commit failed: (statements constraint check failed)
[edit]
root@EX4200#

 

This mean there is no IP subnet set on that VLan, such as :

set interfaces vlan unit 1000 family inet address 0.0.0.0/00