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

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 2 NIC and linux (Debian) and I can doing…
Pirox
  • 21
  • 1
  • 3
1
vote
0 answers

Meaning of rx_fcs_errors

On my server I do see RX frame errors in ifconfig: eth0: flags=4163 mtu 1500 ether d0:50:99:30:f6:81 txqueuelen 1000 (Ethernet) RX packets 11604295 bytes 3261247616 (3.0 GiB) RX errors 7339…
Stefan
  • 21
  • 4
1
vote
0 answers

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 https://google.com I am getting no response with…
mitch
  • 111
  • 2
1
vote
2 answers

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 network interface which don't have the IP address…
smc
  • 123
  • 4
1
vote
1 answer

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 error, but there isn't any consistency in the…
dhuyvetter
  • 113
  • 5
1
vote
1 answer

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 is now obsolete due to the virtualization. When I…
1
vote
1 answer

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 (ppp0 is the VPN tunnel device): route add…
Diederik
  • 111
  • 4
1
vote
1 answer

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 additional IP and it went ok, but on that new IP on…
AngelDeaD
  • 13
  • 3
1
vote
0 answers

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. I do not want to rename my network device since…
Woltan
  • 81
  • 1
  • 2
  • 7
1
vote
0 answers

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 assign my local machine a static IP from the…
Flatron
  • 318
  • 2
  • 5
  • 19
1
vote
0 answers

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 whole server was down. I tried to SSH connect - not…
Patrick DaVader
  • 111
  • 1
  • 4
1
vote
4 answers

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 rp_pppoe) I want write script which will change the…
snex
  • 191
  • 2
  • 8
1
vote
2 answers

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 value? , or maybe this is the MAX value? the current…
yael
  • 43
  • 1
  • 3
  • 9
1
vote
2 answers

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 statistics? And is this number a reasonable…
Michelle
  • 923
  • 5
  • 20
  • 30
1
vote
2 answers

Release old IP and redirect user to new IP

I have a device that can be accessed over a local network in order to configure the device. One of the settings is to change the IP address of the local interface. The problem is that when I change the static IP I can no longer redirect the user to…
User
  • 13
  • 2