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
1
vote
1 answer

VIP (using corosync + pacemaker) not accepting traffic until ifdown / ifup is called

I'm running Corosync + Pacemaker on Ubuntu 14.4. I set up two nodes with two VIPs, and when I bring pacemaker down in one node, the VIPs do go to the other, but no traffic actually goes through the system until I manually run ifdown eth1 and ifup…
moomima
  • 497
  • 2
  • 5
  • 9
1
vote
1 answer

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 [IPv6 gateway] pre-up echo 0 >…
1
vote
2 answers

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 and install via a USB stick, the ifcfg file is…
dooffas
  • 315
  • 2
  • 5
  • 11
1
vote
1 answer

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 eth4 iface eth4 inet6 static address 0.0.0.0 network…
joseph-shin
  • 11
  • 1
  • 2
1
vote
2 answers

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: [root@server-1 ~]# ifup eth0:1 Error, some other…
FilBot3
  • 234
  • 4
  • 18
1
vote
2 answers

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 problems: /etc/network/interfaces auto xenbr1 iface…
user2284355
  • 455
  • 2
  • 10
  • 24
1
vote
1 answer

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/interfaces: iface eth0 inet static address…
Nathan C
  • 15,059
  • 4
  • 43
  • 62
1
vote
2 answers

Get ip address and set as variable bash shell script

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 simplify that. What I have noticed is that when…
1
vote
1 answer

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 have to choose a server and stop its network and…
1
vote
1 answer

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 simply add to the end of it: auto br0 iface br0…
Roberto Aloi
  • 575
  • 2
  • 5
  • 14
1
vote
1 answer

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 how do I get rid of it from ifconfig?
Dan
  • 367
  • 3
  • 4
  • 16
1
vote
0 answers

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 network interface for the IPSEC tunnel ? I want some…
Sandman4
  • 4,077
  • 2
  • 21
  • 27
1
vote
3 answers

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.4.0/24. I configure the new servers with the new…
anselm
  • 111
  • 3
1
vote
3 answers

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 alias for my primary network interface: #…
Schmoove
  • 73
  • 2
  • 6
1
vote
0 answers

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 are 'up'. Adding…
Dan A
  • 11
  • 2