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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

Can't create a pseudo network interface on Debian 11

I have a KVM based Debian 11 (bullseye) VPS with internet access on eth0 network adapter. The public IP has been assigned by DHCP. The IPs and Routes are as what follows: ifconfig and iptable BEFORE ...
Mohamad Reza's user avatar
0 votes
0 answers
174 views

How to remove virtual network adapter?

Recently, I added one layer to my network(basically I've a router doing only a modem, with its own 192.168.0.x network, and then my new LAN+WIFI router having the 192.168.1.x network). Only my new ...
J4N's user avatar
  • 167
-2 votes
1 answer
141 views

Can two servers talk to each other via TCP by this configuration? [duplicate]

This is an interview question: There are two servers on Rank A, setup the network on the two hosts by following configuration: Server A: ifconfig eth0 10.10.15.129 netmask 255.255.255.0 up route add ...
J JIA's user avatar
  • 1
0 votes
1 answer
143 views

Why "vlan: 3 parent interface: en0"

I have created a VLAN: Linux vconfig add en0 3 ip addr add 192.168.126.5/24 dev en0.3 ip link set up en0.3 can be translated to macOS by e.g. MacOS ifconfig vlan0 create ifconfig vlan0 vlan 3 vlandev ...
Chris G.'s user avatar
  • 197
0 votes
1 answer
765 views

List "hardware" Network Interfaces Controllers

When using ifconfig or ip link show commands, it lists not only hardware interfaces, but also software interfaces - I would expect only the physically interfaces? Note: I am running on MacOS. ip link ...
Chris G.'s user avatar
  • 197
0 votes
2 answers
2k views

Ubuntu 22.04 - Intel X550 - Run a pre-up command to set ethtool network interface parameters at startup

Following the question at: https://askubuntu.com/questions/1406445/ubuntu-22-04-server-intel-x550-advertised-speed-not-correct I need to run a command at startup so that the necessary changes are ...
Henry's user avatar
  • 15
0 votes
0 answers
280 views

Adding IPv6 interface into ifconfig worked but host unreachable when use it

I have VPS run on Ubuntu 20.04, I was asking to Customer Service of my VPS Provider, she said their service (VPS) currently is not supporting IPv6. Since she is not technical support, I believe my VPS ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
307 views

Debian 10 backward compatibility with eth0

Noticed when upgrading to Debian 10 (Buster) that the public eth0 network interface is now called ens5 on AWS EC2. Is there a way to create a symbolic link or similar so that legacy applications that ...
Justin's user avatar
  • 5,248
2 votes
2 answers
5k views

huge difference in RX bytes vs TX bytes (ifconfig) on Syslog-NG server

we have a syslog-ng server acting as an intermediary logger. the server receives data from all devices on the network (from many different sources, on both UDP & TCP ports), filters them a bit, ...
olivierg's user avatar
  • 524
0 votes
1 answer
3k views

commands to make ethernet interfaces up down using ip command

I was using following commands to up the devices # ifconfig p1p1:1 10.250.0.0 netmask 255.255.0.0 up # ifconfig p1p1:2 10.251.0.0 netmask 255.255.0.0 up # ifconfig p1p1:3 10.252.0.0 netmask 255.255.0....
Cheppy's user avatar
  • 13
1 vote
1 answer
435 views

How can I get ubuntu network interface stats in the terabyte range?

When I query my server's network interface stats using either ifconfig or ip -s they're limited to 999GB and then roll over to 0GB, starting again. Is it possible to change the configuration somehow ...
Ben's user avatar
  • 123
-1 votes
1 answer
831 views

Ubuntu 18.04 keeps creating virtual interface ens160:0, how to prevent?

I am running a Pi-hole server on Ubuntu 18.04 that for some reason keeps making a virtual interface ens160:0 user@pihole2:/etc$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state ...
MacDonals's user avatar
0 votes
1 answer
4k views

NetworkManager adding extra default gateway

Using NetworkManager, I am trying to setup multiple interfaces on different VLANs; the primary interface, em1, is used on a development VLAN; the secondary interface is on a dedicated iSCSI VLAN. I am ...
Matt Clark's user avatar
0 votes
1 answer
2k views

SSH Reverse Tunnel: Bind Address is ignored

I'm trying to configure a server in one site to act as a proxy for several servers in another site using SSH. The server has one physical interface in its local network: eth0 10.1.1.10 This server ...
GDKF's user avatar
  • 1
1 vote
1 answer
2k views

Dante SOCKS server with two external interfaces (e.g. Wired Ethernet and Wi-Fi)

I want Dante to transparently choose between either of the two interfaces enp4s0 (Wired Ethernet) and wlp3s0 (Wi-Fi) regardless of their status (up or down). That is when wired, it should choose ...
Alexander Shukaev's user avatar
1 vote
1 answer
179 views

Route Table Multiple Subnet Entries?

So just as a bit of context, this is for a VM running that does call processing. So I was looking at the route table on the VM, and noticed that it has this: 12.12.12.64/28 dev bond15 proto kernel ...
Steve Fowlkes's user avatar
0 votes
1 answer
1k views

How to go back default settings of eth0

When my system starts, eth0 was not assigned with any of the IP addresses. Its looks like below root@etn-cgtqmx6:~# ifconfig eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx UP ...
Gilson PJ's user avatar
  • 101
0 votes
2 answers
94 views

Why is the mac address that appears on my computer the same?

I use the 2 ethernet interface on the my system board, eth0 / eth1(usb to ethernet) like the followings. root@E3-RDP:~# ifconfig eth0 Link encap:Ethernet HWaddr ae:a1:99:48:86:79 inet addr:10.10.0....
andykim's user avatar
2 votes
1 answer
2k views

ifconfig interface down vs unplugging cable

What's the difference between ifconfig eth0 down and physically unplugging eth0 cable? Do they mean the same thing to an application? Edit: I have an application that uses a specific interface let's ...
umar14's user avatar
  • 23
0 votes
2 answers
14k views

openvpn - ifconfig parameter

What does ifconfig parameter in openvpn configuration file mean? Here is an example file: dev tun0 proto udp comp-lzo port 5073 remote 172.16.23.73 5073 ifconfig 172.17.3.41 172.17.3.43
umar14's user avatar
  • 23
-1 votes
1 answer
1k views

Netmask for point to point ip address?

In a point to point tunnel, I was able to have the same IP twice. It looks like a bug, I think that might be related to some internal representation of the netmask. It can be reproduced with the steps ...
Eduardo Trápani's user avatar
0 votes
1 answer
268 views

Same IP twice in the same interface

I'm trying to find a bug in a program and I was wondering if it is possible to have the same IP twice in a network interface. For example, have network interface eth1 with ip 192.168.56.174 twice. I ...
jesusjimsa's user avatar
1 vote
0 answers
160 views

Network interface statistics: tx_dropped value always 0

I am writing a program that collects and displays network interface metrics located in the /sys/class/net/ folder. When I was reading about the meaning of rx_dropped value, I came to the conclusion ...
imll's user avatar
  • 113
0 votes
1 answer
389 views

Ubuntu secondary IP drops out after a few hours

I'm running Ubuntu 18.10 on a VPS. Ever since upgrading (I'm pretty sure) from 16.04, my secondary IP address just stops receiving traffic after it's been up for a few hours. I'll have two pings ...
jorisw's user avatar
  • 103
