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
11
votes
1 answer

How do I set an ip address for TUN interface on OSX (without destination address)?

How do I set an IP address for a TUN interface on OSX? I cannot figure out how to set up an ip address for my interface without specifying a destination IP. I don't want to do that- I'm want to more or less build a tunnel to an arbitrary address at…
nflacco
  • 4,972
  • 8
  • 45
  • 78
9
votes
2 answers

Vagrant IP address setup for port listening

I run this command inside my vagrant instance: printf 'HTTP/1.1 302 Moved\r\nLocation: https://www.eff.org/' | nc -l 2345 On my host computer, I want to access :2345 and be redirected to https://www.eff.org/. Redirect does…
Uylenburgh
  • 1,277
  • 4
  • 20
  • 46
9
votes
1 answer

Get list of 'Friendly interface names' on a Mac (Airport, Ethernet, etc)

I'm developing an application in RealBASIC, but I need the list of interface names to populate a dropdown box. Parsing ifconfig didn't work (got eth0, eth1, lo, etc.). I need the name that is displayed in system preferences (Ethernet, Airport,…
Justin
  • 808
  • 1
  • 7
  • 15
8
votes
4 answers

C/C++ Linux MAC Address of all interfaces

I am using the following code to retrieve all MAC addresses for current computer: ifreq ifr; ifconf ifc; char buf[1024]; int sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); if (sock == -1) { ... }; ifc.ifc_len = sizeof(buf); ifc.ifc_buf = buf; if…
user1173626
  • 153
  • 1
  • 2
  • 8
8
votes
1 answer

List ALL devices on local network?

I have tried arp -a a lot and it has listed some devices, but not all of them. ifconfig shows my ip address and mac address and some other useful information, but it doesn't show all of the devices on the local network. Is there a command that shows…
Robert Moore
  • 2,207
  • 4
  • 22
  • 41
7
votes
1 answer

Magento 2 : ifconfig in xml for module enable/disable

I have created configuration for enable/disable module. If I select "Yes" from configuration settings, my module is visible for front otherwise not. For this , I have added ifConfig condition in checkout_cart_index.xml. The xml code is given…
Niks
  • 615
  • 2
  • 14
  • 26
7
votes
1 answer

"netcfg wlan0 up" Not working from application

I have custom hardware and custom android operating system. Devices are unable to stay connected to the Wireless network after going through day to day workflow. I have used WifiManager.WifiLock in application to make sure hardware running up. But…
Mr. Borad
  • 391
  • 2
  • 24
5
votes
2 answers

Bind outgoing traffic to eth0 instead of eth0:1

We added a second IP-Adress to a linux (debian) machine to implement a second SSL-certificate to a new Apache vhost. Our ifconfig now looks like this: eth0 Link encap:Ethernet Hardware Adresse 00:0c:29:1b:ab:6c inet…
MiDo
  • 1,057
  • 1
  • 7
  • 11
5
votes
1 answer

Docker change mtu on the fly?

I have production docker swarm with 9 stacks, most of them have volumes. Currently docker is running with single node. I have to add second node and it is the place where problems started. Especially the problem is with portainer - it becomes very…
Eddie
  • 1,436
  • 5
  • 24
  • 42
5
votes
4 answers

How can I fetch the ethernet port given the ip address?

I am trying to write a bash script to fetch the ethernet port of an interface whose IP address I know. I need to grab this from ifconfig but can't seem to be able to figure out how to go about it. Any ideas? Thanks.
fzkl
  • 977
  • 3
  • 11
  • 17
5
votes
1 answer

Yocto ifconfig not clean after a ifdown -a

I created a Yocto image on a target which has the loopback and a eth0 network interfaces. When I configure the /etc/network/interface with static IP the network down command works. After the command ifdown -a the ifconfig returns nothing. My…
hilt0n
  • 376
  • 1
  • 10
5
votes
2 answers

Ionic mobile browser testing is not working

I try to use mobile browser testing with ionic. I'm connected in the same Wifi as my iPhone and checked my IP-Address with the following command: ifconfig |grep inet. When I'm running ionic server with the command ionic serve I'm not able to open my…
andreaspfr
  • 2,298
  • 5
  • 42
  • 51
4
votes
2 answers

How to get an output formatted as "Interface: IP Address" from ifconfig on Mac

I am trying to get the following formatted output out of ifconfig: en0: 10.52.30.105 en1: 10.52.164.63 I've been able to at least figure out how to get just the IP addresses (weeding out localhost) with the following command, but it's not…
Frank
  • 110
  • 8
4
votes
1 answer

How to get all the IP Interface names and addresses using /proc on Linux?

I know of ls /sys/class/net to get all the available IP interface names, and also cat /proc/net/fib_trie to get all the IP addresses, but how do I match between them? My desired result is a list of IP interface names and the IP address assigned to…
avital.ko
  • 43
  • 4
4
votes
2 answers

Where do I find the host IP address for an app deployed in minikube

I'm deploying a spring boot app in minikube that connects to a database running on the host. Where do I find the IP address that the app can use to get back to the host? For docker I can use ifconfig and get the IP address from the docker0 entry. …
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
1
2
3
14 15