Questions tagged [ifconfig]

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 (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.

You can use the ifconfig command to assign an address to a network interface and to configure or display the current network interface configuration information.

Read more about ifconfig at Wikipedia..

224 questions
-1
votes
1 answer

How to find on which linux interface LAN wire is connected?

I have a machine with 3 visible ethernet ports. However, ifconfig is showing 7 interfaces. I have connected LAN wire on visible ethernet port but don't know name of linux interface on which LAN wire got attached. How can I check it?
Sudip
  • 523
  • 2
  • 7
  • 14
-1
votes
1 answer

MDNS not advertising the network interface after network restart in systemd

In systemd, MDNS (avahi-daemon) stops broadcasting the network interface after the network restart. However, for the same scenario, in system init, MDNS will work perfectly normal. Tried: Changed the avahi-daemon configuration file restart the…
-1
votes
1 answer

Unable to display IP address after using ifconfig on ubuntu18.04

all, After using ifconfig on ubuntu18.04, can get "eno1, eno2" related information, but the IP and netmask are not displayed, but now I need this IP for remote connection operations. The following solutions are given online: First usesudo dhclient…
-1
votes
1 answer

How to get data-info inside the "DIV" of comments for don't show it inside a post that is not his

Im trying to Hide a comments that are not releated with the post above, the problem is that I have a database with all comments, and they are present in every post that I add... I'm trying to add a data-ID for every comments and trying to create a…
-1
votes
2 answers

Count unique value with multi criteria

I'm using excel 2016, and I have sheet with 4 columns: Project, Id, Type, Status data that I have: Project ID Type Status A 5 Construction As Scheduled A 5 …
Mohsen
  • 13
  • 1
  • 5
-1
votes
2 answers

Separately handling case when both of two items are present (grepping ifconfig output)

I am trying to pipe a script to my statusbar in linux via dwm window manager and have it working fine but wanted to have a command echo "multiple" if i have more than one interface name up at the same time. This is what i have come up with so far…
user12243347
-1
votes
1 answer

ip addr command setting incorrect subnet mask while assigning IP to an interface as compared to ifconfig command

I am trying to set the IP address to an interface on my Ubuntu 18.04 machine using ip addr command however the ip addr command sets the subnet mask as 255.255.255.255 for a Class C IP address where as the ifconfig command sets the subnet mask as…
Krishna Oza
  • 1,390
  • 2
  • 25
  • 50
-1
votes
2 answers

How to find particular interface name and status from ifconfig command?

When I use ifconfig command, it will show the details of all active devices. I want the interface name only, and want to check whether the interface is running or not. ifconfig | grep interface-name This will give all detail about the interface…
Yash Shah
  • 158
  • 2
  • 13
-1
votes
2 answers

How to get all net interfaces in script only with their ip addresses and masks? Linux

ifconfig shows too much information. I need to know all net interfaces no matter whether they are available or not and pair them with their ip addresses and masks. In case if ficonfig returns enp9s0 Link encap:Ethernet HWaddr 54:be:f7:5c:99:0d …
-1
votes
1 answer

Get the first 3 lines of each ip address/ifconfig interface command Linux

I am trying to get the first 3 lines of ip address/ifconfig from some VMs - some of them are running on Ubuntu, some of them on CentOS. For example: eth0: flags=4163 mtu 9001 inet 172.31.106.100 netmask…
Romain
  • 171
  • 1
  • 3
  • 15
-1
votes
2 answers

how to block the shell, untill "ipconfig up" finish

i have a test for a device where i am using: "if-config lan1 up" and right after check if it was able to connect(succeed with if-config up) with "ethtool lan1". but before it can get up it already check if LAN 1 is connected, so it telling me its…
ishash
  • 1
  • 1
-1
votes
1 answer

Regex for inet addr failed

In Ubuntu 16.04 I ran ifconfig and saw my external ip as in inet addr:MY_IP. I tried to "dug" it right into a variable in these ways: ipa=$(ifconfig | grep "inet addr:\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b") and: ipa=$(ifconfig | grep "inet…
Osi
  • 1
  • 3
  • 9
  • 30
-1
votes
1 answer

Lost network interface with Ubuntu server terminal

Trying to run a Minecraft server on Ubuntu. I only have the terminal, no GNOME. Somehow I lost the network. ifconfig only shows the loopback. /etc/udev/rules.d/70-persistent-net.rules shows: # PCI device 0x8086:0x1050 (e100) SUBSYSTEM=="net",…
-1
votes
1 answer

Why are ifconfig's FLAGS values different from each interface's ifa_flags value and how can I get ifconfigs values?

running the following code prints out the ifa_flags value for each interface. Running ifconfig immediately after will show different FLAGS values for each interface. Why is this? How can I get ifconfig's FLAGS value without parsing a shell command's…
lelephantt
  • 169
  • 1
  • 1
  • 10
-1
votes
2 answers

How to append "ifconfig" in a file .txt in C language?

I'm trying to get my own ip addres with C. The idea is to get the output of "ifconfig", put it in a .txt file and extract the inet and the inet6 values. I stack trying to write the ifconfig output in the .txt file: #include #include…
Stefano
  • 60
  • 1
  • 1
  • 8
1 2 3
14
15