[j-nsp] OSPF from secondary IP addresses

Vlad vlad at doom.net
Tue Oct 21 17:13:41 EDT 2003


Hello,

I have a Juniper m20 with a GigE interface and multiple IP addresses
configured on that interface (secondary IP addresses in cisco speak).
I can form OSPF adjacency with other equipment on my network just fine.
However it appears my Juniper is also trying to form adjacency from the other
IP addresses configured on the GigE.   My other network equipment doesn't have
those networks configured on any interface, so a tcpdump on a workstation or
'debug ip ospf adj' on cisco  will show:

*Oct 15 12:57:12: OSPF: Rcv pkt from 2.5.240.6, GigabitEthernet0/0/0, area 0.0.0.0 : src not on the same network
*Oct 15 12:57:13: OSPF: Rcv pkt from 2.2.13.1, GigabitEthernet0/0/0, area 0.0.0.0 : src not on the same network
*Oct 15 12:57:13: OSPF: Rcv pkt from 2.2.37.1, GigabitEthernet0/0/0, area 0.0.0.0 : src not on the same network
*Oct 15 12:57:13: OSPF: Rcv pkt from 2.2.41.1, GigabitEthernet0/0/0, area 0.0.0.0 : src not on the same network
*Oct 15 12:57:13: OSPF: Rcv pkt from 2.5.251.1, GigabitEthernet0/0/0, area 0.0.0.0 : src not on the same network

It appears the Juniper is trying to form adjacency and sourcing OSPF
packets from every single IP addresses configured on my Junipers' GigE
interface.  I only want OSPF packets to be sourced from one particular
network.

I believe I'm looking for juniper  equivalent to ciscos 
'network 2.5.224.0 0.0.0.255' configuration directive under 'router ospf'

Does such a thing exist, or do I have to craft something with a policy
or filter?  Or is something else going on?

Thanks
-v


My Juniper config:

foo> show configuration protocols ospf   
export ospf-out;
area 0.0.0.0 {
    interface ge-0/0/0.0;
}

foo> show configuration policy-options policy-statement ospf-out 
term 5 {
    from protocol [ static direct ];
    then accept;
}
then reject;


My cisco config:

foo#sh run | begin ospf
router ospf 100
 router-id 2.5.224.3
 log-adjacency-changes
 redistribute connected subnets
 redistribute static subnets
 passive-interface default
 no passive-interface GigabitEthernet0/0/0
 network 2.5.224.0 0.0.0.255 area 0.0.0.0
!

-v


More information about the juniper-nsp mailing list