Generally, if there are two CAN networks, they are separate for a reason, so you can't just join them together.
There are several reasons why two CAN networks can't be joined.
1) They run at different baud rates. If the networks were joined, nodes would see messages of the wrong speeds, which they would interpret as an error.
2) Some or all message identifiers (IDs) on one network mean something different on the other network.
3) There is too much traffic on each network, so that joining them would overload the combined network.
Also, each CAN network is terminated with 120 Ohm resistors at each end, and each node is designed to drive 60 Ohms. If you combine two networks, each node would be driving 30 Ohms and might not work. However, it probably would work in most conditions, and it is relatively easy to fix.
Can you tell us what you are trying to do by joining the networks?