D2D communications are considered as effective means to achieve vehicle-to-vehicle (V2V) communications, which can be used to improve the performance in vehicular ad hoc networks (VANETs). In this project propose a, we investigate the resource allocation and interference management based on clustering mechanism in the D2D communications under laying VANETs aiming to optimize resource utilization efficiency. Firstly, given the transmission resources of intra-cluster for D2D communications, we design a vehicle clustering algorithm to improve intracluster resource efficiency and nullify the intra-cluster interference. Secondly, by analyzing the wireless service in VANETs, a cooperative communication scheme with optimized resource utilization is proposed to maximize intra-cluster spectral efficiency. Thirdly, when uplink spectrums are shared, interference neutralization (IN) model is developed to manage inter-cluster interference, while each vehicle is equipped with one antenna and there is no extra antenna for interference cancellation. In accordance with the IN model, a cross layer optimization frame for multi-hop VANETs is proposed to maximize the end to end throughput of multiple coexisting communication sessions. To evaluate the performance, we select the method without cooperative communication and IN as a benchmark and compare it against the method with cooperative communication only and the method with both cooperative communication and IN. The simulation results show that the method that uses cooperative communication and IN can dramatically increase the throughput. Furthermore, the throughput gains increase along with vehicle density growing in VANETs.