You are building a small network in the office. You will need to connect two different network segments that have different network addresses. What device will you use connect them?

A. Hub
B. Router
C. Switch
D. Server