just a question for my understanding. on my mac when I use ifconfig
command on my mac I get the following interfaces:
I don't understand why there are so many. I understand that eth0 would be for LAN connections, and that en0 is the wireless connection. But macbook only has one airport..so why en1 as well? not sure what vments are for either.
If you tried to install the ifconfig utility and failed, it's because ifconfig cannot be individually installed. It is included with the net-tools package. To be able to use the ifconfig command, you have to install the net-tools package first.
ifconfig has been officially deprecated for the ip suite, so while many of us are still using the old ways, it is time to put those habits to rest and move on with the world. Since there is no "without options" variant of the ip command, let's look at how to display IP addresses associated with interfaces.
5. How to Disable a Network Interface. The “down” or “ifdown” flag with interface name (eth0) deactivates the specified network interface. For example, the “ifconfig eth0 down” or “ifdown eth0” command deactivates the eth0 interface if it is in an inactive state.
ifconfig stands for "interface configuration." It is used to view and change the configuration of the network interfaces on your system. Running the ifconfig command with no arguments, like this: ifconfig. ...displays information about all network interfaces currently in operation.
There's no eth0
on default configuration of OS X. By default, en0
and en1
are your physical network connections (wired and wireless LAN). lo0
is the loopback interface. fw0
is the IP over Firewire interface; and vmnet
interfaces are installed by VMware for network communication with virtual machines.
en0
and en1
are your physical wired/wireless cards.
lo0
is the loopback device, which is used for entirely internal communication, ie. between two applications both running on your PC.
fw0
is for networking over firewire I believe.
vment*
- is used by VMWare Fusion to provide networking to your virtual machines, and there's likely to be one per VM you have set up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With