Questions tagged [ifconfig]

ifconfig (short for interface configuration) is a system administration utility

ifconfig (short for interface configuration) is a system administration utility in Unix-like operating systems to configure, control, and query TCP/IP network interface parameters from a command line interface (CLI)

213 questions
171
votes
3 answers

ifconfig missing after Ubuntu 18.04 install

I've just installed Ubuntu 18.04 and selected "minimal install". I then tried to run ifconfig in the terminal and got the following message -bash: ifconfig: command not found How come the net-tools package is not installed by default any more?
JiiB
  • 1,813
65
votes
5 answers

What is the difference between Network Manager and 'ifconfig' 'ifup', etc?

Ubuntu seems to provide at least two network "toolsets" (for lack of a better term). I'm running into conflicts between these two. Network Manager Something which is more like the traditional network tools (e.g. ifconfig, 'ifup',…
34
votes
7 answers

How can I display my machine's IP address on a TTY login screen?

The server I administrate has a dynamic IP address assigned by DHCP, which is inconvenient. When I want to SSH into it, I have to first log in by hand and use ifconfig to find its current IP address. Thankfully, it lives about two feet from where I…
arthropodSeven
  • 525
  • 1
  • 5
  • 12
30
votes
3 answers

cannot find device eth0

I'm new to ubuntu and need to install the ubuntu xenial server (16.04) edition to install MongoDB into a VirtualBox. After installation I tried to change from dhcp to a static ipv4 address. So I changed the /etc/network/interfaces : auto lo …
Mic
  • 401
23
votes
3 answers

How do I make the script to run automatically when tun0 interface up/down events?

I use VPN client to connect to my corporate servers. It creates tun0 interface after starting the client. I've written script which install specific routes point to tun0 interface and rest to use normal wifi connection. So that, only my office…
sudurais
  • 1,052
20
votes
1 answer

Is it possible to use Ifconfig to switch an interface to DHCP and if not, what is the best way?

I have just set up a new Ubuntu server and I am going to be doing a lot of networking tests. During setup, I simply skipped the network step. I now need to switch between DHCP and an address quite often. I know I can easily give a port an address…
wilhil
  • 1,795
18
votes
7 answers

What is the active MAC Address of my computer?

While looking to find the MAC Address of my computer as it appears to a wireless network, it was recommended that I run ifconfig. Having executed that command in the Terminal, I noticed that, unlike my other machine, the connected network seemed to…
16
votes
1 answer

How to reset ifconfig counters?

When i run ifconfig eth0 see following lines: eth0 Link encap:Ethernet HWaddr 08:00:27:42:81:a7 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe42:81a7/64 Scope:Link UP…
oddone
  • 831
  • 1
  • 7
  • 8
15
votes
3 answers

Why doesn't my Wi-Fi adapter show up as wlan0 in 16.04?

I just installed Ubuntu 16.04 on a separate HDD, and I noticed two oddities: Whereas on 14.04 (on my main HDD) my USB Wi-Fi dongle shows up as wlan0, on 16.04 it shows up as wlx112233445566. (Real MAC redacted) Also, using the hw ether parameter to…
15
votes
5 answers

eth0 NO-CARRIER, ifconfig shows no IP address

I left Ubuntu and came back after a while so I don't remember much. Now I'm trying to get my IP address. All I'm getting from running ifconfig is eth0 Link encap:Ethernet HWaddr 3c:97:0e:11:22:0d UP BROADCAST MULTICAST MTU:1500 …
13
votes
1 answer

Change network mac address using "ip" command

Usually I would be able to change my wifi mac address with the ifconfig command like : ifconfig hw ether XX:XX:XX:XX:XX:XX Ubuntu have however deprecated ifconfig in behalf of the "ip" command, so I was wondering if there is an way to get…
kimusan
  • 281
11
votes
3 answers

How to rename an Ethernet interface?

As my built-in NIC was not supported by Ubuntu out-of-the-box I was forced to use a USB NIC for temporary installation-time Internet connection. And the USB NIC has taken the eth0 name making the built-in NIC to become eth1. Sure, this doesn't…
Ivan
  • 58,745
10
votes
2 answers

Add static ARP entries when network is brought up

I have some pretty dumb IP devices on a subnet with my Ubuntu server, and the server receives streaming data from each device. I have run into a problem in that when an ARP request is issued to the device while it is streaming data to the server,…
John Lyon
  • 1,041
9
votes
4 answers

The command could not be located because '/sbin' is not included in the PATH environment variable

I have a severe problem today: when I type ifconfig it does not show ip configuration on ubuntu 12.04. Can anyone help me on this? Here is the result of ifconfig: Command 'ifconfig' is available in '/sbin/ifconfig' The command could not be located…
Farooq
  • 267
9
votes
1 answer

Where are my wireless error logs?

When I type ifconfig it shows: eth1 Link encap:Ethernet HWaddr e4:d5:3d:70:81:b3 inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::e6d5:3dff:fe70:81b3/64 Scope:Link UP BROADCAST RUNNING…
1
2 3
14 15