Questions tagged [ifconfig]

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

Source: Wikipedia.

206 questions
4
votes
4 answers

Portable way to get list of all active network interfaces

I would like to get the list of all active network interfaces (e.g. eth0, wlan0). I assume I'll have to parse the output of ifconfig, but the formatting is different across the various OS's. Does anybody have a portable way to get this information…
4
votes
1 answer

Strange ifup/ifdown behaviour on Debian Lenny

First of all, here is my /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.10.4.142 netmask 255.255.255.0 gateway 10.10.4.1 auto eth1 iface eth1 inet static address 10.10.4.138 netmask…
ohe
  • 145
  • 1
  • 7
3
votes
0 answers

ifconfig output different for non-root user

we use a montoring system to capture network traffic. the output as root user is fine: eth0 Link encap:Ethernet HWaddr 00:1E:67:E6:D6:FE inet addr:149.56.19.13 Bcast:149.56.19.255 Mask:255.255.255.0 inet6 addr:…
JLW
  • 31
  • 1
3
votes
1 answer

What initiates parsing of the /etc/sysconfig/network-scripts/ifcfg-* interface scripts?

I have been searching for a while and looking at source code and various scripts on the Linux filesystem and still have been unable to figure out what ultimately initiates the reading of the scripts for network interfaces (or other interfaces) in…
SeligkeitIstInGott
  • 179
  • 2
  • 5
  • 19
3
votes
2 answers

What does the command "ifconfig 0.0.0.0" do?

The question is direct, what does the given command do, and what is it used for? ifconfig 0.0.0.0 I know that 0.0.0.0 means all IP addresses on my local machine. Also if I mess up an interface with this command, how do I reset it?
daltonfury42
  • 179
  • 2
  • 10
3
votes
1 answer

Track Source IP of dropped packets

I've got a Linux server running CentOS 7, and I've been facing an issue where the RX dropped packet count keeps increasing. I believe it may be caused by a faulty cable/connector in the network; however, I have no means of checking every connection…
3
votes
1 answer

Difference between ip link eth down and ip link dev eth down

What's the difference between ip link set eth0 down and ip link set dev eth0 down ? The difference between the commands does not appear to be documented anywhere.
Nico
  • 429
  • 5
  • 12
3
votes
1 answer

Granting user enough privileges to run ifconfig on IllumOS (OmniOS)

I sense this should be a very simple question, but somehow I cannot find a solution. I have a non-root user and I would like to grant this user enough permissions or privileges, so he can run ifconfig (I have root access to the machine). For…
Vincenzo Pii
  • 147
  • 1
  • 6
3
votes
2 answers

How to set the order of ipv6?

an output on my server shows IPv6 in the following order: inet6 addr: 2xxx:xxx:aaac:3e::10/48 Scope:Global inet6 addr: 2xxx:xxx:aaac:3e::1/48 Scope:Global inet6 addr: 2xxx:xxx:aaac:3e::2/48 Scope:Global inet6 addr: 2xxx:xxx:aaac:3e::3/48…
Alex
  • 75
  • 6
3
votes
1 answer

ifconfig maximum value of RX/TX bytes

I have a server with over a year uptime which shows 9 TIB outgoing traffic. I was wondering how accurate this number really is? It's running linux 2.6.32 kernel. What I would also like to know that what is the upper limit for the RX and TX data and…
FloaTer
  • 31
  • 1
  • 2
3
votes
6 answers

BASH script that tests for IP

Is there an elegant way to test an IP address in a BASH script? I could do ifconfig and narrow down the IP using sed/awk, but I think there is a simpler solution. My application is basically using SSH/SCP scripts when I'm in my intranet and while…
devin
  • 1,246
  • 3
  • 20
  • 27
3
votes
1 answer

How to make my linux vm attach to an openvswitch bridge?

I am following this tutorial: http://networkstatic.net/wp-content/uploads/2012/04/openvswitch.openflow.gre_.tutorial1.pdf In brief: br0 is connected to the actual net, br1 is an isolated bridge to whom I attach multiple vms. Now I want to greate a…
Phate
  • 155
  • 2
  • 8
3
votes
1 answer

Find number of TCP bytes transmitted

I have rhel4 and rhel6 hosts. I can use netstat -s to see information on the number of segments sent/received. I can use ifconfig to see the number of bytes sent/received on a given interface (for my purposes only one is important, the rest have…
JRG
  • 133
  • 6
3
votes
1 answer

How do I add a broadcast IP to the loopback interface under os/x using ifconfig when my machine has no network?

I'm new to advanced network administration and I would like to do some testing with UDP broadcasting, so I need a broadcast address on my loopback interface. The machine is offline, in other words, there is no network. How can I accomplish that…
bandodeotarios
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Routing OpenVPN tunnel in via public interface and out via NAT'd interface (to internet)

I hope someone can help... I want to Configure OpenVPN-AS (i.e. OpenVPN Access Server, NOT OpenVPN) to work on my VPS. The VPS is a KVM running Ubunto 10.04 LTS, with a very vanilla configuration. OpenVPN-AS is likewise installed with only minimal…
zxdavb
  • 31
  • 1
  • 2
1 2
3
13 14