Questions tagged [ifconfig]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
25 views

Kali Linux 2020.4 does not recognize internal network card; lspci, network manager, airmon-ng, rfkill, etc. not working

My Kali system does not recognize my internal network card (Qualcomm QCA9377 802.11) or any wireless capabilities. See below output for ifconfig, iwconfig, and dmesg. I do not believe there is an ...
0
votes
1answer
26 views

Correct way to find vpn gateway using script

I need to find ip that my vpn interface (vpn0) uses to connect so I can setup routes correctly using a script. What is correct way to do this? First solution I tried ❯ ip r | sed -rn "s/.*dev ...
2
votes
3answers
86 views

Why linux ip command output is so messy [closed]

I understand that the ifconfig command has not been developed and updated for a while and is now deprecated, we are supposed to use the ip command. I just dont understand why in 2020 the output has to ...
0
votes
1answer
9 views

How to learn “RUNNING” status with `ip` tool?

ifconfig was said to be deprecated ca 2009 with the introduction of ip. Many online pundits advise users to drop ifconfig in favor of ip. I use ip myself, but mostly due to the fact that its output is ...
0
votes
1answer
38 views

ETH0 no address ip with ifconfig

I've created a new LXC on debian jessie, but it doesn't have an ipv4 address. When I connect to my LXC and do ifconfig: eth0 Link encap:Ethernet HWaddr blabla inet6 addr: blabla/64 ...
-1
votes
1answer
26 views

Why is the server accepting connections after disabling the network interface?

I've googled around and executed other commands (I had left here only the ones that I think are more useful). Most searches pointed me to explanations about how to shut down/up interfaces and no hints ...
1
vote
1answer
321 views

What are these ifconfig interfaces on macOS

I have a MacBook Pro 15" 2018 (Touch Bar). I see it has a lot of network interfaces. I would like to know what they are/what they do. I did some research but I couldn't really figure out all of ...
0
votes
1answer
38 views

Adding IP allocation with ifcfg gives wrong broadcast address?

I got a /29 IP allocation from my ISP. I added them using ifcfg to the range file for my interface: ifcfg-eth0-range:0 (NOTE: I replaced my actual IPs with private IPs here.) IPADDR_START=192.168.2.0 ...
1
vote
1answer
131 views

Unlock LUKS device remotely - ipconfig: no devices to configure

I am trying to unlock my root encrypted Debian Buster on an acepc T11. I installed dropbear, added DEVICE=enp1s0 IP=:::::enp1s0:dhcp to /etc/initramfs-tools/initramfs.conf and executed update-...
0
votes
0answers
374 views

ifconfig: SIOCGIFFLAGS: No such device

Running ifconfig wlan0 up returns ifconfig: SIOCGIFFLAGS: No such device I tried ifconfig wlan0 and got ifconfig: wlan0: error fetching interface information: Device not found Boot-up logs showing ...
0
votes
1answer
34 views

vboxnet0 interface prevents applications to use Wi-Fi

Since some days ago , a strange interface showed up in my system and is there even when I close Virtualbox : $ ifconfig ... vboxnet0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether ...
-1
votes
3answers
137 views

ifconfig netmask ip alternative

What is the ifconfig netmask command ip alternative for this command: ifconfig eth0 netmask 255.255.240.0 I found something like this, but honestly I'm not sure, since the address is missing: ip addr ...
0
votes
1answer
16 views

How to get the in/out packets by ifconfig

How can I get the in/out bytes separate for ifconfig?? I check packets and bytes by ifconfig . ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 153.126.***.** netmask 255....
1
vote
1answer
46 views

Virtual NIC interfaces go down when physical NIC doesn't have IP address

I am creating two virtual interfaces from a physical NIC interface using SR-IOV: echo 2 > /sys/class/net/PHYSICAL_INTERFACE/device/sriov_numvfs I want to use one of the virtual interfaces with a ...
0
votes
0answers
21 views

No ip address and no connection

iwconfig is showing my essid but ifconfig is not showing my ip neither Internet is working. I tried to connect through nmcli but it showed timeout /sbin/iw wlp2so link is showing connected. I am using ...
0
votes
0answers
11 views

Change priority(bandwidth) of network interface or by ip address

I have a virtual router with two networks. WAN and LAN. On LAN there are several PC's with fixed IP all on the same network. The router OS is Linux based. Traffic from PC A would by default use all ...
2
votes
1answer
264 views

ip link set <interface> up / down: how are scripts called?

Depending on the distribution, invoking ip link set <iface> up (or down; also ifup / ifdown) will look at various config files (/etc/network/interfaces on Debian I think, Gentoo has /etc/conf.d/...
0
votes
1answer
58 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
22 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
29 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
62 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
490 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
982 views

Ifup interface failing with answers: file exists

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
45 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
217 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
16 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
666 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
30 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
164 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
913 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
139 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
306 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
128 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
83 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
37 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
94 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 ...
3
votes
1answer
1k 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
666 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:...
-2
votes
2answers
3k 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 ...
0
votes
1answer
965 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
1k 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
5k 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 ...
35
votes
2answers
8k 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
131 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
992 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
326 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
229 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
6k 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
481 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
59 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 ...