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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
138 views

ifconfig TX/RX on gateway

I have a linux gateway which does nat for a couple of machines behind it. I got complains that we have way more monthly traffic gigs more than we should so the first thing I look was check the ...
drovak's user avatar
  • 1
9 votes
2 answers
15k views

ip link set not assigning IP Address but ifup does

Since ip is set to replace ifconfig, I'm trying to get myself used to using the ip suite of commands. I'm trying to enable my NIC with ip link set eth3 up That doesn't assign an IPv4 address ...
chizou's user avatar
  • 477
4 votes
1 answer
3k views

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 ...
FloaTer's user avatar
  • 41
0 votes
1 answer
208 views

i2b2 VM: Copy VM won't give me a valid IP address

After downloading a VM image and making a copy of it, I tried booting up both of them on the same Windows workstation using VMWare Player. I am unable to get an IP address for the second one in my ...
JustBeingHelpful's user avatar
0 votes
2 answers
10k views

How to give my KVM guests network connectivity? [closed]

I'm completely new to KVM and the whole idea of virtualisation, but have been reading about it for a couple of days and playing with it for the last few hours. Creating, installing, cloning etc... ...
Codemonkey's user avatar
  • 1,108
0 votes
0 answers
1k views

Debian on VM has web access but can't be pinged

I have just installed Debian on a Virtual Machine. I have internet access on the VM and installed SSH. I then did a ifconfig and discovered that the IP address is 10.0.2.15 which is strange as the ...
Narayana's user avatar
  • 101
3 votes
1 answer
5k views

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 ...
Phate's user avatar
  • 155
3 votes
1 answer
2k views

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 ...
JRG's user avatar
  • 133
0 votes
2 answers
358 views

Assign private IP via DHCP + public IP

I would like my Ubuntu VM to have both a private IP and a public IP. The private IP should be supplied by my DHCP server. Currently I am trying this: auto lo iface lo inet loopback # The primary ...
Jochen's user avatar
  • 137
3 votes
1 answer
14k views

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

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, ...
bandodeotarios's user avatar
0 votes
1 answer
175 views

Configure IP addresses for virtual interfaces only

In my current CentOS ifconfig, I have eth0 and the range of virtual interfaces eth0:0 - eth0:3 each taking up a unique address in the subnet 69.xx.yy.194/29 (gateway = .193, broadcast = .199) Now I ...
Chris Watts's user avatar
1 vote
2 answers
7k views

Kickstart: ifcfg-eth0 file genorated by kickstart when install from network but from initrd when install form USB

When I install Fedora 19 with a kickstart file and via network, the generated ifcfg-eth0 file is genorated by the kickstart: # Generated by parse-kickstart However if I use the same kickstart file ...
dooffas's user avatar
  • 325
1 vote
1 answer
5k views

how to configure static ipv6 and additional ipv6 with same vlan?

I'm having trouble with configuration static ipv6 address and additonal ipv6 on same interface(eth4). static ipv6 configuraiton issue firstly, I configure below vi /etc/network/interfaces auto ...
joseph-shin's user avatar
0 votes
1 answer
282 views

DNS resolution lost when starting sub-interface

I am starting a sub-interface off of my existing eth0, and its supposed to be an instant thing, so I'm trying to avoid using a config file. When I issue: ifconfig eth0:1 192.168.0.2 up The interface ...
FilBot3's user avatar
  • 234
1 vote
2 answers
8k views

Sub-interface already in use on another host - brand new interface

