what is equivalent of ifconfig on sles
- User
what is equivalent of ifconfig on sles
- Assistant
On SUSE Linux Enterprise Server (SLES), the equivalent of the
ifconfigcommand is primarilyip, which is part of theiproute2package. Theipcommand provides more functionality and is recommended for modern Linux networking tasks.Here are some examples of how to use the
ipcommand:-
To display all network interfaces and their details:
ip addr -
To show a summary of network interfaces:
ip link show -
To view the routing table:
ip route show
If you need to enable or disable a network interface (similar to what you can do with
ifconfig), you can use:ip link set <interface> up # to bring up the interface ip link set <interface> down # to bring down the interfaceReplace
<interface>with the actual name of the network interface (e.g.,eth0,ens33, etc.).While may still be available in some older installations or as part of legacy support, it is generally recommended to use the command for new scripts and configurations.
-