Why ifconfig doesnt work




















In some cases. Installing net-tools is not enough directly. Sean Sean 71 1 1 silver badge 2 2 bronze badges. Zac Zac 2 2 silver badges 12 12 bronze badges. Soteris 92 Soteris 92 41 2 2 bronze badges. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta.

Now live: A fully responsive profile. Visit chat. Linked Related Hot Network Questions. The command Code: Select all nmcli.

The addresses you will use will be dictated by your network and your hardware. Now, on with the how-to. Gathering Information The first thing most people learn with the ifconfig command is how to find out what IP address has been assigned to an interface. This is usually done with the command ifconfig and no flags or arguments.

To do the same with the ip command, it is run as such: ip a This command will list all interfaces with their associated information Figure 1 above.

To do this, issue the command: ip -4 a Or, if you only want to see IPv6 information: ip -6 a What if you only want to see information regarding a specific interface? You can list information for a wireless connection with the command: ip a show wlan0 You can even get more specific with this command. If you only want to view IPv4 on the wlan0 interface, issue the command: ip -4 a show wlan0 You can even list only the running interface using: ip link ls up Modifying an Interface Now we get into the heart of the command… using it to modify an interface.

Suppose you wanted to assign a specific address to the first ethernet interface, eth0. Asked 12 years ago. Active 12 years ago. Viewed 7k times. Some do Improve this question. Alex Alex 7, 24 24 gold badges 68 68 silver badges 97 97 bronze badges. What kind of machines are they? What distro? Note that that error message indicates that the program couldn't be found, not that it didn't work. There's a difference — David Z. Add a comment. And a minimal install would be without X.

I edited your question to address solely ifconfig because it would be considered too broad and possibly primarily opinion-based as it was. You might be interested in how to find a package name by the command name and How do I list the default installed packages? Add a comment. Active Oldest Votes. Improve this answer. To further clarify, the command ip is included in the minimal installation of Ubuntu You may find ifconfig installed, if you install one of the various packages which still haven't been updated to use ip , or if you upgraded from an older release of Ubuntu.

But you should be aware that ifconfig may not be present on modern systems, and should not rely on it. And actually ifconfig was deprecated in Use ip -c a to highlight the IP addresses with colors. Minimalist Docker installs may not have ip installed, do apt install -y iproute2 in those cases. Show 5 more comments. Brend Brend 4 4 silver badges 3 3 bronze badges.



0コメント

  • 1000 / 1000