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

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 means the command failed! /sbin/ifup eth1 If I…
Tgr
  • 306
  • 3
  • 13
1
vote
1 answer

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.0.1.1 avalanche allows my server to be accessed…
user1527429
  • 111
  • 5
1
vote
2 answers

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 self-assign: ifconfig eth0 169.254.1.1 up Then, when…
Joshua Smith
  • 121
  • 1
  • 3
1
vote
2 answers

eth1 and eth1:0 take different times to echo ping requests?

When I ping 2 different IPs that go to eth1 and eth1:0 on the same server, the ping time is the same but the time it takes for the ping result to appear in the terminal is much longer with eth1:0. For instance it takes maybe half a second between…
Tom
  • 731
  • 3
  • 11
  • 24
1
vote
2 answers

How do you find current internet network interface?

How do I find the network interface that's connected to the Internet? This machine could typically be connected via {eth0,eth1,usb0,wlan0}. The best I could think of is: sudo route | grep default | awk '{print $NF}' Update: My favoured solution…
hendry
  • 677
  • 2
  • 10
  • 23
1
vote
1 answer

FreeBSD netstat -di, Idrop vs Drop and drop count from NIC or kernel?

On FreeBSD what's the difference between Drop and Idrop in the netstat output? $ netstat -di Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll Drop bge0* 1500 00:16:d4:e3:49:31 0 0 0…
jon
  • 181
  • 2
  • 9
1
vote
3 answers

interface id for ethernet card

My PC (CentOS)has one ethernet card 1, linked to the internal company network for internet surfing etc., and another ethernet card 2, linked with an embedded device for programming. Each time, when I restart PC, I have ethernet card 1 active and…
pepero
  • 141
  • 2
  • 7
1
vote
1 answer

Problem configuring Network aliases

Struggling a bit trying to work this out. I'm on a Centos 5.5 VPS with multiple IP addresses. I've setup the IP address alias for eth0 (eth0, eth0:1, eth0:2, eth0:3, eth0:4, eth0:5), each with a different static address, using the Red Hat Text Mode…
Ben
  • 367
  • 3
  • 21
1
vote
1 answer

different MTU sizes for bond aliases

I have a bond interface but I want to change the MTU to 1500 only for bond9:22 Is this possible? bond9:22 Link encap:Ethernet HWaddr 00:0E:0C:E4:BE:F9 inet addr:10.7.18.58 Bcast:10.7.18.255 Mask:255.255.255.0 UP BROADCAST…
cateof
  • 173
  • 1
  • 7
1
vote
2 answers

Reported bandwidth usage differs between iproute2 and ifconfig

My group has a server set up to image our workstations using FOG. I was a bit curious to see how much bandwidth we were using. When I run ifconfig eth0, the TX/RX lines read RX packets:166949376 errors:0 dropped:0 overruns:0 frame:0 TX…
Ben Webber
  • 63
  • 1
  • 1
  • 7
1
vote
5 answers

Change the order of IP addresses returned by ifconfig?

I have an Ubuntu server with several IP addresses attached to it. 127.0.0.1 is listed as venet0 by ifconfig. I'm using Chef to configure the server. The problem is that chef is listing 127.0.0.1 as the IP address for the server instead of one of…
erikcw
  • 697
  • 14
  • 22
1
vote
3 answers

Dropped packets in Linux

I'am using a machine as a router, it works sort of fine, however if I do a ping -t whatever.server it will always cause a 3-4% package loss, no matter what server. Looking at ifconfig or netstat -i show no errors what so ever, what are some of the…
Anders
  • 283
  • 1
  • 4
  • 12
1
vote
1 answer

Setting up virtual networks in vmware workstation 6

I've been googling this for hours and I seem to be confused. If anybody could give me a link or point me in the right direction it would be appreciated. I'm using vmware workstation 6. I have three vm's (all linux). One of those VM's has two network…
user60911
1
vote
1 answer

configuring two network interfaces in ubuntu 10.04.1

I have got two NICs configured on a VM - each is tied to a specific network, one is a DMZ, the other is an internal network. I want MySQL to listen on the internal network only and Apache on the DMZ listening for HTTP and HTTPS. But as soon as I add…
Bill Smith
1
vote
2 answers

Routing data through VPN in linux

I think its a silly question but still here it goes.. Terminal Output: eth0 Link encap:Ethernet HWaddr 00:1c:c0:37:5e:25 inet addr:10.100.98.51 Bcast:10.100.98.255 Mask:255.255.255.0 inet6 addr:…
Abhijeet Rastogi
  • 236
  • 3
  • 20