As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [ifconfig]

a command from Linux POSIX operating system able to give information about the IP network.

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

add Second VLAN2 when eth0.2 exists. Linux

Currently I have eth0.2 VLAN, on vlan2, works great. How can i add second VLAN 2? would eth0.2:2 work? Running CENTOS 6 Thank you. er I did try: [root@computer ~]# dhclient eth0.2:2 sysfs read ...
Centos6 Fan's user avatar
1 vote
0 answers
102 views

Can I use the command "$sudo ifconfig eth0" to set a static internal IP on a Lan? [Raspberry Pi OS]

I am setting up a home server on a Raspberry Pi 4 with the latest version of Raspberry Pi OS on it. The first thing I want to do is create a static internal IP address for it so that I can reliably ...
Server Question's user avatar
0 votes
0 answers
56 views

No wireless - lost wpl3s0 - Kubuntu

No more wireless after a strange bootup. When the screen should be black during bootup, it took on many colours, sometimes looking like northern lights. Rebooting -> the same. I saw some error ...
Alain Reve's user avatar
1 vote
0 answers
272 views

ifconfig -a is showing br-ba165999130f instead of eth0 (ethernet works)

I have my PC connected to the router using a cable and I also connected a WIFI USB TP-LINK. Just checking ifconfig -a and I noticed there is no eth0 interface. Instead, the first one is called br-...
Milano's user avatar
  • 265
0 votes
0 answers
125 views

Why Dig, Curl and Ifconfig gives separate results?

I hit customer FTP and it gives following IP : 212.18.129.202 My production server has IP: eno16780032: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 146.213.179.131 netmask 255.255....
fatherazrael's user avatar
0 votes
0 answers
202 views

What does BSS not found error means in Wifi?

I have a yocto linux distribution and installed the rtl8723bu linux driver for the usb dongle. After plugging the usb i am getting some logs and also this log below.. [ 1985.355372] RTL871X: ...
Hsn's user avatar
  • 103
0 votes
1 answer
273 views

warning: no inet socket available: No such file or directory

so there i am using chroot to chrooting into debian bootstrap everything worked just right on root account until i added a new user to figure out that i cannot do update or access xdisplay or ...
amera's user avatar
  • 1
0 votes
0 answers
119 views

How to add/enable a new vNIC interface on linux

I want to configure vNIC interface (ens37) with a manual IP address - 192.168.16.1/24 on linux box Currently I see ens33 configured. So this is another interface I want to manually add. Any ideas how ...
pensee's user avatar
  • 101
0 votes
0 answers
121 views

Setting a wifi on an embedded linux - not seeing wlan0 on ifconfig

I'm trying to set up a wifi on this linux-based embedded board which has a wifi module embedded on top of it. I have configured hostapd.conf and wpa_supplicant.conf with the specific SSID and password....
xyf's user avatar
  • 111
0 votes
1 answer
3k views

ifconfig not included in Ubuntu 20.04 / Hyper-V

I have a bash script that does, among other things, MY_IP="$(ifconfig en0 inet)" but apparently Ubuntu 20.04 / Hyper-V / WSL2 doesn't have ifconfig. Is there a way to install it or do I need ...
neubert's user avatar
  • 6,653
3 votes
1 answer
5k views

How to change MTU without ifconfig in ubuntu 18.04?

I need to change the MTU size in my newly installed ubuntu 18.04. This can be done with ifconfig. But i can not install ifconfig. Whenever i run command sudo apt install net-tools i get the following ...
mahfuj asif's user avatar
0 votes
1 answer
640 views

why `ifconfig` shows 3 eth interfaces, while router has four

My router (Netgear r6700) has four ethernet ports. I telnet to it, and run ifconfig: br0 Link encap:Ethernet HWaddr <mac address> inet addr:192.168.1.1 Bcast:192.168.1.255 ...
govordovsky's user avatar
0 votes
1 answer
2k views

