Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ifconfig and interfaces [closed]

just a question for my understanding. on my mac when I use ifconfig command on my mac I get the following interfaces:

  • en0
  • en1
  • lo0
  • fw0
  • vment0
  • vment1

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.

like image 559
lollercoaster Avatar asked Jul 06 '11 03:07

lollercoaster


People also ask

Why is my ifconfig not working?

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.

What happened to ifconfig?

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.

How do I turn off ifconfig?

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.

What is a network interface ifconfig?

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.


2 Answers

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.

like image 140
mmx Avatar answered Oct 06 '22 02:10

mmx


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.

like image 21
Matthew Scharley Avatar answered Oct 06 '22 01:10

Matthew Scharley