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 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

232 questions
2
votes
1 answer

Are RX bytes and TX bytes of ifconfig since uptime or lifetime or something else?

I have this output via ifconfig: user@host:~$ ifconfig eth0 | grep bytes RX bytes:999249172034 (999.2 GB) TX bytes:33403577196 (33.4 GB) The host has 7 days uptime. Are the RX bytes and TX bytes counted since the host has been up, or…
Kahn
  • 1,702
  • 2
  • 20
  • 39
2
votes
1 answer

Changing IP Address in terminal

I am trying to change my IP address using terminal commands. When I use ifconfig 10.10.10.134 netmask 255.255.255.0 I can change the IP address and can still connect to my network (I can ping other devices), but I can no longer connect to the…
2
votes
2 answers

How to down particular ip in linux?

Hie folks, I am trying to down particular IP from the set of up IP's, how to do this? For example lets consider I had up following IP's(sequence will be same): 1.2.3.4 1.2.3.5 1.2.3.6 I did this using "ifconfig etho:x 1.2.3.x up" where x=4,5,6. Now…
1
vote
0 answers

/proc/net/dev providing wrong information about transferred bytes

I have a zte router with Linux kernel 4.1.25 which I have installed an snmp agent (mini-snmpd) on it to control traffic. As I was getting inaccurate data I investigated a bit and detected that ifconfig and /proc/net/dev both are giving wrong data,…
Alex
  • 111
  • 2
1
vote
1 answer

ifconfig bridge on macos - BRDGADD en0: Resource busy

Anyone know how to createa bridge network interface on MacOS v12.4 Mon? I have tried: sudo ifconfig bridge7 create sudo ifconfig bridge7 addm en0 sudo ifconfig bridge7 up In step two I get this: ifconfig: BRDGADD en0: Resource busy
Chris G.
  • 153
1
vote
1 answer

Why is there more than one HWadder while running command ifconfig

I performed the ifconfig command in Linux to find out my mac address. But as there are multiple HWadder in the output I can't find out my MAC address. I also want to know, why do they show multiple MAC addresses while only one mac address is…
1
vote
1 answer

Stable command to parse eth0 IP on jessie and stretch

So some genius changed the way this is printed. On the Raspberry with Raspbian (Debian Jessie): $ /sbin/ifconfig eth0 eth0 Link encap:Ethernet HWaddr b8:27:eb:71:d5:56 inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0 …
0__
  • 684
1
vote
1 answer

up in UP BROADCAST RUNNING MULTICAST

There is a line in the output info of sudo ifconfig. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 What kind of word type UP is? A verb? It means enhance ,lift,raise? Why write it as UPPING BROADCAST such as RUNNING MULTICAST? Is RUNNING…
showkey
  • 323
0
votes
1 answer

ifconfig down using ifconfig output

On RH 6.7, using bash: I need to free up some IP addresses using a script. I am looking for a way to shutdown the bonding using the ifconfig xxx down command. I search for list of candidate using this: $ ifconfig |grep ^bond[0-9]:[1-9] |awk '{print…
Alon
  • 1
0
votes
4 answers

Printing interface-ipaddress through single command (piped)

ifconfig gives following output: eth0 Link encap:Ethernet HWaddr 4c:87:0e:z3:e7:11 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0…
puneet336
  • 188
  • 1
  • 7
-1
votes
2 answers

What does /sbin/ifconfig contain?

My file shows as attached. Is it corrupted?
Pranav
  • 111
-1
votes
1 answer

Ran ifconfig, everything formatted weird now

As a beginner to *nix, I was looking (not editing) at system files on my Apple laptop. I looked at ipconfig (with cat) and suddenly everything is formatted weirdly, even when I ls ordinary directories. Does anyone know what I may have done, and how…