USB Wifi Adapter connected to Kali Vbox but absent in ifconfig

I installed VirtualBox-6.1.12-139181 for Windows 10 with Oracle_VM_VirtualBox_Extension_Pack-6.1.12 and imported the latest Kali VirtualBox Image kali-linux-2020.2a-vbox-amd64 from offensive-security ...
Ahmed Mustafa's user avatar
0 votes
1 answer
2k views

how to disable wwan0 and prevent it from starting up again?

I'm using a Raspberry Pi with the SIM7600E 4G hat to set up a point-to-point protocol connection, using pppd. This all sets up correctly all works, however when I use it to browse the internet, the ...
carrot-anderson's user avatar
0 votes
1 answer
157 views

No wireless interface on Debian 10 (Asus X502C)

I just installed Debian 10 on a Asus X502C laptop. It previously had a Win/Ubuntu dual boot and the WiFi worked fine. uname -a Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) ...
Agrim Pathak's user avatar
1 vote
1 answer
285 views

OpenBSD 6.6 wlan DHCP no link, routing issues

I've been bashing my head against this for a few days so I'm asking for help. The machine is a Thinkpad using a Intel PRO 2100 wifi card with the ipw driver (https://man.openbsd.org/ipw). I tried ...
C-C-C-C's user avatar
  • 13
0 votes
0 answers
3k views

Instructions to spoof MAC address in OS X High Sierra not working

I am following these instructions to spoof MAC address in High Sierra OS X: https://blog.macsales.com/43777-tech-101-spoofing-a-mac-address-in-macos-high-sierra/ but I get unexpected errors such as: ...
Daniel's user avatar
  • 111
0 votes
1 answer
45 views

Why I can't navigate after set a fix IP on a Linux machine virtualized on VMWare?

I am not so into networking and I am finding the following problem trying to configure a fix IP on a Linux virtual machine virtualized on VmWare. The networking mode condigured on VmWare is NAT and ...
AndreaNobili's user avatar
  • 6,901
-1 votes
3 answers
7k views

ifconfig command not working on Kali Linux

I installed Kali Linux in a virtual machine, but the ifconfig command is not working and permission denied. I've searched many answers on YouTube and Google. But there is no command that works. My PC ...
Deepak Kumar's user avatar
0 votes
1 answer
581 views

Why do `ip` and `ifconfig` have different behaviors when the interface is down?

I first shutdown interfaces # Shutdown the interfaces ip link set enp2s0f0 down ip link set enp2s0f1 down Using ifconfig: # Set subnets to interfaces ifconfig enp2s0f0 10.0.0.1/24 ifconfig enp2s0f1 ...
Alexis's user avatar
  • 207
6 votes
1 answer
5k views

ifconfig shows multiple network interfaces

When I run ifconfigon my Macbook air 2018 with MacOS Mojave 10.14.6 I get this: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP&...
Sean's user avatar
  • 73
1 vote
0 answers
249 views

ifconfig shows a bunch of network interfaces [duplicate]

When I run ifconfigon my Macbook air 2018 with MacOS Mojave 10.14.6 I get this: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP&...
Sean's user avatar
  • 73
7 votes
1 answer
9k views

Network interface for VPN connection explanation

I'd like to know exactly what is happening when I create a connection with my company's VPN. When I connect (using OpenVPN), I see the following network interface by using ifconfig: utun3: flags=...
wheresmycookie's user avatar
0 votes
1 answer
1k views

How to change local network info (ip, netmask, broadcast) using ifconfig

I am following along with the book Linux Basics for Hackers (No Starch Press, 2018) using Kali Linux (2019.1a) with VirtualBox and when changing my network info (chapter 3) I am no longer able to ...
Josh's user avatar
  • 101
0 votes
1 answer
271 views

Ifconfig report some interfaces with strange names on MacOS

The command ifconfig Report some strange interfaces on MacOS OHC6: flags=0<> mtu 0 OHC4: flags=0<> mtu 0 EHC36: flags=0<> mtu 0 EHC38: flags=0<> mtu 0 What is OHC and EHC?
elbarna's user avatar
  • 306
0 votes
1 answer
517 views

ppp interface and an ethernet interface both not working together

I have a Rasberry Pi with two network interfaces. One is a ppp interface connecting to a cellular modem over USB. The other is a local ethernet connection with an ethernet cable connected to a ...
Engineer999's user avatar
1 vote
1 answer
2k views

OracleLinux 7.5 Virtual Box No IP

Host is Mac OS High Sierra VBox version is 5.2.16 Guest is Oracle Linux 7 VM Network Adaper type is Bridged I installed and set this VM on whilst on network 172.16.21.0, and it worked fine with the ...
TenG's user avatar
  • 121
0 votes
3 answers
3k views

How to change the MAC address of a networking interface on FreeBSD 11.1

I'm trying to change the MAC address of my network card (a generic card using an Intel chipset) on my. system that is running FreeBSD (FREEBSD 11.1-RELEASE-p7). I get the following output when I ...
noowie's user avatar
  • 1
2 votes
2 answers
15k views

“”ping 8.8.8.8 connect: Network is unreachable“” in centOS 7 on VMware workstation 14

I am trying to work with centOS 7 which I installed on VMware workstation. But it doesn't have internet connection: $ ping 8.8.8.8 connect: Network is unreachable $ ping www.google.com ping: www....
afsane's user avatar
  • 21
0 votes
1 answer
279 views

DNS 127.0.1.1 not working because of an unknown issue

I have an internet connection through Ethernet LAN cable (connected on interface eth7). My Ubuntu OS shows that internet is connected. However, when I search on the browser, page shows that I am not ...
Ramzah Rehman's user avatar
2 votes
1 answer
2k views

Ubuntu 18.04 New Netplan / IP Configuration (pointopoint?) (Need Example)

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 a example for the new netplan Configuration. This was my old interfaces ...
R.Kunz's user avatar
  • 41
1 vote
1 answer
728 views

Changing MAC address of an interface without making it down

All the examples I see on internet for changing the mac address of an interface in linux, first makes the interface down and then update the mac address and finally bring the interface up. But, I can ...
user8070445's user avatar
2 votes
1 answer
306 views

How to find source code of specific version of linux tools, i.e. ifconfig

I had a weird situation yesterday when a shell script broke on the machine of colleague. the Script was parsing output from ifconfig, and it would assume that there was no : (colon) after the ...
Thomas Hirsch's user avatar
2 votes
0 answers
430 views

How does tcpdump configure an interface it begins to capture packets from?

On an Arago embedded linux system, an interface would normally be able to ping other destinations on the network. However, the pings stop working when using a utility such as iperf or scp to send TCP ...
nndhawan's user avatar
  • 181
0 votes
1 answer
92 views

VPS internet has been killed. How do I fix it?

I am working with a friend on a VPS we use. Recently out root password was leaked and out internet has been completely ruined. ifconfig wan't recognised as a valid command or anything. I managed to ...
DevelopedLogic's user avatar
4 votes
1 answer
2k views

Why does ifconfig only show the first IP of a network interface configured with systemd-networkd?

So I'm not sure what's going on here, but I've duplicated this problem on multiple different servers on Ubuntu 17.04 (up to date) yet I can't find any other reports of this, so I have to imagine I'm ...
mikev's user avatar
  • 43
1 vote
1 answer
52k views

SIOCSIFFLAGS: Operation not permitted

I am trying to connect my TP-Link AC600 wireless adapter through the USB port to connect to Kali linux Rolling but I am having issues getting it to show up with ifconfig root@kali:~# ifconfig ...
LightbulbCoder's user avatar
1 vote
3 answers
7k views

how to delete SSID data from Debian wifi interface?

I have Debian distribution and when I want to reset the WIFI connection I run the following command: ifconfig wlan0 down and I also delete the wpasupplicant.conf file but when starting the network ...
flashDisk's user avatar
0 votes
2 answers
2k views

Physical and wireless interfaces in macOS

I have a MacBook Pro (Retina, 13-inch, Late 2013) running macOS 10.12.1. I know from reading another answer: There's no eth0 on default configurations of OS X. By default, en0 and en1 are your ...
mbigras's user avatar
  • 577
2 votes
1 answer
77 views

Identify the ethN interface containing a particular octet in CentOS

I have a specific need to identify which interface a part of an octet (e.g. xx.xx.xx.112) belongs to on a CentOS machine My initial idea was to dump the output of ifconfig and parse it manually to ...
Inian's user avatar
  • 240
3 votes
2 answers
927 views

Is it possible to restrict connection to database in Docker container at particular interface on Ubuntu 16?

I have MySQL database on a server (I use Percona in Docker container) with several network interfaces. My system is Ubuntu 16.04.2 LTS. ifconfig eth0 Link encap:... inet addr:95.*.*.*...
Roman Cherepanov's user avatar
0 votes
1 answer
819 views

Linux ifconfig - what does ifconfig | grep -Po "HWaddr \K.*$"

I was hoping somebody could explain bit by bit what each part of this command does. ifconfig | grep -Po "HWaddr \K.*$" e.g. what The -Po is for?
Mark Mills's user avatar
-1 votes
1 answer
901 views

When I type in ifconfig to the command line, what does the information mean? [closed]

When I type in ifconfig I see a lot of information, what does it mean? Especially the information under the heading eth0.
Tom Scott's user avatar
  • 173
0 votes
3 answers
4k views

Trying to find my public ipv6 address for ubuntu server and godaddy

I have just set up ubuntu server, and I cant figure out this stupid xfinity router/modem. So what I've managed to do is set a static ipv6 on ubuntu server iface enp4s0 inet6 static address 2601:407:...
your mom's user avatar
  • 143
2 votes
1 answer
365 views

wlan0 RX/TX packets increase but no connection established

I am wondering why the wlan0 interface on my Raspberry Pi configured as a HotSpot and not connected to any client has its "RX/TX packets" counters from ifconfig increase continuously? Since no client ...
vinczo's user avatar
  • 23
3 votes
1 answer
532 views

How do I make ifconfig/dhclient setting permanent in FreeBSD?

Lately, for the purpose of smoke-testing the Perl 5 core distribution, I have been using VirtualBox to install VMs of various versions of FreeBSD on a Linux x86_64 host. In my first attempt at doing ...
James E Keenan's user avatar
2 votes
1 answer
8k views

"ifconfig" gives an error on Bash on Ubuntu on Windows

When I try using the command "ifconfig" on Bash on Ubuntu on Windows(WSL), it gives me an error like this :- root@example:~# ifconfig Warning: cannot open /proc/net/dev (No such file or ...
Don't Root here plz...'s user avatar
0 votes
2 answers
186 views

What is the purpose of configuring the netmask on an ipv4 interface on a Linux machine?

I am wondering what is the netmask used for in the Linux network stack. Let's assume I have an interface eth0 configured to ip 1.1.1.1 and netmask 255.255.255.0 now I am sending a packet to 1.1.1.2 ...
user6668153's user avatar
1 vote
1 answer
660 views

Linux Web Server Cannot ping localhost or anything on the internet

My ubuntu 12.04 server was working fine a few days ago. I didn't change any server configurations, but today all of a sudden I can't ping anything. What could be the potential issue here? I can't even ...
Patoshi パトシ's user avatar
4 votes
2 answers
8k views

Not able to spoof MAC address in Kali Linux

The MAC address is spoofed when the network interface is down or not connected to any AP. But as soon as I connect to any access point it changes the spoofed MAC address to the original address. I ...
levi1696's user avatar