This article gives an example for configuring OSPF on channelized interface.
Configuring OSPF on each of the port channelized interfaces:
{master:0}[edit]root@jtac-QFX5200-32C-r1004# show interfaceset-0/0/2:0 { unit 0 { family inet { address 1.1.0.4/24; } }}et-0/0/2:1 { unit 0 { family inet { address 1.1.1.4/24; } }}et-0/0/2:2 { unit 0 { family inet { address 1.1.2.4/24; } }}et-0/0/2:3 { unit 0 { family inet { address 1.1.3.4/24; } }}{master:0}[edit]root@jtac-QFX5200-32C-r1004# show protocols ospfarea 0.0.0.0 { interface et-0/0/2:0.0; interface et-0/0/2:1.0; interface et-0/0/2:2.0; interface et-0/0/2:3.0;}{master:0}[edit]root@jtac-QFX5200-32C-r1004#
You should have four neighbors:
{master:0}[edit]root@jtac-QFX5200-32C-r1004# run show ospf neighborAddress Interface State ID Pri Dead1.1.0.5 et-0/0/2:0.0 Full 1.1.0.5 128 391.1.1.5 et-0/0/2:1.0 Full 1.1.0.5 128 381.1.2.5 et-0/0/2:2.0 Full 1.1.0.5 128 371.1.3.5 et-0/0/2:3.0 Full 1.1.0.5 128 37
This applies to 40G interfaces, with the note that you can channelize to 10G (therefore 4 times 10G).