Questions tagged [ifconfig]

a command from Linux POSIX operating system able to give information about the IP network.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

What are ifconfig.me/forwarded IP addreses?

When I use the ifconfig.me service, by running the following command: $> curl ifconfig.me/forwarded I returns a list of IP addresses. does anyone know what this IP addresses are. I am behind a ...
simbro's user avatar
  • 103
1 vote
2 answers
233 views

Linux: Any distro-independent way to change and persist IP settings?

Are there any distribution-independent mechanisms for tasks like assigning static IP addresses, adding or deleting routes, etc and, then, also be able to persist the changes so made? AFAIK, each ...
Harry's user avatar
  • 851
2 votes
1 answer
9k views

How to set NIC in promiscuous mode on mac book air?

With MacOSx, I am trying to run my nic in promiscuous mode and then use tshark / tcpdump to capture traffic. Option 1: ifconfig en0 promisc but I get this message: ifconfig: promisc: bad value ...
0x90's user avatar
  • 322
3 votes
1 answer
10k views

curl ifconfig.me and ifconfig showing different results

If I run curl ifconfig.me I get one IP and if I run ifconfig, I get other IP's. Why is it so ?
epsilones's user avatar
  • 155
1 vote
1 answer
10k views

How to run 'ifconfig wlan0 down/up' with a comm user?

I need to run ifconfig wlan0 down and ifconfig wlan0 up with my common user. How can I perform this?
GarouDan's user avatar
  • 585
9 votes
5 answers
61k views

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 ...
Richard's user avatar
  • 931
-2 votes
1 answer
256 views

Configure the Ethernet Interface from the Command Line

I have connected to a Virtual Server with an SSH client using IP address: 172.xx.xx.154/22 I have been asked to configure eth1 to 172.xx.xx.155/24 with gateway IP Address of: 172.xx.xx.1 Any help ...
user1455140's user avatar
5 votes
1 answer
8k views

ifconfig - who decided that MAC address should be lowercase?

On some Linux computers, ifconfig displays the MAC address ("HWaddr") hex digits in uppercase. On other Linux computers, the [a-f] digits are lowercase. Why the difference? Are there two competing ...
OJW's user avatar
  • 2,297
0 votes
1 answer
1k views

ip address seen in ifconfig in os x which is not present in network setting

I have a macbook and some while back I must have assigned it an ip address of 192.168.2.1 on the ethernet interface. The problem is that the ip is still seen even when I have removed it from the ...
Samir Sogay's user avatar
0 votes
1 answer
646 views

Network conf - ever time must set ifconfig

I need to autoconfigure network. Network Manager is removed because I need lightweight system. After system starts networks doesn't work. #service networking status networking stop/waiting #service ...
Lukasik's user avatar
  • 47
0 votes
1 answer
1k views

2 NICs conflicts on Windows 7 together

I have 2 NIC's on my computer. I have connected one with a GigE camera and the other to a switch which in turn connects it to a video server. If only one device (i.e., GigE camera or video server) is ...
Vinshi's user avatar
  • 3
1 vote
1 answer
2k views

What causes a TX overrun, and how to troubleshoot?

On a Linux machine acting as a router I have a large number of TX 'overruns'. The machine routes through a tunnel interface (which is where the overruns are occuring). What would cause these ...
Rauffle's user avatar
  • 654
2 votes
1 answer
4k views

ifconfig ignores alias on IPv6

When I add an IPv4 address for the interface eth0:0 with ifconfig, it is created correctly: ifconfig eth0:0 add 192.168.10.10 This can be verified by ifconfig or "ip a". When I add an IPv6 address ...
Marten Lehmann's user avatar
27 votes
2 answers
37k views

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 ...
studgeek's user avatar
  • 2,425
1 vote
0 answers
2k views

ifconfig won't let me set MAC address that doesn't begin with 00:26

I have an Intel 1000 BGN Wi-Fi card and I tried to set its MAC address to 00:00:de:ad:be:ef, but this didn't work: [root@localhost .]# ifconfig wlan0 hw ether 00:00:de:ad:be:ef SIOCSIFHWADDR: Cannot ...
djmati11's user avatar
  • 339
2 votes
0 answers
575 views

Script to join WPA2 Enterprise wifi

