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.

learn more… | top users | synonyms

0
votes
2answers
15 views

Is it possible to configure carp using /etc/network/interfaces?

Lots of tutorials out there show to set-up carp using ifconfig: https://www.netbsd.org/docs/guide/en/chap-carp.html I'm wondering if it's possible to do the same using /etc/network/interfaces? For ...
0
votes
1answer
21 views

Add bound IPs to /etc/network/interfaces, without network downtime

Setup is Ubuntu 14.04.1 LTS or Debian 7. I can assign bound IPs to network interfaces without network downtime with ifconfig, but it doesn't persist across restarts (unless you use rc.local, which ...
1
vote
0answers
28 views

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 ...
3
votes
2answers
101 views

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

How to fix non-working ethernet under Linux, with RX permanently increasing?

I have a system with the latest Linux Mint. An ethernet cable which yields internet with no special action from me under Windows 8.1 is detected under Linux, but does not seem to work. Running ...
25
votes
4answers
1k views

Where is the statement of deprecation of ifconfig (on linux)?

A lot of people is stating that the ifconfig command is deprecated in favor of the ipone (on linux at least). This is often used as an argumentation to switch from ifconfig to ip (see some comment ...
1
vote
1answer
450 views

Debian up in /etc/network/interfaces not working

I'm trying to add a secondary IPv6 address to eth0 on Debian Sid. I added the following lines to /etc/network/interfaces: iface eth0 inet6 static address [IPv6 address #1] netmask 64 gateway ...
0
votes
1answer
106 views

OpenVPN cannot connect to local machine that has two NIC cards

This is my first time EVER posting to these forums. Most of the time when I have an issue I can usually solve them by searching forums/Google. But this one issue has me stumped! My company just ...
-4
votes
1answer
346 views

“ifconfig” command not found and networking tools package information needed [closed]

I have 2 questions : 1) "ifconfig" command is not found in centos 7, i tried to find in /sbin, there also command is not available. Doesn't this essential tool not included in minimal installation ( ...
0
votes
0answers
120 views

Can I change venet0:0 main ip to venet0:1 ip?

I would like change my main IP from venet0:0 to venet0:1. Is this possible? This is my ifconfig: [root@marketport tmp]# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 ...
0
votes
1answer
56 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 ...
2
votes
2answers
189 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 ...
0
votes
1answer
389 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 ...
0
votes
1answer
77 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 ...
0
votes
2answers
367 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... ...
0
votes
0answers
115 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 ...
0
votes
1answer
503 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 ...
2
votes
1answer
188 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 ...
0
votes
2answers
121 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 ...
1
vote
1answer
1k 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, ...
0
votes
1answer
73 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 ...
1
vote
1answer
482 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 ...
1
vote
1answer
494 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 ...
0
votes
0answers
69 views

How to detect on Linux that given MAC (HWaddr) is a virtual MAC and will change after rebooting?

Is it possible on Linux to detect automatically that given MAC (HWaddr in ifconfig output) is a virtual MAC and will change after rebooting. or alternatively is there a way to detect virtual network ...
0
votes
1answer
91 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 ...
0
votes
1answer
3k 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: ...
19
votes
3answers
7k 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 ...
2
votes
2answers
199 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 ...
5
votes
2answers
7k 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 ...
0
votes
1answer
383 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 ...
1
vote
2answers
2k 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 ...
0
votes
2answers
2k 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 ...
0
votes
1answer
92 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 ...
1
vote
1answer
94 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. ...
-1
votes
1answer
65 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 ...
4
votes
2answers
1k 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
289 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 ...
-1
votes
1answer
336 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 ...
0
votes
1answer
85 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 ...
0
votes
1answer
495 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 ...
1
vote
2answers
2k 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 ...
2
votes
3answers
2k 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?
1
vote
2answers
306 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 ...
1
vote
1answer
204 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 ...
1
vote
0answers
2k 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 ...
-2
votes
1answer
684 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 ...
-1
votes
1answer
4k 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 ...
1
vote
0answers
146 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 ...
1
vote
3answers
176 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 ...