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
0
votes
1 answer

How to connect Ubuntu virtualbox using "BridgeAdapter"

what i have 1. Oracle VM virtualbox installed in Windows7. 2. Ubuntu 12.04 installed in VM. What i am trying 1. To connect this VM to host PC using Bridge Adapter What i have achieve so far 1. I can connect VM & host PC using NAT Reason for…
Ravi Yadav
  • 405
  • 4
  • 16
0
votes
1 answer

Ifconfig and IPtables Configuration

Would someone explain this below output of ifconfig command. This PC is using USB IP4 Internet connection. For example: why there is, inet6 addr: fe80::5a2c:80ff:fe13:9263/64 Scope:Link, assigned / active on eth1, and why loopback is active. Am…
user176105
  • 19
  • 6
0
votes
1 answer

Find the interface name on which system address is configured on solaris 10

When I check ifconfig -a command on Solaris 10, I get a list of interfaces configured. However my requirement is, I need the interface name on which my system address is configured. Ex. my IP is 1.2.3.4 How can I check if on which interface this…
0
votes
2 answers

Python and accessing command line utilities ifconfig, iwconfig and iw directly

I'm accessing ifconfig, iwconfig and iw from subprocess.Popen as below: p = sp.Popen(["ifconfig",nic],stdin=sp.PIPE,stdout=sp.PIPE,stderr=sp.PIPE) out,err = p.communicate() Is there a better way, i.e faster to do this such as interfacing directly…
WraithWireless
  • 634
  • 9
  • 21
0
votes
2 answers

ifconfig never shows current IP address?

I wish to know my current IP address (as the world sees it) via linux command line. I used ifconfig but it doesn't display the same ip address as is displayed on the website ip-details.com. is there a way to get the current IP address from command…
KawaiKx
  • 9,558
  • 19
  • 72
  • 111
0
votes
0 answers

Finding Link-Local IP in ifconfig (Linux - Redhat 9)

I set IPv6 in MIPS Embedded device. I use 2.6.23 kernel and I set IPv6 items in menuconfig. I updated kernel in the device but, link-local IP doesn't show in ipconfig as below: -> inet6 addr: /64 Scope:Link How can I set link-local IP? I can…
afew9man
  • 11
  • 3
0
votes
2 answers

ifconfig packet count

if I type ifconfig i get packet for Tx and RX ... where exactly the piece of code to increment this counter? Is it in the network driver itself? or in the kernel ? If possible please provide lxr link of the counter variable used. Thx !
kumar
  • 2,530
  • 6
  • 33
  • 57
0
votes
1 answer

cannot convert ‘char**’ to ‘char*’

I have an index for the network interface I got a packet from (i.e. 2), and need to find the name of interface, which should return "eth0". I'm using if_indextoname(). I'm not much familiar with C++ on Ubuntu, but my code drops an error: cannot…
Tina J
  • 4,983
  • 13
  • 59
  • 125
0
votes
1 answer

How do I determine the active wireless SSID?

I'm trying to find the name of my active wireless network, out of a list of all available networks. In order to list all available wireless networks, I call $ iwlist wlan0 scanning which gives me a very long output. I can pipe that through a python…
OnlineCop
  • 4,019
  • 23
  • 35
0
votes
2 answers

Bash grep local IP address and write to file in makefile?

I'm trying to get my local ip with ifconfig and write it to file but for some reason fail to do so. run: LOCALIP=$(shell ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | awk '{print…
Vytautas Butkus
  • 5,365
  • 6
  • 30
  • 45
0
votes
1 answer

ifconfig settings doesn't persist when setting up (reverse) tethering

I made setup where laptop/ubuntu detects phone/android being attached to usb: /etc/udev/rules.d/99-input.rules SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6863", RUN+="/root/usb.sh", MODE="0666" # samsung Then usb.sh is run. It…
user690954
  • 313
  • 2
  • 9
0
votes
1 answer

ping google.com or 8.8.8.8 fails

I am using Cent OS 6.4 and it is in a official lab. ping google.com gives the below output and hangs: [root@LAB1 ~]# ping google.com PING google.com (74.125.236.195) 56(84) bytes of data. ping 8.8.8.8 also yields the same result. I am able to access…
Siva
  • 3
  • 1
  • 3
0
votes
1 answer

ifconfig seemingly disagrees with Centos Network Connections preference

My Centos VirtualBox currently has no network connection and (as far as I can tell) no IPv4 address. The GUI Network Connections preference box lists a single configuration, which I manually renamed from "barret" to "eth1" thinking that could solve…
Lenoxus
  • 545
  • 1
  • 4
  • 19
0
votes
1 answer

linux ifconfig doesn't return an IP address

I want to know the IP adress of my linux (virtual machine) but when i enter ifconfig it doesn't return an IP adress. Normally it should be between "link encap" and "up broadcast" but it's not.. where to look?
Wyguf Seak
  • 1,153
  • 2
  • 9
  • 8
0
votes
1 answer

Find out name of the 3G interface on Android

I am trying to find out the name of the 3G interface inside my Android cell phone. I have BusyBox installed. I've been told I should see it when I run in the terminal: busybox ifconfig What I get is: $ busybox ifconfig lo Link encap:Local…
rapt
  • 11,810
  • 35
  • 103
  • 145