What is the ifconfig command used for?
Table of Contents
What is the ifconfig command used for?
Description. You can use the ifconfig command to assign an address to a network interface and to configure or display the current network interface configuration information. The ifconfig command must be used at system startup to define the network address of each interface present on a system.
What does the ifconfig command display?
The “ifconfig” command is used for displaying current network configuration information, setting up an ip address, netmask, or broadcast address to a network interface, creating an alias for the network interface, setting up hardware address, and enable or disable network interfaces.
What ifconfig means?
I. (InterFace CONFIGurator) A Mac, Unix and Linux command line utility that is used to display and manage the IP address assigned to the machine it is running in. Typing ifconfig at the command line will display all the IP interfaces currently assigned.
Should I use ifconfig?
It’s safe, it’s familiar, and you feel comfortable using it. The ifconfig command still has a lot to offer its users. Whether its displaying network settings, configuring an IP address or netmask, creating aliases for interfaces, or setting MAC address, ifconfig can handle it.
How do I know my IP address in Linux?
The following commands will get you the private IP address of your interfaces:
- ifconfig -a.
- ip addr (ip a)
- hostname -I | awk ‘{print $1}’
- ip route get 1.2.
- (Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen.
- nmcli -p device show.
How do I find my IP address in ifconfig?
Typically, ifconfig can only be used under a superuser account in your terminal. A list of all your network interfaces will appear. Following the heading of the interface whose IP address you’re searching for, you will see a “inet addr:” section containing your IP address.
What does ifconfig do in Ubuntu?
Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no arguments are given, ifconfig displays the status of the currently active interfaces.
Why is it called ifconfig?
Stands for: ipconfig stands for Internet Protocol Configuration, while ifconfig stands for Interface Configuration. The ifconfig command is supported by Unix-based operating systems. Functionality: The ipconfig command displays all the currently connected network interfaces whether they are active or not.
What command replaces ifconfig?
the ip command
Following some improvements in the kernel and the gradual move to driving network things via netlink; ifconfig has been largely replaced by the ip command. This is the main command that would be used in place of ifconfig. It will just display the IP addresses assigned to all interfaces.