Questions tagged [ifconfig]

ifconfig (short for interface configuration) is a system administration utility in Unix-like operating systems to configure, control, and query TCP/IP network interface parameters from a command line interface (CLI) or in system configuration scripts.

ifconfig (short for interface configuration) is a system administration utility in Unix-like operating systems to configure, control, and query TCP/IP network interface parameters from a command line interface (CLI) or in system configuration scripts. Ifconfig originally appeared in 4.2BSD as part of the BSD TCP/IP suite.

You can use the ifconfig command to assign an address to a network interface and to configure or display the current network interface configuration information.

Read more about ifconfig at Wikipedia..

224 questions
4
votes
1 answer

iwconfig - /proc/net/wireless does not exist

I am trying to use iwconfig to get info about wlan0. When I try I get: wlan0 no wireless extensions. ifconfig seems to printout normally (includes an ip address for the connection). The machine appears to have Wireless Extensions v22 installed,…
Austin
  • 318
  • 1
  • 3
  • 16
4
votes
1 answer

Ignite network interface configuration, cluster via specified network interface

I am running a Ignite cluster on boxes with multiple network interfaces configured. I have 3 different network interfaces with different speeds. i see Ignite finds 3 ip addresses INFO: Non-loopback local IPs: xxx, yyy, zzz then INFO: Successfully…
4
votes
4 answers

Increase ephemeral ports by adding extra ethernet interface

Is there a way to double the number of ephemeral ports and work around the 16-bit limit? I have tried creating virtual ethernet interfaces over eth0, and hope that would lift the limit. Although the application is utilizing the new virtual IPs in…
unjc
  • 63
  • 1
  • 9
4
votes
1 answer

How to fetch the logical name of a NIC card given the ip address associated with it ?

I am working on a shell script which needs to know the logical name (eth0, eth1, etc) associated with a given ip. The current procedure I am employing is to parse the output of ifconfig using filters and getting the NIC card associated with a given…
csurfer
  • 296
  • 1
  • 7
3
votes
3 answers

Parsing data from ifconfig with awk or sed?

I am trying to parse some data from ifconfig output with sed, but I am not able to do it correctly. I want the command to extract just the number I am after. For example, I am interested in extracting the bytes sent: eth1 Link encap:Ethernet …
fazineroso
  • 7,196
  • 7
  • 31
  • 42
3
votes
1 answer

Why “ifconfig” docker command responds "bash: ifconfig: command not found" on Windows?

I installed docker on my windows PC. I opened console and typed docker ps. That command works properly. Next I tried to execute command if config but it was not found: $ ifconfig bash: ifconfig: command not found Is it because of Windows…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
3
votes
0 answers

Cannot set tap interface up using C++

I was able to create a persistent tap interface using this reference. Now I am trying to make the interface up using like this: fd = iff_alloc(tap_name, IFF_TAP|IFF_NO_PI|IFF_UP); However, I still see that the interface is down when I use the…
Ahmed Hussein
  • 715
  • 1
  • 15
  • 38
3
votes
1 answer

How to raise the buffer value with ethtool on the network

It occurred the Dropped packet with checking ifconfig command tool. The Dropped counted up with a lot of volumes. $ ifconfig eth0 eth0 Link encap:イーサネット ハードウェアアドレス 4c:72:b9:f6:27:a8 inetアドレス:192.168.1.102 ブロードキャスト:192.168.1.255 …
Ubunkun
  • 253
  • 1
  • 5
  • 12
3
votes
1 answer

libnl/nl80211 equivalent of iw_set_ext

I started writing a code to handle wifi card using iwconfig/ioctl when I realised that it is depricated and most of applications uses nl80211. I started reading its source code but there is no docs and code is a bit complicated. How can I do simple…
Mateusz
  • 604
  • 8
  • 20
3
votes
3 answers

Monitor Mode on Mac - with Scapy

I am trying to understand what happens when I put on mac in monitor mode. Without the monitor mode, using ifconfig, I find that 'en0' is the active interface. However, in monitor mode, this is what I get: lo0:…
KDK
  • 55
  • 1
  • 10
3
votes
5 answers

Bash script issue

I can run this command fine, with the output I want: ifconfig eth0 | grep HWaddr | awk '{print $5}' However, when I set the command to a variable, and print the variable, I get an error: CASS_INTERNAL=`ifconfig eth0 | grep HWaddr | awk '{print…
user375566
3
votes
2 answers

Docker with different gateways on containers

Firstly, sorry for my bad english. We have a ubuntu server which has 2 eth interface and 2 different ip. We want to host 2 apps with 2 docker containers and in containers we must use self-domain (domains which we redirect to ips) ip's as gateway.…
u.unver34
  • 133
  • 1
  • 3
  • 11
3
votes
4 answers

Parse ifconfig with Bash to get current IP address (wifi or ethernet)

I'm trying to output my current IP address using a bash script. I'm trying to wrap my head around awk and managed the following: /sbin/ifconfig $1 | grep "inet" | awk '$1 == "inet" {gsub(/\/.$/, "", $2); print $2}' which…
doque
  • 2,723
  • 6
  • 27
  • 44
3
votes
3 answers

Solaris: Programmatic interface to ifconfig?

I'm looking for a programmatic interface to the Solaris ifconfig(1M) command. Apparently Linux has the getifaddrs(3) command, but as far as I can tell this has not been ported to Solaris. Short of attempting to use the code at the link above, is…
David Citron
  • 43,219
  • 21
  • 62
  • 72
3
votes
1 answer

OpenBSD, connecting to WPA WiFi with website authentication

I frequently travel by buses, most of which have some sort of WiFi onboard. The usual way to connect to them with an automagical connection manager like Wicd is to select the network and then, upon launching the browser some additional…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30
1 2
3
14 15