Cisco – Connecting/configuring two switches to a router?

ciscopacket-tracerrouterswitch

I'm a first year network engineering student and just got into Cisco today, so please bear with me..

I'm trying to setup two switches to connect to each other via a router

.
like this

but I can't seem to make devices from the A switch to connect to devices from the B switch. I tried searchinig on Youtube and found one that works but it uses a DHCP server to assign IPs to the connected devices like this..

.
dhcp

Is there a way to connect devices from the A switch to B switch via a router without DHCP server ? If yes, can you help me configure it? I have uploaded the .pkt file if needed

Best Answer

You don't need DHCP to make them talk to each other.

First make sure you can ping the default gateway (it's the LAN facing interface of the router Fa0/0 and Fa0/1).

Check the IP addressing. The router has two directly attached networks. To make it work only proper IP addressing is required. Did you configure VLAN's ?