The "ip" command is a utility for managing network interfaces and routes in Linux. It is part of the iproute2 suite of networking tools. Here are some examples of using the "ip" command:
ip addr
This will display the name, status, and IP address of each network interface.
ip route
This will display the destination, gateway, and interface for each route in the routing table.
ip route add DESTINATION via GATEWAY dev INTERFACE
Replace "DESTINATION", "GATEWAY", and "INTERFACE" with the appropriate values for your network.
ip addr add ADDRESS/PREFIX dev INTERFACE
Replace "ADDRESS/PREFIX" and "INTERFACE" with the appropriate values for your network.
ip addr del ADDRESS/PREFIX dev INTERFACE
Replace "ADDRESS/PREFIX" and "INTERFACE" with the appropriate values for your network.
Note: These are just a few examples of using the "ip" command. There are many other options and subcommands available with the "ip" command. To view the full list of options and subcommands, run the "ip -h" or "ip --help" command.