Questions tagged [ifconfig]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

Command that only displays ip address and subnet mask using ifconfig

I need help with my Linux laboratories. Does anybody know a combination of command complies with this exercise? Look at the output of /sbin/ifconfig. Write a line that only displays IP address and ...
0
votes
0answers
20 views

RHEL 7.7 IP manipulating

I redirected connections of unallowed IPs (which are trying to connect to my machine via ssh) to another machine, using port redirection. Now I want to change the output of the commands (ifconfig, ...
0
votes
0answers
20 views

Network is unreachable with WiFi adapter

I'm experiencing again a "network is unreachable" problem. My current situation is the following: I bought a USB wireless card, I plugged it in my PC, I configured everything via Yast (wicked ...
2
votes
1answer
37 views

Cannot execute commands after logging in to server over SSH when IP is generated by linux command

If I ssh directly ssh user@192.168.13.2, the server behaves as normal and I can execute any number of commands before logging out. The server IP address is very similar to one defined in my network ...
0
votes
3answers
129 views

bash script to get MAC address and paste it to ifconfig file after HWADDR

Is there a way to get the MAC address from ifconfig and append after HWADDR in ifconfig-eth0 file? I have used awk command to show MAC address but couldn't figure it out to hold that information and ...
4
votes
1answer
152 views

“RTNETLINK answers: File exists” after trying to ifup interface

I have 3 different blocks which I'm trying to configure. They used to work normally when I would add all the addresses of the block manually (ip addr add) but I learned that I can just add the entire ...
0
votes
0answers
22 views

How change wifi network on OpenBSD

I'm connected to the xyz wifi network. I want change to kzq network. I edit the /etc/hostname.if file and I add join kzq without wpa password because it's an open network. Then I run sh /etc/netstart ...
0
votes
2answers
70 views

Extract interface name and IP address from “ifconfig” output

I have this output: eth-g0 Link encap:Ethernet HWaddr 44 inet addr:222.222.22.22 Bcafdst:0.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 RX packets:9073618 errors:0 dropped:...
0
votes
0answers
14 views

How do I fix my external wireless Network Cards not registering?

I put Kali Linux on a small little laptop for testing and demonstration purposes, but I've run into an issue I've never seen before. Every wireless interface I plug in through USB shows up as shown in ...
4
votes
2answers
531 views

Count network interfaces in Bash

I want to count the number of entries starting with the string "tun" that I get as output of the command ifconfig. For example, if this is my output, I want to count to be 2. I tried to play around ...
0
votes
0answers
25 views

Cannot understand behaviour of ifup/ifdown and /etc/init-d/networking

I want to connect an IP camera to my laptop which runs Ubuntu. The set up looks like this: Once I have the physical connections, I change my /etc/network/interfaces file from: auto lo iface lo inet ...
1
vote
0answers
76 views

Running ip or ifconfig from inside an UDEV Rule

I am trying to create an udev rule from which I would like to invoke ifconfig or ip to change ip addresses from a usb kernel network interface. To do this, I created: ACTION=="add", SUBSYSTEM=="net", ...
2
votes
2answers
413 views

OpenBSD - How to set static IP?

Question: How to set static IP in OpenBSD/LibertyBSD? Backstory: I recently purchased a *BSD VPS and have been having some issues with networking. How do I set the IP address?
0
votes
1answer
35 views

How to only start network interface when usb-stick is connected?

I have a tinkerboard setup, that it start its network configuration on startup, and opens a bridge. Now I need a setup, where the wlan only boots, when i connect an external device. Preferably if a ...
0
votes
1answer
173 views

ifconfig does not show enp1s0 on Linux Mint?

I am using linux mint ifconfig does not show enp1s0. it just shows enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0....
2
votes
1answer
61 views

How to know the interface from which we received a ping request

I know how to ping to a specific interface using the -I option. I want to know the interface through which I received the ping. I tried to use tcpdump for this but I cannot get any details. I can ...
0
votes
0answers
56 views

How can i get the incoming and outgoing traffic from ifconfig?

I am trying to get the incoming and outgoing traffic of my machine from ifconfig...As of my understanding Rx( total number of packets received) and Tx(total number of packets transmitted). But this ...
1
vote
1answer
33 views

Change private IP address without losing internet access

I start with the following: ens33 Link encap:Ethernet HWaddr 00:0c:29:03:a8:56 inet addr:192.168.0.161 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::dfa6:820:...
0
votes
0answers
64 views

how to get ethernet interface name, why do they vary from eth

On a dell pc, the only ethernet interface off the motherboard shows up as em1. On a newer supermicro server, the interface names are enp137s0f0 On some older supermicro servers, they are eth0..eth3 ...
0
votes
0answers
42 views

ifupdown2: Run another ifup from post-up (nested ifup)

An interface (the master bridge) is initially brought up, and, in it's post-up chain, the childs should be brought up. As we use batman-adv, bridge-ports is not an option: iface dom0-bat inet manual ...
1
vote
1answer
329 views

How can I get the ipv4 address from `ip link` like I used to see with ifconfig?

When I run ip to get the ip address, I'm getting $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:...
1
vote
1answer
342 views

Slow internet connection after MAC address spoof

I'd like to ask a question about spoofing MAC addresses. I'm trying it out in my own wifi network just to see how it's done. I'm running ubuntu 16.04 LTS. Let's say my original MAC address is 00:22:...
-3
votes
2answers
1k views

Does `ifconfig` show the MAC address of a network interface following `ether`?

Does ifconfig show the MAC address of a network interface following ether? Does ether mean ethernet? How does it mean Mac address? virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ...
-1
votes
1answer
356 views

Does `lo` have no MAC address?

From https://networkengineering.stackexchange.com/questions/57935/is-a-network-interface-supposed-to-have-no-more-than-one-mac-address/57937?noredirect=1#comment100988_57937 A network interface in ...
0
votes
1answer
381 views

Getting the IP address of a given interface [duplicate]

I need the IP (v4) address of a device I specify. The response will be later used in a script. This is what I have: $ IFACE=eth1 $ ifconfig $IFACE |grep "inet " | awk '{print $2}' 10.0.0.33 Is there ...
0
votes
1answer
3k views

What is the meaning of rx_missed_errors?

When we test the eth card with ethtool -S we get rx_missed_errors: 4649. What is the meaning of rx_missed_errors? Is it a major problem? rx_over_errors: 0 rx_crc_errors: 0 rx_frame_errors: 0 ...
33
votes
2answers
7k views

ip vs ifconfig commands pros and cons

At some point, in some teaching material (from Linux Foundation) on Linux that I came across, the following is mentioned: ip command is more versatile and more efficient than ifconfig because it ...
0
votes
1answer
103 views

How does the networking works in CentOS 7? Specifically, ifconfig?

Goal: To configure the routing of the traffic from VM to the PC and to the internet. to configure the forwarding of the traffic from wlan0 to the eth0 on CentOS7, and vice versa. My topology: VM - (...
2
votes
0answers
783 views

NetworkManager fails to connect with a cloned MAC address

I need to spoof a specific MAC address to be able to connect to the local ethernet. So I filled in the "Cloned MAC address" field in nm-connection-editor. After this, nm-applet shows a spinning icon ...
2
votes
1answer
244 views

IPV6 aliases in rc.conf

I am currently running FreeBSD 12.0-RELEASE-p2, and I can't figure out how to create both IPV4 and IPV6 aliases for a loopback (lo1) interface using rc.conf on boot. Here is a snippet of my rc.conf: ...
1
vote
0answers
201 views

will RHEL process my ifcfg-ens192.bak.xxx file?

Recently, we made a clone of a RHEL VM for testing purposes. One of the steps to make the clone unique was to give it a different IP address than the original machine (Of course). But the method used ...
0
votes
2answers
4k views

How to convert shell output to JSON?

I have this output in the following and I am trying to convert it to JSON api format. I want to know how can I do it. rock64@rockpro64:~$ sh MACscript.sh eth0 11:1d:11:11:11:1d lo 00:00:00:...
0
votes
2answers
371 views

port 1556 listening on tcp6 causing issues

on my RedHat 7, i noticed that network connection for Netbackup stopped working and i tried everything including rurning off my firewall and disabled SELINUX with no luck. the only thing i noticed ...
-2
votes
1answer
54 views

Why is it so hard to get your own local IP address [closed]

There are so many questions asking basically: how do I get my local IP address? None of answers are portable, they all seem like a hack. This seems like such a common need, but there are no good ...
5
votes
2answers
7k views

How to understand ifconfig or ip addr show [closed]

The ifconfig command dumps a lot of information at you, especially if you have a lot of interfaces, and you don't know where they come from. I've read through this tutorial page, which gives a great ...
-1
votes
1answer
2k views

eth: error fetching interface information: Device not found

I have an ubuntu 18.04 linux server. Why does the command(ifconfig eth) says Device not found whereas this command(ifconfig eth0) works? $ ifconfig eth eth: error fetching interface information: ...
1
vote
1answer
110 views

Why is there more than one HWadder while running command ifconfig

I performed the ifconfig command in Linux to find out my mac address. But as there are multiple HWadder in the output I can't find out my MAC address. I also want to know, why do they show multiple ...
2
votes
1answer
4k views

What is 'wlo1' ?

When I run the command ifconfig in the terminal, I get three results: lo, virbr0, wlo1. What is wlo1? Is it useful?
1
vote
1answer
977 views

Disable Power from Ethernet

I'm trying to "turn off" the power that goes to a device over Ethernet. I'm using this card: https://www.startech.com/Networking-IO/Adapter-Cards/4-port-gigabit-poe-pcie-network-card~ST4000PEXPSE; it ...
1
vote
1answer
715 views

Errors from ifconfig?

In my Redhat 7 Linux machine I see - RX errors 413556 and after some time I see the same error value - 413556 ( not increasing ). First question - is it possible to know when this error triggered? ...
2
votes
1answer
313 views

Converting 'ifconfig wlan0:avahi …' command to use ip instead of ifconfig

I am currently working on setting up a wireless mesh network using babeld as the routing algorithm. The documentation is very sparse, and most of the configuration guides I've seen online are using ...
0
votes
1answer
249 views

How to configure multiple physical ethernet ports in RHEL6?

I have an appliance with 4 ethernet ports (eth0, eth1, eth2, and eth3). I have configured some of the ports such that the results of ifconfig is as follows: $ ifconfig eth0 Link encap:Ethernet ...
7
votes
2answers
13k views

Ubuntu 18.04 New Netplan / IP Configuration (pointopoint?)

I have a Root-Server with Proxmox installed. Until now, I always had Ubuntu 16. Now i upgraded a VM to Ubuntu 18 and I need an example for the new netplan configuration. This was my old interfaces ...
2
votes
0answers
25 views

Significance of “@” in “ip a” command [duplicate]

The output of the ip a command in CentOs 7: 259: veth2060b59@if258: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP link/ether c6:1b:2a:b3:f6:c3 brd ff:ff:...
0
votes
2answers
345 views

what is the best approach to capture the MTU value

I am using the follwing to find the mtu value ifconfig | grep mtu eno17832: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 but in my ...
1
vote
0answers
819 views

Cannot receive DHCP OFFER

Recently my ethernet connection can't work. Seems that I can't receive DHCP OFFER sending by the DHCP server. My computer : OS : Ubuntu 17.10 Kernel : Linux version 4.13.0-38-generic (buildd@lgw01-...
0
votes
1answer
5k views

What is BROWSER_ONLY option in ifcfg-* network configuration files?

In my RHEL 7 minimal installation with Virtualization profile I found that interfaces configured with network manager(s) contain BROWSER_ONLY=no option, which is always set to no by default. Server is ...
0
votes
1answer
529 views

FreeBSD ifconfig failed when trying to connect to OpenVPN server

I am trying to connect to remote server with OpenVPN client, built into pfSense. I am failing and inspecting OpenVPN log wich says that (from bottom to top): Exiting due to fatal error FreeBSD ...
0
votes
1answer
271 views

Debian Standard network interface doesn't work, have to use USB enx00e04c6803a1 [closed]

I've been using Debian GNU/Linux unstable (sid) for five months now without problems. A few days ago my computer wouldn't connect through ens33 (the Ethernet port at the back of my desktop, embedded ...
1
vote
2answers
5k views

Virtual NIC: “SIOCSIFFLAGS: Cannot assign requested address” but gets created

I am having some trouble with the apparently easy task of creating a virtual network adapter on a physical network card in my Linux system (custom distribution, Debian-based). If I run ifconfig eth0:...