Hot answers tagged

31

I wonder what each interface is. lo0 = loopback gif0 = Software Network Interface stf0 = 6to4 tunnel interface en0 = Ethernet 0 fw0 = Firewire en1 = Ethernet 1 vmnet8 = Virtual Interface vmnet1 = Virtual Interface Something like that. Also, which of these is the IP interface ? There hasn't been "the" IP interface since many years ago. All of them ...


17

systat -ifstat 1 Is much better. You gonna get traffic throughput, Peak and Total.


17

Neither Windows or Linux is aware of its external IP address, so they cannot natively let you know. So you have to use an external service to find out what the IP address is. Under linux, you can use curl and one of the many services that let you know what your address is: $ curl ip.alt.io 123.123.123.123 There are equivilent options for Windows, such ...


16

From Why iproute2?: Most Linux distributions, and most UNIX's, currently use the venerable arp, ifconfig and route commands. While these tools work, they show some unexpected behaviour under Linux 2.2 and up. For example, GRE tunnels are an integral part of routing these days, but require completely different tools. With iproute2, tunnels are an ...


10

Simple answer: On Linux ifconfig is obsolete. From man ifconfig: This program is obsolete! For replacement check ip addr and ip link. For statistics use ip -s link.


9

On older Apple portables, en0 is Ethernet and en1 is Airport(WiFi). Older Mac Pro's, with Ethernet jack, will have en3 as well as they have two Ethernet NICs and Airport(WiFi). In newer MacBooks without an Ethernet jack, en0 is Airport(WiFi). vmnet# is usually created by VMs(Parallels/VMWare)


8

Any routing table which has multiple default routes with equal metrics does load balancing. The case with a mac though is that it will select the first interface which is in the interface list. If you want to see and change the list, go to "open network preferences", here you will see a list of network interfaces like ethernet, airport, ppp through mobile or ...


5

The ip command is part of the iproute2 collection of utilities. According to the Linux Foundation the ifconfig command should be deprecated, but most distros still include them. iproute2 also contains the tc (traffic control) command. See usage information by using the $ man ip command. There was a discussion about this on serverfault last year.


5

