I am trying to build a circuit with 2 inputs and 1 output using Mosfets.

I will try to explain what I want.. 

The circuit should accepts 2 input DC voltages , the first input voltage called "MAIN\_SUPPLY" which will be the "ALWAYS ON" input that may vary between 22VDC to 25VDC. If the main supply goes OFF then my output LOAD should switch to the secondary input which will be treated as batteries (AS BACKUP) .. Battery Voltage may change from 20V to 30V (Due to the charging).

The circuit image is below , it should work for input voltage below 20V due to the absolute maximum ratings for VGS for each mosfets .. I am unable to make this circuit work with 24V system . Is there a solution for me to use the same circuit 24V system or is there another circuit that would help me .

I chose to use mosfets , because they can switch fast (nano seconds). 
I have 3 routers with a total power consumption of about 30 to 40 Watts. 

The below ciruit shows a complementary design using N-channel and p-channel .I don't have a problem with the P-CHANNEL mosfet . My problem is IRF2805 as its Max VGS +20VDC and i require +30V. Because I am applying 24VDC to the source pin of IRF2805 that means Gate pin must have higher voltage than its source .

When the 2N7002 or similar control MOSFET ties the gates together and pulls them to ground, the p-channel MOSFET is on. Pulling the gates above the supply rail by turning the 2N7002 off results in turning the n-channel MOSFET on. Pulling the gate of the p-channel MOSFET above the source potential has no effect; the MOSFET remains off with low leakage. The resultant switch is a break-before-make configuration, which is necessary to ensure that the secondary, or always-on, supply never has to power the whole circuit.

the label NET [USING\_BATTERY\_V] is to charge the gates of nmosfet an pmosfet. N-channel has no effect on that . [USING\_BATTERY\_V] has to be always ON 28VDC. p-channel is affected and it stops 30V to pass thus allowing MAIN\_SUPPLY to pass . When we charge the gate of 2N7002 then it turns off all gates and the load switch to secondary\_supply. I have rb260gsp as a router and it accepts voltage from 12 to 30VDC so I don't get hurt if the 2 supplies have different voltages.

I don't want to work with surface mount parts. 

I can buy any part online . 

Is there any mosfet p-channel and n-channel that accepts VGS up to 30VDC.?

I really appreciate your help. 

[![enter image description here](https://i.stack.imgur.com/fxeKI.jpg)](https://i.stack.imgur.com/fxeKI.jpg)