I created a sub-interface on a RHEL box, eth0:1, and copied the eth0 config and changed all the settings to reflect eth0:1 and the IP address. However, when I issue ifup eth0:1 I receive this error: [...
FilBot3's user avatar
  • 234
88 votes
5 answers
115k views

How to get TX/RX bytes without ifconfig?

Since ifconfig is apparently being deprecated in major Linux distributions, I thought I'd learn something about the ip tool that's supposed to be used instead of ifconfig. And here I ran into a ...
justinas's user avatar
  • 1,028
2 votes
2 answers
2k views

OpenSuse: How to bring up the IPv6 stack after an "ifconfig eth0 down"

here is my config for eth0 /etc/sysconfig/network/ifcfg-eth0 BOOTPROTO='static' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='5.1.0.2/24' IPADDR_V6='5:1:0:1::2/64' MTU='' NAME='82540EM Gigabit Ethernet ...
user185670's user avatar
19 votes
3 answers
87k views

ifconfig eth0 RX dropped packets

The problem The ifconfig command shows more and more dropped packets in the RX section. So, there seem to be a problem to some packets arriving from the Internet to my server. The questions What ...
Fox's user avatar
  • 1,062
0 votes
1 answer
3k views

Issue with ifconfig in a shell script (using cron)

If I execute this script manually in Debian: #!/bin/bash /sbin/ifconfig wlan0 down /sbin/ifconfig wlan0 up sudo iwconfig wlan0 essid "WLAN_NETWORK" sudo iwconfig wlan0 key myPassword sudo dhclient ...
Janus Gowda's user avatar
2 votes
2 answers
5k views

How do I configure Xen's virtualization of interfaces (eth0 to peth0)?

I installed Xen a while ago but had not yet booted up with the hypervisor. Well I did yesterday and all hell broke loose. I completely lost internet connectivity on my server because of Xen. When I ...
NobleUplift's user avatar
1 vote
2 answers
17k views

IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready & IPv6: ADDRCONF(NETDEV_UP): xenbr2: link is not ready on Ubuntu Server - Xen bridge

Hi all, I am having some problems getting a Xen bridge up in Ubuntu precise with Xen. I created a first bridge on eth1 with no problems, but the exact same process for eth2 yields the following ...
user2284355's user avatar
0 votes
1 answer
170 views

Xen dom0 and domu ifconfig returns different stats

I expected that when I use ifconfig command to display network traffic RX and TX values both for dom0 and domu machine, there are differences. I run once ping inside the domu. domu ifconfig command ...
Julio Fong's user avatar
1 vote
1 answer
434 views

Virtual interface gets static IP, actual interface doesn't?

I have a server running Debian 6 with two static IP addresses assigned: eth0 and eth0:1 (virtual interface of eth0). On boot, both should get their assigned IPs...but eth0 does not. /etc/network/...
Nathan C's user avatar
  • 15.1k
-1 votes
1 answer
89 views

Process that consumes more bandwidth [closed]

When I do an ifconfig I see that my interfaces eth0 RX is about some Gigabytes, even I did not run any video or audio over the network nor do some peer to peer staff, please all I need is to identify ...
Ali Mezgani's user avatar
  • 3,860
4 votes
2 answers
4k views

LVS-TUN: ifconfig shows errors and collisions for tunl0 interface?

Check_MK has sent me an email as follows: ***** Nagios ***** Notification Type: PROBLEM Service: Interface 5 Host: foo Address: x.y.z.t State: CRITICAL Date/Time: Fri May 3 10:02:40 ICT 2013 ...
quanta's user avatar
  • 51.8k
1 vote
2 answers
9k views

Get ip address and set as variable bash shell script [duplicate]

I am trying to write a bash script to configure an app (unattended install). All I need to do is this. I need to get the IP address for the server and set it as a variable. I am writing this script to ...
John Stapleton's user avatar
1 vote
1 answer
674 views

how to stop eth0 bridged connection via eth1 host only connection in a virtual machines?

I have to simulate unplugged network cable for testing issue to all applications we are developing in my company . I have about 6 virtual machines Cent-OS on a virtual box . from a php web page , I ...
Nancy Smith's user avatar
0 votes
1 answer
6k views

understanding ip route show command on linux [closed]

I have a Windows 7 PC as host.The network details of my Windows PC are as follows. IP ADDRESS - 192.168.1.70 DEFAULT GATEWAY - 192.168.1.254 I have installed Virtual Box ...
liv2hak's user avatar
  • 303
0 votes
1 answer
199 views

Changing IP of the machine at regular intervals

I have a pool of public IP addresses. There are some services in my box which binds to these. What i'm trying to achieve is to automate the IP change process. Best way to do this is to write a script ...
Aftnix's user avatar
  • 243
1 vote
1 answer
4k views

Creating a bridge on EC2 causes connectivity loss

I'd like to create a bridge in my EC2 instance and to associate an IP address to it. Given the default /etc/network/interfaces file: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp I ...
Roberto Aloi's user avatar
2 votes
2 answers
5k views

Debian: Can't bring eth0 down or up with ifdown or ifup

I can't bring eth0 down or up with ifdown or ifup ifdown: interface eth0 not configured but ifconfig shows me eth0 Link encap:Ethernet HWaddr 00:16:3e:4d:09:5f inet addr:192.168.0.3 ...
supernova's user avatar
  • 232
4 votes
3 answers
13k views

Privileges for ifconfig

In order to do ifconfig in Linux and change the IP and VIP does it require root privileges? Or it is also possible to do this via a non-root account?
user76678's user avatar
  • 349
9 votes
3 answers
30k views

Change netmask (but not ip) of network interface

The ifconfig command can change both the ip address and netmask of a network interface: ifconfig eth0 10.10.10.10 netmask 255.255.255.0 Is it possible to change the netmask of the network interface ...
Randomblue's user avatar
  • 1,175
1 vote
1 answer
441 views

why does interface show on ifconfig

I bought up a vlan interface by running ifup on my ifcfg-vlan10 file, now when I do ifdown the ip connection goes down, however the device vlan10 is still visible in ifconfig. Why is that the case and ...
Dan's user avatar
  • 367
6 votes
1 answer
26k views

IP served by OpenVPN doesn't take ipp.txt into account

I'm facing some troubles right now with an OpenVPN server an former colleague set up (I'm not too into it ATM). We're using OpenVPN for a private network of ~200 clients (to be more specific, only 15 ...
Guillaume Fenollar's user avatar
0 votes
1 answer
5k views

