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
0answers
36 views

CentOS machine, not connecting to Internet only connecting to Intranet [on hold]

Recently i made some changes to my centos Machine so that now it is unable to connect Internet, but only connecting to my internel network. Here are my config files of my Centos machine ...
0
votes
0answers
41 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 ...
1
vote
0answers
54 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
56 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
56 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
331 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
43 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
132 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
95 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
50 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
69 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
1k 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: ...
13
votes
3answers
2k 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
94 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 ...
2
votes
1answer
1k 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
125 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
799 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
694 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
47 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 ...
0
votes
0answers
95 views

Ubuntu 12.04, only (very) local network works, no connection to gw

I have problem that driving me nuts for 3 days now. I've tried run some .NET soft on one of our server's and after update (from official repo + badgerports) the network stop working. I intend to ...
1
vote
1answer
69 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
59 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
620 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
538 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
122 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
177 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
76 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
193 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
844 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
747 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
168 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
175 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
1k 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
369 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 ...
-2
votes
1answer
2k 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
113 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
148 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 ...
4
votes
4answers
988 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 ...
70
votes
4answers
7k 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 ...
0
votes
3answers
805 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 ...
1
vote
1answer
382 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 ...
4
votes
2answers
570 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 ...
2
votes
1answer
169 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 ...
2
votes
2answers
3k 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 ...
0
votes
1answer
5k 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 ...
3
votes
1answer
700 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! ...
0
votes
1answer
1k 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 ...
1
vote
1answer
232 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 ...
0
votes
2answers
713 views

ifconfig not reporting DHCP-assigned address

I'm updating the kernel for an appliance, and I've run into a change in how DHCP works. Near the end of my boot script, I check to see if I already have a DHCP-assigned address, and if not, I ...
2
votes
4answers
451 views

Get the interface and ip address used to connect to a specific host (ip)

I'm sure this has been asked and answered before, but I wasn't able to find it, so hopefully this will at least link someone to the right place. I want to find out my local interface and ip address ...