networks: command Ubuntu 18 to turn on and off a USB Ethernet card

I have a USB Ethernet card that works well with Ubuntu 18.04. Now I need to find a way to turn it on and off with a command.

I tried the command sudo ip l s dev enx00249b450d4d down (enx00249b450d4d is the name of the interface), but nothing changes.

I also installed net-tools and tested the command. sudo ifconfig enx00249b450d4d below, but he was not lucky either.

I searched the Internet, but the information on Ubuntu 18 is still scarce. Any ideas?