There are several possible reasons.  Different interface types One possibility: ifconfig delegates printing of the hardware address to the interface implementation. Actual printing is performed by a function in the interface struct for the specific interface in net-tools-1.60 (from here), called by lib/interface.c, line 678: printf(_("HWaddr %s "), hw-&...


5

You likely have your machine set to DHCP at boot... Do: sudo vi /etc/sysconfig/networking-scripts/ifcfg-eth0 change BOOTPROTO to BOOTPROTO="static" Then add in your settings... Mine looks like this: DEVICE="eth0" BOOTPROTO="static" BROADCAST="192.168.254.255" DNS1="192.168.254.25" GATEWAY="192.168.254.254" HWADDR="F2:24:08:AE:93:10" IPADDR="192.168.254....


5

You can use curl or dig but even wget curl -s icanhazip.com # or curl -s ident.me dig +short myip.opendns.com @resolver1.opendns.com There are many site that offer this kind of services. If you need to know it often you can add in your alias file (usually ~/.bash_alias) or on .bashrc the following alias alias getmyip='dig +short ...


5

The SNR of a wired connection is not known to the kernel, as it is not exposed to any driver ABI. This has to do with the fact, that it is a much less important measure with wired connections, than it is with wireless ones. AFAIK, no hardware vendor pushes the analog concept of the wire-level SNR into the host-facing digital parts of his circuitry.


4

The script /etc/vpnc/vpnc-script is called on various events, including connect and disconnect. This sounds like you are using ubuntu or debian. If you are, the scripts /etc/vpnc/vpnc-script-disconnect-action and /etc/vpnc/vpnc-script-post-disconnect-action are called for the relevant events. You can create those files if they don't exist, and put ...


4

A Google search for What's my IP address works quite well. Your public IP address is ##.###.###.178 You can also get some information about your network to give you a good idea about what is going on. Using tools like netstat, traceroute, ssh or telnet you can figure out how you are getting on the puplic network of the Internet. There are the ...


4

I had this issue on OSX (10.10.2), running Vagrant 1.7.2 and VMWare Fusion 6.0.6, but I had the error message: Routing to the IP '192.168.1.0' should route through 'vmnet3', but instead routes through 'en0'. To fix this, I: cd /Library/Preferences/VMware\ Fusion Removed all mentions of VMNET3 from networking. (before doing this,you should back the ...


4

ifconfig on Linux is not the same as ipconfig on Windows. It will not take the same command line arguments. To learn more, try ifconfig --help and man ifconfig (in fact, you can use --help and man with virtually every Linux command)! The error you're getting is because the commands interpret \all or /flushdns as device names, and there are no devices with ...


3

Yes. The network card's onboard memory buffers are mapped into memory so the CPU can copy data into and out of them as the card sends and receives packets.


3

ifconfig provides the MAC address of your network interface, while arp provides the MAC address of other hardware on the network, such as your router.


3

Reading file /usr/local/share/munin/plugins/if_ (in port sysutils/munin-node) I see it's using the following command line to achieve just that : /usr/bin/netstat -i -b -n -I $INTERFACE PS: that file also contains a warning that those are 32 bit counters; some years ago I RTFS and verifier that's because it's easier to update atomically; I didn't verify if ...


3

(This assumes that you are running Mint, and that Mint didn't change anything from Debian on this matter) You need an auto line: auto eth1 Otherwise, the interface will not be handled by the init.d/networking script. This way, the interface is started when networking is started, reconfigured if networking is reloaded/restarted and stopped when ...


3

ifconfig is grabbing your local, NAT'd IP address. curl ifconfig.me is grabbing the public IP provided to you by your ISP.


3

Just run ifconfig as it is written there. For example: user@host:~$ ifconfig eth0 Link encap:Ethernet HWaddr 04:00:32:00:00:01 inet addr:170.0.0.0 Bcast:170.0.255.255 Mask:255.255.192.0 inet6 addr: fe80::999:zaga:fe78:7901/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:...


3

They are sub-interfaces. These are "logical" interfaces, so interfaces over a physical interface. As you can see, at the left side of the dot there is eth4, and at the right side the sub-interface ID. There might be many sub-interfaces over a single physical network card. Each of these sub-interfaces may have its own IP address, netmask, gateway and other ...


2

I suggest you read this (or the whole page, which is very well written): http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network#re_starting_a_network_interface You can run ifconfig ... up or down to activate/deactivate an interface. But this doesn't configure the interface which is necessary to connect. As stated in the slackbook page you linked ...


2

I use a cron to take care of it so I can easily change it without having to remember what script I edited. The cron job is below. */15 * * * * [[ -d /sys/devices/virtual/net/tun0 ]] || /usr/sbin/vpnc /etc/vpnc/yourconf.conf


2

http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/ there are extended directions at the bottom of this page using the "ln" command. it will work on 10.6.6 after you wait for "connection timeout" error when joining a fake ssid.


2

For eth0: sudo ifconfig en0 192.168.100.0 netmask 255.255.255.0 The route add default 192.168.100.1 may need to be adjusted if it isn’t the default route. EDIT: Fixed the route. Also don’t generally use the zero address for a node in the network unless you know what you are doing.


2

You can get your vendor-specified hardware MAC address using ethtool: ethtool -P eth0 To reset the MAC address to this value, you can do something like: sudo ifconfig eth0 hw ether $(ethtool -P eth0 | awk '{print $3}')


2

I am not sure if I understand correctly. But you have 1 Wireless gateway and 3 Devices connected to it? So doing ifconfig only shows PHYSICAL hardware/connections on the PC that ran the command - not the connections available or other device. ifconfig stands for interface configuration An interface if a virtual or physical layer on the computer that ...



Only top voted, non community-wiki answers of a minimum length are eligible