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
1 answer
17 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 ...
user avatar
  • 153
0 votes
1 answer
24 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 ...
user avatar
  • 153
0 votes
2 answers
59 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 ...
user avatar
  • 5
0 votes
0 answers
34 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 ...
user avatar
0 votes
0 answers
22 views

I wonder how to make driver name and interface type showed in ifconfig result?

When running ifconfig command to list the interfaces, sometimes it tell me the driver name: wlan0 Link encap:UNSPEC Driver cnss_wlan_pci Sometime it shows me the interface type: peer0: flags=...
user avatar
1 vote
1 answer
126 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 ...
user avatar
  • 4,876
2 votes
2 answers
677 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, ...
user avatar
  • 474
0 votes
1 answer
694 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....
user avatar
  • 13
1 vote
1 answer
129 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 ...
user avatar
  • 123
-1 votes
1 answer
403 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
910 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 ...
user avatar
  • 1
1 vote
1 answer
637 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 ...
user avatar
1 vote
1 answer
101 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 ...
user avatar
0 votes
1 answer
373 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 ...
user avatar
  • 101
0 votes
2 answers
75 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....
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 23
0 votes
2 answers
8k 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
user avatar
  • 23
-1 votes
1 answer
480 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 ...
user avatar
0 votes
1 answer
137 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 ...
user avatar
1 vote
0 answers
136 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 ...
user avatar
  • 113
0 votes
1 answer
159 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 ...
user avatar
  • 103
1 vote
2 answers
695 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 ...
user avatar
  • 171
11 votes
1 answer
10k 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:...
user avatar
0 votes
1 answer
520 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. ...
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 ...
user avatar
  • 21
0 votes
0 answers
649 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. ...
user avatar
  • 99
1 vote
0 answers
457 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 ...
user avatar
  • 11
1 vote
0 answers
563 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 ...
user avatar
  • 111
0 votes
0 answers
396 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. ...
user avatar
0 votes
0 answers
640 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 ...
user avatar
0 votes
0 answers
954 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:...
user avatar
0 votes
1 answer
90 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: ...
user avatar
  • 157
0 votes
2 answers
626 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 ...
user avatar
  • 103
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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
1 vote
1 answer
870 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 ...
user avatar
0 votes
0 answers
139 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 ...
user avatar
  • 113
0 votes
1 answer
536 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 ...
user avatar
  • 451
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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
2 answers
576 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 ...
user avatar
  • 153
-1 votes
1 answer
562 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 ...
user avatar
1 vote
1 answer
983 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 (...
user avatar
  • 111
0 votes
2 answers
68 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 ...
user avatar
  • 227
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 ...
user avatar
  • 157
1 vote
1 answer
842 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 ...
user avatar
-1 votes
2 answers
6k 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 ...
user avatar
8 votes
3 answers
13k 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> ...
user avatar
  • 213
0 votes
4 answers
8k 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 ...
user avatar
  • 101

1
2 3 4 5