a command from Linux POSIX operating system able to give information about the IP network.
Questions tagged [ifconfig]
149 questions
79
votes
3 answers
Can someone please explain ifconfig output in Mac OS X?
When I do ifconfig on my Mac, I get a list of the following interfaces:
lo0
gif0
stf0
en0
fw0
en1
vmnet8
vmnet1
I wonder what each interface is. Also, which of these is the IP interface ? I don't see eth0 anywhere, which I assume is the standard…
euphoria83
- 1,019
36
votes
3 answers
what is the difference between eth1 and eno1?
What is the difference between the network interface name ethX (e.g. eth1) and enoX (e.g. eno1), given by ifconfig or lshw ?
Covich
- 471
27
votes
2 answers
How does Mac OSX prioritize network interfaces when routing?
To give a concrete example, how does OSX choose which of these default entries from netstat -nr to route to?
Destination Gateway Flags Refs Use Netif Expire
0/1 10.10.99.100 UGSc 0 …
studgeek
- 2,455
21
votes
2 answers
ip versus ifconfig
After reading this answer, I began my quest for the difference between ip and ifconfig for *nix systems. I soon learned that ip had "more" features than ifconfig, but what's the real difference? Is there any reason not to use ifconfig when it…
Pylsa
- 31,383
19
votes
2 answers
How to see network traffic per interface in FreeBSD?
want to see an amount of traffic passed through interface since boot. It's an ISPManager VDS with FreeBSD 8.0, and
ifconfig -L epair521b -B
does nothing.
Want to have output like Linux's ifconfig:
lo Link encap:Local Loopback
...
RX…
kagali-san
- 1,734
16
votes
5 answers
How to restore MAC address in Linux?
I have changed my MAC address in my Linux machine using ifconfig. Now the problem is I have not saved my original MAC address. I want to restore it without rebooting.
Is there a way to do it?
narayanpatra
- 697
15
votes
1 answer
What is creating the utun0 network interface on OSX? What is for? What is it exactly?
What is creating the utun0 network interface on OSX? What is it being used for? What is it exactly?
The interface only appears after connecting to the Ethernet or turning on the Wi-Fi and goes away after restart. It does not show up in the Network…
Ray de Groat
- 151
11
votes
1 answer
Network interface for VPN connection explanation
I'd like to know exactly what is happening when I create a connection with my company's VPN.
When I connect (using OpenVPN), I see the following network interface by using ifconfig:
utun3: flags=8051 mtu 1500
…
wheresmycookie
- 239
10
votes
5 answers
Change IP address permanently with ifconfig in Debian
I know there are several tutorials on how to manually change IP settings. However, I have yet to find a solution that fits my needs. I need to be able to script something that changes the IP address settings of a host machine. I have tried…
Richard
- 971
7
votes
4 answers
How to detect VPN disconnection with vpnc?
What is the easiest way to detect that a vpnc connection on Linux/Ubuntu has disconnected?
Manually, I think the way to detect is to check whether the interface (tun0) appears in /sbin/ifconfig output. Is there a better way to find out immediately,…
Abhinav
- 2,040
7
votes
1 answer
ifconfig shows multiple network interfaces
When I run ifconfigon my Macbook air 2018 with MacOS Mojave 10.14.6 I get this:
lo0: flags=8049 mtu 16384
options=1203
inet 127.0.0.1 netmask 0xff000000
inet6 ::1…
Sean
- 83
6
votes
1 answer
What does the "-->" notation mean in the output of ifconfig?
I have a VPN connection set up on my OS X machine, and when I run ifconfig in the terminal I get the following response:
utun0: flags=8051 mtu 1500
inet 10.8.0.6 --> 10.8.0.5 netmask 0xffffffff
Can someone…
clcain
- 123
6
votes
3 answers
Run ifconfig without sudo
I have an embedded Linux running on a imx6 platform. This is a freescale embedded linux. The problem is that there is no sudo available for this linux, but I need to activate and deactivate the wlan0 device by a user. I tried to add the user to the…
Irgendw Pointer
- 279
6
votes
1 answer
VMware vmnet2 routes collide with en0
I am getting the following error when starting a vagrant box:
gajus:vagrant gajus$ vagrant up
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Checking if box 'puppetlabs/centos-6.5-64-puppet' is up to date...
==> default:…
Gajus
- 391
6
votes
1 answer
How to get current value of txqueuelen on Linux
I know the following command can set txqueuelen in Linux:
ifconfig eth1 txqueuelen 4096
But how can I get current txqueuelen of a specific interface? I've tried ifconfig eth1 txqueuelen, it only returns the usage of ifconfig command.
Could anyone…
Judking
- 183