When a client's destination lies outside its own subnet, such as a website on the internet, it sends the traffic to the…