Disable the NIC that doesn’t have internet access will resolve the issue.
Click the ? in the upper-right corner, and then select the NIC that says ens160.

It will expand the options for it. Click Turn Off.

Try running the command again and it should work. If the NIC is needed for a future lab, follow the same steps to turn it back on.