1 vote
2 answers
993 views

Ubuntu SSH connection hangs when I run ifconfig with IPv6 enabled

I've been playing around with IPv6 and setup a DigitalOcean droplet. The only difference between now and before is that I told it to setup IPv6. More often than not, when I run ifconfig the SSH ...
Brian's user avatar
  • 181
12 votes
1 answer
12k views

ifconfig shows UP while ip link shows DOWN

I am looking at the state of an interface on a Linux system. When I use the ifconfig command it shows that the link is UP. master $ ifconfig docker0 docker0 Link encap:Ethernet HWaddr 02:42:b9:25:...
automationcoach's user avatar
0 votes
1 answer
609 views

Ubuntu: Multiple interfaces, one lan only

I have 2 interfaces: wlan0: Connected to normal network with DHCP (has internet) eth0: Connected to LAN only. Used for PXE boot and NFS The network-manager service is not installed on this machine. ...
Adam Brakhane's user avatar
1 vote
1 answer
3k views

iptables - bridge / routing between two independent LANs (and router)

I can't find a solution in a network like in the drawing below. I need to be able to open admin page of router 2 on LAN2 from a pc in a LAN1, w/o routing throught Internet. I have a "bridge" PC with ...
Pirox's user avatar
  • 21
0 votes
0 answers
1k views

Debian ignores static IP assignment

My etc/network/interfaces file originally only included info regarding lo: # The loopback network interface auto lo iface lo inet loopback ifconfig shows me that eth0 is getting an IP from DHCP. ...
E C's user avatar
  • 99
1 vote
0 answers
612 views

Meaning of rx_fcs_errors

On my server I do see RX frame errors in ifconfig: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether d0:50:99:30:f6:81 txqueuelen 1000 (Ethernet) RX packets ...
Stefan's user avatar
  • 21
1 vote
0 answers
646 views

Linux virtual network - no internet connection

I created virtual network, however I can't connect to the internet with it. sudo ip link add name br0 type veth peer name br1 sudo ip link set br0 up I am checking it with: curl --interface br0 ...
mitch's user avatar
  • 111
0 votes
0 answers
639 views

Routing traffic between two subnets

I am connecting some number of embedded linux devices to a main LAN using a DHCP server and routing tables. On the main LAN (192.168.1.0/24) I have a PC connected and the first embedded linux device. ...
Taylor Spencer's user avatar
0 votes
0 answers
709 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 ...
chrismwiggs's user avatar
0 votes
0 answers
1k 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:...
UndefinedBehavior's user avatar
0 votes
1 answer
241 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: ...
Green's user avatar
  • 167
1 vote
2 answers
2k 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 ...
smc's user avatar
  • 113
0 votes
1 answer
50 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 ...
Moritz von Schweinitz's user avatar
2 votes
1 answer
3k 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 ...
RenegadeAndy's user avatar
1 vote
1 answer
1k 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 ...
dhuyvetter's user avatar
0 votes
0 answers
219 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 ...
k13i's user avatar
  • 113
0 votes
1 answer
667 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 ...
shalom's user avatar
  • 461
0 votes
1 answer
1k 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 ...
Brandon Lebedev's user avatar
1 vote
1 answer
4k 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 ...
Alexander Remesch's user avatar
0 votes
2 answers
663 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 ...
xav's user avatar
  • 153
-1 votes
1 answer
667 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 ...
T.Dabrowski's user avatar
1 vote
1 answer
1k 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 (...
Diederik's user avatar
  • 111
0 votes
2 answers
132 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 ...
Max's user avatar
  • 237
0 votes
0 answers
1k 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 ...
Green's user avatar
  • 167
1 vote
1 answer
1k 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 ...
AngelDeaD's user avatar
-1 votes
2 answers
7k 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 ...
samgreeneggsham's user avatar

1
2 3 4 5