Unlike a switch that forwards frames by MAC address, a ___ forwards packets between different IP networks by consulting…