When I head to work with my MBP running OSX 10.7, I have to go through this series: Join Other Network Enter SSID select Security = WPA2 Enterprise generate a pw via my RSA soft token Join ...
mbb's user avatar
  • 2,536
1 vote
1 answer
3k views

Install Ubuntu, eth0 not detected?

I have installed Ubuntu laptop Toshiba Satellite L640?, and I had difficulty, that is how to enable network interfaces, eth0 was not detected when running ifconfig.
deni hadi's user avatar
0 votes
1 answer
2k views

Easy persistent network config on ubuntu server

I'm having some problems configuring a static IP on my ubuntu server. What is the easiest way to configure IP, netmask, nameserver and default gateway on eth0? I've tried modifying the /etc/network/...
Filip Haglund's user avatar
3 votes
4 answers
723 views

Three computers accessing internet but only two network interfaces showing in ´ifconfig´, why?

My gateway(router) is connected to DSL. The gateway connects to 1 wireless transceiver device. 2 fixed computers connect to the router. At the moment of me doing ifconfig 2 fixed computers were ...
Bentley4's user avatar
  • 1,928
0 votes
2 answers
3k views

How to remove redundant inet from ifconfig in Mac OS

Lately I have assigned the en3 interface (which is in reality a USB-Ethernet converter device) the IP address of 192.168.2.1 I did this for Internet Sharing, i.e. to share the Ethernet (en0) with USB-...
omero72's user avatar
4 votes
5 answers
4k views

What cross-platform command-line tool allows me to get my external IP address?

How do I get my external IP address from the Windows and Linux command line? On Windows, ipconfig shows an internal network IP address, but it does not show the external one.
user217631's user avatar
1 vote
1 answer
701 views

ifconfig fails to install route if interface ip is existing broadcast address

Consider the following setup: X@Y:~$ sudo ip link add link eth0 name eth0.3 type vlan id 3 X@Y:~$ sudo ip link add link eth0 name eth0.2 type vlan id 2 X@Y:~$ sudo ifconfig eth0.2 192.168.2.1/30 X@Y:~...
user avatar
0 votes
1 answer
3k views

why do I get a different MAC address using arp and ifconfig?

# ifconfig eth1 Link encap:Ethernet HWaddr 00:1e:8c:10:xx:xx # arp Address HWtype HWaddress Flags Mask Iface 192.xxx.x.x ether 38:72:c0:cc:...
François ッ Vespa ت's user avatar
0 votes
1 answer
193 views

How can i set my vm to have exclusive access to my ethernet port in mac os x lion?

I have a vmware of windows 7 on osx lion. I am on a corporate network that assigns IPs via DHCP through ethernet, and i also have an airport card thats connected to a 4g hotspot. This corporate ...
NDBoost's user avatar
  • 368
1 vote
1 answer
955 views

how to force an illegal netmask in ubuntu

I want to force a netmask on my Ubuntu machine. For example, I want 11.0.0.1 to get a netmask of 255.255.255.0 I tried editing /etc/network/interfaces and I forced the desired netmask, but as soon as ...
user avatar
1 vote
1 answer
4k views

What does eth0:cp1 refer to in ifconfig on CentOS?

I have a basic ubuntu background and am not familiar with the output of an ifconfig on a CentOS server I'm looking at, can someone explain the eth0:cp1, and eth0:cp2 entries here? How are they ...
davidparks21's user avatar
  • 1,602
1 vote
1 answer
2k views

What does the field `Memory` mean in `ifconfig`?

I find a field Memory in the result of ifconfig command. I am not quite clear about its meaning. By googling, I get some hint from unSpawn's post on this thread that Memory indicate what memory ...
Summer_More_More_Tea's user avatar
1 vote
1 answer
1k views

Configure IP v6 on Linux machine

I use this command to assign a site-scope IP address: $ sudo ifconfig eth0 inet6 add fee3::216:cbff:fe94:1a86/64 $ Check it with ifconfig: $ ifconfig ... eth0 Link encap:Ethernet HWaddr 00:16:...
user avatar
3 votes
2 answers
1k views

How to set txqueuelen on Mac OS X

How can I set the transmit queue length for a network interface on Mac OSX? On linux the command would be ifconfig en0 txqueuelen 5 but OSX doesn't recognize txqueuelen as a valid option. Where ...
Leopd's user avatar
  • 356
1 vote
2 answers
9k views

Trying to figure out route add to mask an IP to a router/gateway in Bash

