You have been assigned to design a network for a small company with two separate departments: Marketing and Finance. The company's network requirements are as follows:
- Each department should have its own subnet.
- Each subnet should accommodate up to 50 devices.
- Both subnets should be able to communicate with each other and access the internet.
- Implement appropriate network security measures to ensure that devices within each department's subnet are protected from unauthorized access from other subnets.
- Provide detailed configurations for routers, switches, and any other necessary network devices.
Design the network topology and provide detailed configurations for the routers and switches to meet the company's requirements.