Using DHCP for a physical interface in which IPSEC is running over a VTI OSPF neighbor establish Full/DROther however for about a minute then drops and reestablishes its neighborship. If I change the interface from DHCP to static IP address without changing anything else OSPF works as expected.
Logs:
Jul 19 13:03:12 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Loading -> Full): scheduling new router-LSA origination
Jul 19 13:03:59 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Full -> Init): scheduling new router-LSA origination
Jul 19 13:04:02 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1: Initial DBD from Slave, ignoring.
Jul 19 13:04:02 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1 Negotiation done (Master).
Jul 19 13:04:02 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Loading -> Full): scheduling new router-LSA origination
Jul 19 13:04:49 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Full -> Init): scheduling new router-LSA origination
Jul 19 13:04:52 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1: Initial DBD from Slave, ignoring.
Jul 19 13:04:52 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1 Negotiation done (Master).
Jul 19 13:04:52 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Loading -> Full): scheduling new router-LSA origination
Jul 19 13:05:39 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Full -> Init): scheduling new router-LSA origination
Jul 19 13:05:42 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1: Initial DBD from Slave, ignoring.
Jul 19 13:05:42 corp-fw-b ospfd[2298]: Packet[DD]: Neighbor 1.1.1.1 Negotiation done (Master).
Jul 19 13:05:42 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Loading -> Full): scheduling new router-LSA origination
Jul 19 13:06:29 corp-fw-b ospfd[2298]: nsm_change_state(1.1.1.1, Full -> Init): scheduling new router-LSA origination
Config:
interfaces {
ethernet eth0 {
address dhcp
duplex auto
hw-id 0c:c4:7a:db:ef:8c
smp_affinity auto
speed auto
}
loopback lo {
address 10.126.1.10/32
}
vti vti0 {
address 10.126.2.1/30
ip {
ospf {
network point-to-point
}
}
}protocols {
ospf {
area 0.0.0.0 {
network 10.126.2.0/30
network 10.126.1.10/32
}
log-adjacency-changes {
}
neighbor 10.126.2.2 {
}
parameters {
router-id 10.126.1.10
}
}