Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Ubuntu 16.04 VPS dropping massive amount of RX Packets

Having networking issues with a Ubuntu 16.04 VPS, causing extremely slow speeds (we're talking about 100kbps). Running ifconfig is showing over a million dropped RX packets from eth0 (no errors) and I ...
0
votes
0answers
42 views

Why can't I ping 127.0.0.1 from some network interfaces?

I'm on OS Sierra. This is (part of) what I get on ifconfig ... en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 98:01:a7:b4:91:63 inet6 fe80::4e:52ae:9fa8:...
0
votes
1answer
73 views

Can I change names of network interfaces arbitrary?

I have installed OpenWRT on VirtualBox. There are four interfaces: br-lan eth0 eth1 lo Why do they call that way? Are they variables? Can I name them arbitrary? foo-bar xyz0 xyz1 bo Like so: ...
0
votes
2answers
55 views

Display only the network interfaces which has the ip address using ip command

I use ip a to get the IP address of my machine. Sometimes, it is getting difficult to identify when I have 20+ network interfaces. Is there a way to display only network interfaces which has IP? The ...
0
votes
0answers
13 views

call ifconfig static ip configuration after ssh login

I would like to establish an ssh tunnel via sudo ssh -w 0:0 -o Tunnel=ethernet root@server When this connects to the server I currently need to call sudo ifconfig tun0 162.0.0.102 netmask 255.255....
0
votes
1answer
43 views

Can't ping 253.100.156.93 from Linux

At a remote location, there is a chinese ethernet enabled POS printer. It somehow garbled it's configuration, and its self-test now says that its IP address is 253.100.156.93, (which is inside a IANA ...
1
vote
1answer
303 views

What is this virtual interface? And how can I remove it?

I am using RHEL 7.4 and had both a virbr0 and virbr1. I want to remove them both. I was able to remove virbr0 by stopping and disabling the default virtual kvm. libvirtd isn't running, yet I still ...
0
votes
1answer
105 views

ip command equivalent to `ifconfig lo x.x.x.x up`

I am trying to set bind loopback to an IP address with ip link set lo 10.254.254.254 up but keep getting the error Error: either "dev" is duplicate, or "10.254.254.254" is a garbage. I googled the ...
0
votes
0answers
21 views

ifconfig displays public IP address

I've logged via ssh to remote host. When I type ifconfig output contains: ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 106.120.101.39 netmask 255.255.255.128 ...
1
vote
1answer
262 views

linux fine tuning after setting the MTU to jumbo frame

We want to set the MTU to 9000 bytes on our Linux machines (distribution is Redhat 7) In this case, how would I tune the memory page size according to MTU size of 9000 bytes? Also, what are the ...
0
votes
1answer
150 views

ifconfig up does not execute from cron

I'm attempting to combine Scott Lowe's guide to creating a namespace with this answer on forwarding traffic between two interfaces. I have this script that runs on each reboot using the cron @reboot ...
1
vote
1answer
343 views

How to permanently remove lo:0 interface?

I have two ubuntu 16.04 servers here that were upgraded from 10.04 and are now virtual machines but used to be running on physical hardware using two bonded ethernet ports. The bonding configuration ...
0
votes
2answers
214 views

How to access guest virtual with CentOS using additional ip?

I have a dedicated server in Hetzner. In which I have installed CentOS 7.4, inside it I have KVM with another CentOS 7.4. I have requested an additional ip from Hetzner that has a Mac separated for ...
0
votes
0answers
501 views

USB tethering for linux server without bluetooth or wifi

I'm using CentOS7 linux server and iPhone5, but more general answers are welcome. The server well recognizes the phone when it is connected to USB port, so that I can see my pictures in the phone ...
-1
votes
1answer
205 views

ovh's fail-over ip as a gateway

I own one of OVH's VPS instances. It's located in France. I've deployed an application which connects to a service located in Poland. The problem is the service rejects any connections from foreign ...
1
vote
1answer
239 views

Only route WLAN over VPN

I am trying to set up my RP3 in such a way that WiFi connections are routed over an L2TP VPN. I've got the VPN working and with the following settings all traffic is routed over the VPN connection (...
0
votes
2answers
43 views

Can only bring up one interface at a time

I took a look at the most relevant question, and am a step further but am not sure where to go from here. I am currently trying to connect two ethernet interfaces but am having trouble establishing a ...
0
votes
0answers
277 views

OpenWRT always shows only one network interface (`lo`), although there are many in a config

I’m running OpenWRT in VMWare Workstation 12 Player on Windows 10 64bit. When I run ifconfig in my OpenWRT, I always get only one network interface, lo. Never more: Although there are several ...
1
vote
1answer
285 views

Secondary interface does not receive UDP traffic for *:PORT application

I have dedicated server in OVH. Recently I bought additional IP for my server. Default/main IP is on eth0 interface, both TCP and UDP works fine, no problems. I followed OVH tutorial how to add ...
-1
votes
2answers
2k views

ip route add: RTNETLINK answers: Network is down

I'm quite new to networking and I really can't figure this out. I am trying to add a static route so that all traffic to aa.aa.aa.aa goes through eth0:0 interface root@LSW-199:~# ifconfig eth0 ...
1
vote
2answers
3k views

What is the local routing table used for?

I am trying to understand what is the local routing table. If I add a random address in it with the following command: sudo ip route add to local <any-ip-address> dev <network interface> ...
0
votes
4answers
3k views

Running a bash script as root on boot

i have a script that calculate an ip address (using gateway address) than change, the script work when i launch it manually with sudo sudo ./changework.sh i want this script to run during bootup ...
0
votes
0answers
48 views

Server responds to an IP address which is not assigned

I have a rather out-of-date debian server, which has only one assigned IP address - 10.1.1.2 - this address is assigned manually in /etc/network/interfaces However, I just discovered that the server ...
0
votes
2answers
71 views

Accidentally changed ip on external NIC and can't get back into server. How can i reconnect

I was SSH'd into a server today and I changed the ip of my externally facing NIC and now I can't SSH back to the server. I ran the following command: ifconfig eno1 <ip> netmask 255.255.255.0 ...
4
votes
1answer
627 views

FreeBSD 11 not showing RX,TX packets and counts

I am having a FreeBSD 11 system in which I get the following output for ifconfig command # ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=600003<...
0
votes
1answer
599 views

openvpn - Why do I have 2 tun interfaces on my server?

I have just configured watching this Hak5 video I found on Youtube. But what is bothering me is that why do I have two tun interfaces on my server ? Namely-: tun0 Link encap:UNSPEC HWaddr 00-...
0
votes
1answer
523 views

Linux ifconfig shows excessive RX packets and bytes

I'm trying to track down some network issues and I could use some pointers. It seems to me that there's a lot of traffic, much of which is apparently generated by retransmissions. Unfortunately my ...
0
votes
1answer
81 views

Adding permanent routes and IP, MASK to second interface

I'm using following commands to add to my second interface different settings: ifconfig eth4 xxx.xxx.xxx.xxx ifconfig eth4 netmask 255.255.255.240 ifconfig eth4 broadcast xxx.xxx.xxx.xxx // note: ...
1
vote
0answers
46 views

Is it possible to create a second network device with a specific name?

Due to a licence server requirement I need to have an eth0 or eth1 named network device. However, my current configuration only has a network device named enp8s0. I am using a CentOS 7 linux system. ...
2
votes
0answers
61 views

Should I keep using /etc/network/interfaces in the systemctl / journalctl era ?

I'm historically used to /etc/network/interfaces and I usually set everything up in that text file, both ethernet cable-based connections and wireless ones, but I'm having troubles in managing the ...
0
votes
1answer
37 views

Ubuntu 12.04 server cannot access anything outside

My Ubuntu 12.04 server was working fine a few days ago. But today I couldn't access anything outside. And i cannot ssh to my server neither. I am directly plugged into the console through my vps ...
0
votes
0answers
217 views

Safely restart network via ssh to set static ip

In my /etc/network/interfaces.d/eth0 I have set: auto eth0 iface eth0 inet static address 10.0.0.25 netmask 255.255.255.0 gateway 10.0.0.1 dns-nameservers 8.8.8.8 8.8.4.4 Which shall ...
1
vote
0answers
2k views

Failed to bring up eth0; can't establish any network connections

So for 1,5 years now I was running a DigitalOcean droplet without any problems. did apt-get upgrade several times, changed some things - all fine! Last night suddenly all my alarms went off and my ...
0
votes
4answers
928 views

How do I find out linux gateway IP address?

I have CentOS 6.7 with two Internet connections eth0 - dynamic IP address and dynamic gateway via DHCP (controlled by NetworkManager) ppp0 - dynamic IP address and dynamic gateway (configured with ...
-1
votes
1answer
127 views

Allow run /sbin/ifconfig to user

So, I want to allow some user to execute ifconfig. I'd created a special group "if" and done user to own this group. And now I'm going to do "chown root:if ifconfig". But I think: What wrong thing ...
3
votes
0answers
98 views

ifconfig output different for non-root user

we use a montoring system to capture network traffic. the output as root user is fine: eth0 Link encap:Ethernet HWaddr 00:1E:67:E6:D6:FE inet addr:149.56.19.13 Bcast:149.56.19.255 ...
-3
votes
1answer
708 views

Ubuntu Server IP address not listed in ifconfig

I am not sure why the command "ifconfig" did not show my IP address, but I was still able to reach other hosts in the same network. It happens too many times to me and I did try to search but no luck ...
1
vote
2answers
1k views

Static Public IP Address on Amazon EC2

I am running Ubuntu on a Amazon EC2 Server. I have a Public IP Address (52.38.20.76). I am unable to bind the public ip address to UDP Port: udp listen 52.38.20.76:3478: Cannot assign requested ...
0
votes
0answers
269 views

Linux + why dropping issue displayed from ifconfig but not from ethtool?

we have Linux VM red hat 7.2 version with two LAN interfaces the Linux machines are ruining on ESXi - 5.5.0 and we have very strange issue , the conflict is between the ifconfig command to ethtool ...
1
vote
2answers
5k views

Redhat 7.1 - increase NIC ring buffer

My target is to increase the ring buffer ( I have Linux red-hat 7.1 ) , but I get the following: ethtool -G eth1 rx 8192 Cannot set device ring parameters: Invalid argument so how to enable this ...
0
votes
1answer
298 views

linux + dropped value from ifconfig

please advice what could be the root cause for dropped problem as the following: ( dropped 2201101 ) on Linux red-hat 7.1 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000 inet ...
1
vote
1answer
553 views

What initiates parsing of the /etc/sysconfig/network-scripts/ifcfg-* interface scripts?

I have been searching for a while and looking at source code and various scripts on the Linux filesystem and still have been unable to figure out what ultimately initiates the reading of the scripts ...
2
votes
0answers
80 views

rx bytes increases on transfer out

When I transfer data from one machine to another, I'm seeing an increase in both RX bytes and TX bytes according to both ifconfig and ip -s link: before the transfer, on sending node: 2: eth2: <...
1
vote
1answer
2k views

ifup default route missing

One of our severs is behaving strangely with networking on startup. We've been using configuration changes and ifup/ifdown to try to isolate the issue, with frustratingly inconsistent results. We have ...
2
votes
2answers
1k views

FreeBSD interface up/down monitoring

How to get informed about specific interface status in FreeBSD? ifconfig <ifname> | grep "status: active" works fine but I want to avoid polling and be informed as fast as possible about ifup/...
1
vote
1answer
2k views

What is the difference between Errors , Dropped , Overruns , Frame and Carrier [closed]

What is the difference between Errors , Dropped , Overruns , Frame and Carrier in the Ifconfig ?
0
votes
0answers
349 views

My server doesn't respond to ping6

I'm trying to enable ipv6 on my webserver. The server runs FreeBSD 10 and I'd like to enable ipv6 access to my websites. That's the long term goal. The goal here would be at least to have a server ...
1
vote
2answers
383 views

How does ifconfig calculate packet loss?

Does the dropped packets output of ifconfig refer to the number of frames lost on the local subnet (i.e. datalink layer) or the number of lost IP datagrams at the IP layer or is it TCP retransmission ...
0
votes
1answer
290 views

Tracking pppoe interfaces

I have a set of PPP interfaces on my Linux server. But on bouncing(ifdown; ifup) the interfaces which are not working, the PPP interfaces takes the lowest possible interface number. If I have a PPP ...
0
votes
1answer
731 views

binding range of IPs in Centos, not working

I'm trying to bind 8 x /24 subnets in Centos. I set up the usual primary in /etc/sysconfig/network-scripts/ifcg-eth0 for the default /29 assigned to the box. All good, I'm in ssh fine. Now, I'm ...