A novel approach to generate continuously tunable microwave and millimeter-wave (mm-wave) signals is proposed and experimentally demonstrated. It is realized by a polarization modulator and a Brillouin-assisted sideband-filtering technique. The output optical signal of modulator is controlled to suppress the odd sidebands by a polarization controller and polarizer. After that, by adjusting the power of input microwave signal to remove the optical carrier, and then the strong second-order sideband of the modulated signal can be deeply suppressed by using stimulated Brillouin scattering (SBS) in a fiber ring while the fourth order sidebands keep unchanged. Therefore, only fourth-order sidebands signals exist at the input of the PD, frequency octupling can be realized. If the even sidebands are suppressed, the strong first order sidebands of the modulated signal will be deeply suppressed by the SBS filter, leaving the third sidebands, frequency sextupling can also be realized. As the SBS-assisted sideband-filter is narrow bandwidth and wavelength-independent, a wavelength-flexible way of optical generation mm-wave signals can be successfully realized.