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

why different pci slot use same device serial number?

my questions are: 1, why pci~02_00_0 and pci~02_00_1 use the same Device Serial Number(a0-36-9f-ff-ff-b6-dd-c2)? 2, which pci slot is eth1(a0:36:9f:b6:dd:c3) corresponding to? details are below. *[root@localhost ~]# lspci |grep Ethernet 02:00.0…
nagexiucai
  • 37
  • 1
  • 7
-1
votes
1 answer

UbuntuServer 16.04 VirtualBox Machine - Emergency Mode for Network Interfaces

I'm using a virtual machine with Ubuntu16.04Server O.S. on a Windows host. Everything was working perfectly but after switching off everything and then coming back to my virtual server, the machine doesn't start. It shows: [FAILED] Failed to start…
pittuzzo
  • 493
  • 8
  • 29
-1
votes
1 answer

Creating new network interfaces from a list in ansible task

I looked over this list and i didn't find any answer on how to create a new network interface like you usually do with `ifconfig'. What i want to achieve is create an interface for every string item in a variable list, but before that i want to…
Sackhorn
  • 348
  • 3
  • 16
-1
votes
1 answer

eth0: error fetching interface information: Device not found

When I type this code in Ubuntu 16.4 shell: INTERFACE=eth0 IP=$(ifconfig $INTERFACE | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') ... I get the following error message: eth0: error fetching interface information: Device not found I…
HackerDuck
  • 249
  • 1
  • 5
  • 17
-1
votes
1 answer

ifconfing setting does not maintain...?

I run a Linux Mint Cinnamon 17.3 on Surface pro 2 and I am using ThinkPad USB network card. I want to create a simple network between two computers (connected with RJ-45). So I try to setup eth0 on Surface like: sudo ifconfig eth0 10.0.0.1 netmask…
Charlestone
  • 1,248
  • 1
  • 13
  • 27
-1
votes
1 answer

How to extract netmask using /sbin/ip?

I want to replace ifconfig with /sbin/ip. Using ifconfig I can see lines like inet addr:xx.xxx.x.xx Bcast:xx.xxx.x.xx Mask:255.255.255.0 and can easily parse this to find the netmask (255.255.255.0). How can I achieve this using /sbin/ip?
krisharmas
  • 211
  • 2
  • 5
  • 12
-1
votes
1 answer

Check auto-negotiated NIC speed on OpenBSD

How do I check the auto-negotiated speed of a network interface on OpenBSD? When I force a specific speed, ifconfig will show it in the "media" line; but if the interface is in auto-negotiation mode, I can't find a way to retrieve the network speed…
Andy G
  • 1
  • 2
-1
votes
1 answer

how to extract only MAC of wlan0 from ifconfig

How to extract only MAC of wlan0 from ifconfig using CUT(!) in the manner of: ifconfig eth0 | grep HWaddr | cut -d ' ' -f 11 And why ifconfig wlan0 | grep HWaddr | cut -d ' ' -f 11 doesn't work in the same manner? Thanks.
-1
votes
2 answers

scan and connect to wifi from linux terminal on virtual machine

I am trying to scan wifi networks via Linux terminal running on a virtual machine. I am running virtual machine on Mac OS. On MAC terminal, I can see all WIFI networks using (airport) command and can connect to one network. The NetworkAdapter…
user3358147
  • 69
  • 5
  • 12
-2
votes
2 answers

Ubuntu 16.04 reboots with a different ip address then the static one assigned in /etc/network/interfaces

When my server reboots the ip address for eth0 is 192.168.1.2 when it should be 192.168.1.100 per the static ip address settings in /etc/network/interfaces. After boot if I run service networking restart it will assigning 192.168.1.100 to eth0. Also…
Mark M
  • 11
  • 3
-2
votes
2 answers

How to find the actual IP address of a Cent OS virtual machine?

Hi, I have installed Cent OS inside VM Ware. I want to know the IP address. When I try to find it using "ifconfig" in terminal, it is showing Local address(127.0.0.1). What might be the issue? I want to know the actual IP address.
bgt
  • 19
  • 5
-2
votes
2 answers

Could sharing ifconfig information publicly be dangerous?

Is there any dangers in sharing my ifconfig information from Linux publicly?
Code0101
  • 1
  • 2
-3
votes
4 answers

Windows Ethernet showing "Network cable unplugged" when connected to Linux machine

I currently have a Windows 10 machine connected to a Red Hat Enterprise Linux Workstation 6.10 machine by Cat 5 Ethernet cable. I plug an Ethernet cable from eth2 port on the Linux machine to Ethernet on Windows machine. I run ifconfig eth2 down on…
Sam
  • 1,542
  • 2
  • 13
  • 27
-4
votes
1 answer

Networking Homework Questions from PythonAnywhere

What is the IP configuration for your PythonAnywhere server (i.e. what is the output of the shell command used for this purpose)? Optional: Write a function that garners this information from the shell and returns a dictionary of { "interface name":…
1 2 3
14
15