An IP address is like a person's ID card, but you have to think about it in a country. Can a country have two identical ID cards? There will be conflicts ... the port and MAC address of the switch do not correspond.
It does not correspond to a route, but IP and MAC addresses may correspond. Just set the settings in the route and bind the IP to the corresponding MAC address. ...