Not even sure if I worded this correctly, but here’s what I’m trying to do roughly. Take an IP such as: 192.168.100.0 and mask it to 255.255.255.0, and set the gateway of that route to another IP ...
agmcleod's user avatar
  • 203
16 votes
5 answers
26k views

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's user avatar
0 votes
0 answers
1k views

why does my time warner cable modem connection enter dead period states every 20 mins?

My wifi connection (from my MacBook running Snow Leopard) to a Time Warrner cabel model and router has a recurring connection problem. Every 20 minutes or so it will enter a "dead state" where no ...
Andrew Arrow's user avatar
0 votes
2 answers
14k views

How can I remove a network interface from being listed in Linux?

A software I use gets confused if there is irda0 (or some other uncommon device) in the ifconfig -a output. What is the easiest way of preventing that device from getting listed? I'm looking for an ...
Erdem's user avatar
  • 1
0 votes
3 answers
2k views

Assigning static IP address to Debian machine?

I don't know how to use a static IP address on a Debian machine. Can anyone help? I have the static IP address 83.222.248.100. This is what I've tried: $ cp /etc/network/interfaces /etc/network/...
simon's user avatar
  • 163
76 votes
3 answers
98k views

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 ...
euphoria83's user avatar
21 votes
2 answers
7k views

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 ...
Pylsa's user avatar
  • 31k
3 votes
2 answers
6k views

How do you change your Airport or Ethernet MAC address in Mac OS X 10.6?

I have a MacBook Pro and would like to set a custom MAC address for either my Airport WiFi card, or Ethernet port. In older versions of Mac OS X, you could do it like this: $ sudo ifconfig en0 ether ...
Dave's user avatar
  • 827
0 votes
1 answer
2k views

What layer does ifconfig operate at?

What layer does ifconfig operate at when setting a MTU. Does it set the MTU for the physical device (Network Interface Layer) or the MTU of the packet (Internet Layer)? By executing ifconfig eth0 ...
Alex's user avatar
  • 245
1 vote
1 answer
1k views

why does "ipconfig getifaddr ppp0" fail?

I am trying to find my IP on VPN (PPTP) so I tried "ipconfig getifaddr ppp0" but it gave me "get if addr ppp0 failed, (os/kern) failure." Why does it fail and what should I do instead? ifconfig shows ...
ceiling cat's user avatar
  • 4,477
19 votes
2 answers
34k views

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: ...
kagali-san's user avatar
  • 1,724
4 votes
2 answers
1k views

Is `ip` to supersede `ifconfig`

A friend of mine said that ip is supposed to be the successor of ifconfig and iwconfig — yet I found no Wikipedia article about it and have never seen anyone mention or recommend it online even though ...
Baldur's user avatar
  • 153
1 vote
2 answers
5k views

Delete eth0 avahi from the ifconfig list

Hello this is the response I get from ifconfig. Now I have two eth0 things being showed up. I need to delete the second one which says eth0:avahi. I posted my ifconfig's response on a site as I has ...
macha's user avatar
  • 213
2 votes
1 answer
13k views

ifconfig return "unknown interface: no such device"

I'm trying to install a Linux driver for my wireless network card (D-Link DWL-G510) on my Red Hat Linux 7.1 machine with a 2.4.37.9 kernel. I downloaded the serial monkey driver from the sourceforge ...
methon.dagger's user avatar
3 votes
3 answers
43k views

Spoof MAC address from IP command

I'm trying to spoof my MAC address on a modified version of Linux (Android). The main problem is that because it has been stripped down, the ifconfig command has been taken out, and I only can use the ...
GuyNoir's user avatar
  • 476
0 votes
4 answers
201 views

Network configuration

This is my situation: Router A: IP 192.168.1.1 Mask 192.168.1.0/24 - Connected to the internet. Server: - Interface eth0: inet addr:10.1.1.125 Mask:255.255.255.0 (connected to router B) - Interface ...
user avatar
0 votes
2 answers
1k views

Slackware cannot reconnect to local network

Hi guys this problem is frustrating me. After trying a lot of things to setup my wireless card, I decide to test it by shutting down LAN interface ifconfig eth0 down. Then, when I turn the LAN ...
phunehehe's user avatar
  • 805
7 votes
4 answers
9k views

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 ...
Abhinav's user avatar
  • 2,050

1 2
3