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

Bringing up freedompop on beaglebone black angstrom

I have a freedompop Ubee stick that I would like to connect to my beaglebone black (running angstrom with 3.2.0-54-generic kernel). After solving some issues with hotswapping (it's not possible apparently), I am seeing the the interface in using…
Yakubs
  • 161
  • 2
  • 11
0
votes
4 answers

I'd like to grep the output of ifconfig in bash

I'm making a small script to determine if I have an internet connection on OSX. More of just practice, I suppose. In terminal "ifconfig | grep -cs 'status: active' " will return 1 if there's at least one active connection The script I have is this …
user2745184
0
votes
3 answers

how to join ifconfig output to a line per interface

how do i convert the following output with sed? from: lo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 igb0:…
IdaWong
  • 153
  • 1
  • 6
0
votes
1 answer

ifconfig eth0:1 192.168.3.1 netmask 255.255.255.0 return SIOCSIFFLAGS: Cannot assign requested address

I'm setting an alias IP on eth0 by using 'ifconfig eth0:1 192.168.3.1 netmask 255.255.255.0'. But there's an error popup: SIOCSIFFLAGS: Cannot assign requested address SIOCSIFNETMASK: Cannot assign requested address The version of ifconfig…
user2314244
  • 1
  • 2
  • 4
0
votes
2 answers

issue with creating perl script to imitate linux command "ifconfig"

I have an assignment in which I am to create a Perl script in Linux to imitate the command ifconfig. This command basically shows you information about your network interfaces. I have already created the program, but a few lines are giving me some…
user218001
  • 35
  • 1
  • 8
0
votes
1 answer

How to Display IFconfig information with perl program in Linux

I have an assignment where i am supposed to create a perl script in linux that will give an output similar to that of the linux command "ifconfig". I have started writing the script but I repeatedly get errors. I would like some assistance in…
user218001
  • 35
  • 1
  • 8
0
votes
3 answers

Get network interface information

I know there is ifconfig command that we can list network interface info. but i want to get information in the following pattern Interface_Name IP_Address Net_Mask Status(up/down) for example eth0 192.168.1.1 255.255.255.0 down I tried ifconfig and…
wearetherock
  • 3,721
  • 8
  • 36
  • 47
0
votes
1 answer

SMSC911x network interface cards' light never comes back on after cable replugged

I have this strange problem in an embedded system (linux) we build, so I don't have normal GUI trouble-shooting tools on Linux or Windows machines. The problem is the NIC is no longer usable after cable removed. Even if I re-plug the cable, the…
lqu
  • 606
  • 9
  • 14
0
votes
1 answer

How can i get the maximum transfer rate of any given network interface

Is there a way to obtain the maximum and current data transfer rate (kbps) with ifconfig or route for any given network interface? I am not sure i completely understand what exactly it is that i am looking for. I thought about parsing /proc/net/dev…
Stelios Savva
  • 812
  • 1
  • 10
  • 30
0
votes
2 answers

How to cut ifconfig to get eth* details alone?

I'm writing a script to print ethtool details of ifconfig. Sample output should be from ifconfig is like, eth0 eth1 eth2 I have tried using below command, root@bt# ifconfig | cut -d ":" -f 1 But could not able to achieve the same. Actually, i…
San
  • 223
  • 1
  • 6
  • 15
0
votes
3 answers

Using ifconfig to check whether I'm on local WiFi or 3G

For a bash script I want to determine whether my device has Wi-Fi. The easiest way for me would be ifconfig and some regex. So I want to check if my interface en0 has a valid IP or not. ifconfig en0 | grep inet | cut -d: -f2 | awk '{ print…
tzippy
  • 6,458
  • 30
  • 82
  • 151
0
votes
4 answers

How can I toggle an interface every second in a Bash loop?

I want to put an interface down and up every 1 second for 80 times, how can I implement this by a bash script? Something like this? COUNT = 80 for n in $(seq -w 1 $COUNT); do case $n in [1,3,5,7,9....79]*) # I don't know how to represent…
manxing
  • 3,165
  • 12
  • 45
  • 56
0
votes
2 answers

set ifconfig eth0 "ipaddress" via app on android device

I am currently working on a custom android platform with RJ45 Lan connection, the problem now, is that I would like to be able to set the ip address from my custom app.. using 'ifconfig' works from shell directly in android kernel being root, but…
Qw_freak
  • 81
  • 1
  • 10
-1
votes
1 answer

How can I get the IP/MAC of the wifi router my Macbook is connected to using ifconfig?

I am trying to get the IP/MAC of the wifi router my phone is connected to, so as an experiment I did an experiment on my Macbook. Online documents says that ifconfig will show the IP/MAC of the wifi router, so I walked around the building to…
-1
votes
3 answers

How to send a post request with the result of a command or a script using curl?

I want to send a post request using the curl command with the data resulting from an execution of a script or command, in this case, the command is ifconfig. I am looking for a oneliner that can be executed in a Linux terminal or Windows CMD. In…