How to make a tun interface with ifconfig in OSX? [closed]

If I try to do this I get the following: bash-3.2# ifconfig tun0 10.140.1.40 ifconfig: ioctl (SIOCAIFADDR): Destination address required It sounds like this doesn't happen in Linux (probably this is ...
Doug's user avatar
  • 361
5 votes
1 answer
44k views

Is "inet addr" my or "bcast" my machine's actual IP? [closed]

I'm trying to connect from one machine to the other (for Postgres), and I'm confused about how to configure my IP address, both from a allow connections from IP address X and from a connect to machine ...
Johnny 5's user avatar
  • 183
1 vote
0 answers
320 views

Peer to peer ipsec tunnel - virtual network interface

I'm trying to create an IPSEC tunnel between two machines (not between two networks). Using ipsec-tools, TUNNEL mode. I think I can cope with all those add and spdadd, but how to create a virtual ...
Sandman4's user avatar
  • 4,095
1 vote
3 answers
387 views

How to configure second non-consecutive subnet on same interface?

I have some servers on the public network of my isp, say 192.168.2.0/24. Now my provider gives me additional ip addresses, but unfortunately not in a subsequent range of my first network, say 192.168....
anselm's user avatar
  • 111
4 votes
4 answers
5k views

No outbound internet connection after restarting CentOS 6.3

After restarting a headless CentOS 6.3 machine, it lost outbound internet connectivity, i.e. I can still connect to the server via SSH (ssh root@**.126.18.56), but stuff such as ping google.com gives ...
grssnbchr's user avatar
  • 157
190 votes
4 answers
83k views

Should I quit using Ifconfig?

With the servers that mount Infiniband cards, when I use the ifconfig command, I get this warning: Ifconfig uses the ioctl access method to get the full address information, which limits hardware ...
Zhen's user avatar
  • 2,159
1 vote
3 answers
8k views

Ubuntu second static IP, ifconfig, /etc/network/interfaces

I would like to add a second static IP to my local Ubuntu 11.10 desktop machine and have it automatically available after rebooting. So far I am successfully using ifconfig to to temporarily set up an ...
Schmoove's user avatar
1 vote
0 answers
1k views

How to execute a script only once, immediately after ALL network interfaces are up in OpenSUSE?

I run Opensuse 12.2. I have 3 network interfaces, eth[012] The interfaces are configured in /etc/sysconfig/network/ifcfg-eth[012] I want to execute a script immediately after ALL three interfaces ...
Dan A's user avatar
  • 11
6 votes
2 answers
32k views

How can I list all virtual networks for a given network interface in linux?

How do I list all virtual networks created for a given network interface card? E.g. I have added a virtual network like this, ifconfig eth0:0 inet6 add ::123/64 It's responding fine. And I know I ...
nmdias's user avatar
  • 163
2 votes
1 answer
810 views

some nodes in a cluster has higher frame value in ifconfig

I am running a cluster consisting of 22 nodes. (22 nodes under the same 1Gbps switch.) I noticed some nodes in the cluster has higher "frame" value in ifconfig like the following. some nodes (higher ...
hiroyuki's user avatar
2 votes
2 answers
5k views

Fedora 17 ifconfig eth0 returns an error message, why did linux change eth0 to em1?

I have a fresh install of Fedora 17 installed, 64 bit. Everything works flawlessly, It connects to the internet automatically when I plug in the internet cable. So I'm kind of confused when I ...
Eric Leschinski's user avatar
0 votes
1 answer
39k views

sudo ifconfig eth0 192.168.1.7 netmask 255.255.255.0 not permanent

I have two PC's and a series of Juniper EX-2200 switches connected to form a network.None of the devices are connected to any external network.If I do an ifconfig on the first PC (monitor) I see that ...
liv2hak's user avatar
  • 303
6 votes
1 answer
2k views

How to add a broadcast address to loopback with ifconfig on a OS/X?

I am trying to use ifconfig to turn on broadcast on my loopback interface. It currently reads: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 As you can see, no broadcast address! :( ...
chrisapotek's user avatar
1 vote
1 answer
5k views

Vagrant ifup eth1 failing (duplicate interface)

I am trying to build a vagrant box from a VirtualBox machine. When I give vagrant up, I get an error saying The following SSH command responded with a non-zero exit status. Vagrant assumes that this ...
Tgr's user avatar
  • 306
1 vote
1 answer
1k views

Linux (Ubuntu): Setting hostname on internal network

I've got an Ubuntu Linux server with a WiFi card. When I boot my computer apache web server starts and the /etc/hosts file lists which lists the following: $ cat /etc/hosts 127.0.0.1 localhost 127....
user1527429's user avatar