General :: Get IP Address / Ifconfig And Ip Addr Show Are Not Working
Apr 23, 2010This should be simple, but the machines we ssh into don't seem to have the regular commands.Are there any other simple ways I can use to get my IP?
View 7 RepliesThis should be simple, but the machines we ssh into don't seem to have the regular commands.Are there any other simple ways I can use to get my IP?
View 7 RepliesI have to change my MAC address in order to get an IP lease via DHCP. But almost no installer CDs have ifconfig and dhclient.
ifconfig eth0 down
ifconfig eth0 hw ether 00:22:15:C0:27:23
ifconfig eth0 up
dhclient eth0
Is there any way to change a MAC address within Debian or Ubuntu installer CDs?
I would like to create several aliases to eth0, but have the addresses assigned by DHCP instead of being set to static IP's. Is this even possible? All the examples I've seen assign a static IP using the command:
ifconfig eth0:0 192.168.1.11 up
where are the interface configurations (set by ifconfig, not the static ones) stored? I'm asking because I'm trying to understand, more broadly, the order of IP address lookup. If I ping the local machine (localhost, or one of the interfaces) no messages get sent out (at least according to wireshark), so some local lookup must be taking place.
View 1 Replies View RelatedWhen doing the ifconfig command I only receive the IPV6 address. How do I specify that I need the IPV4 address???
View 3 Replies View RelatedI'm trying to grok a problem I'm having with an embedded machine. I'm pretty sure I can track down the larger problem, but I came across a usage of ifconfig that I don't understand, and I'm pretty sure this is the command that is failing.
The command is: ifconfig eth0 192.168.78.20:9134
I understand how ifconfig works. What I don't understand is the :9134. I can't see anything in the docs about what this means. I know in most contexts it's a port number, but what does it do when bringing up a network interface? Does it limit it to only using port 9134?
I am trying to find IP address. In a socket programming tutorial, I found :
Code:
$ nslookup localhost
command. It gives me a address. However, one colleague told me :
Code:
$ ifconfig
It also returns me inet_addr. But both are different. Kindly tell me the correct method to find IP address? I have also checked the /etc/hosts file but it says "localhost"
it was working but after i installed updates and rebooted it could not get a ip address seems like strange timing it still registers under ifconfig it is not even working on the live usb anyway i can test to be sure it is the chip?
View 3 Replies View RelatedI have a laptop running 11.2 with an internal Broadcom-based Wi-Fi card that's working fine. I'm trying to get 802.11n going with the WUSB600N. The USB ID on this device is 1737:0079. I believe this means it's a "V2" with an RT3572 chip.
No driver loads for this device when it's plugged in. If I do a "modprobe rt2870sta", a driver loads, and syslog shows "rtusb init" and "usbcore: registered new interface driver rt2870". But ifconfig -a doesn't show a new network interface. I've also tried building the RT3572 driver from the manufacturer's web site. It builds fine, and modprobe will load it, but I get the same results as the rt2870sta driver.
I have a dns server started with 2 NIC Cards in it. The bios sees both cards but they both dont show in ifconfig. is there a way to activate the second card?
View 1 Replies View RelatedI have got Ubuntu 10.10 on a Dell Inspiron Laptop. Can't get anywhere with wireless network. Tried a few bits of poking it blindly with a stick:
matthew@ubuntu:~$ lshw -C network
Warning: you should run this program as super-user.
*-network
Description: Network controller
Product: BCM4312 802.11b/g LP-PHY
Vendor: Broadcom Corporation
Physical id: 0
Bus info: pci@0000:0c:00.0
Version: 01
Width: 64 bits
Clock: 33MHz
Capabilities: bus_master cap_list
Configuration: driver=b43-pci-bridge latency=0
Resources: irq:17 memory:f69fc000-f69fffff
*-network .....
I reckon *-network DISABLED is a problem, I tried sudo ifconfig wlan0 up but that didn't work. The output of that and lspci are on the ubuntu side of my machine. I have also tried pressing my wireless on/off key (F2) but that doesn't work either.
I created a Virtual WebServer (I used CentOS as guest) by using VirtualBox to test my website. When I typed "/sbin/ifconfig" to get "inet addr" it showed 192.168.56.101. I used a web browser from my host (Fedora 14 GNOME) to access 192.168.56.101. It was good, It displayed "Apache 2 Test Page". But I accessed 192.168.56.101/mysite it redirected to 127.0.0.1/mysite and showed error page.
View 1 Replies View Relatedthis is gonna be changed to another thread
View 1 Replies View RelatedAre there Unix/Linux commands to find out the IP address of running computers on LAN?
View 4 Replies View RelatedWhat is the command to show the host name of the ip address?Suppose, I've an ip address like 209.191.122.70, now I want to know its host name.What is the command for that?
View 7 Replies View RelatedI need a command that can show me the HOST-NAME as well as ip-address in a single stress.
View 4 Replies View RelatedSo I'll try to be brief and to the point here: I've got a couple of C / C++ apps that communicate with one another via shared memory. These worked completely fine until.. well, about twenty minutes ago when I finished making some network card changes and suddenly, I've got a weird problem going on. At one point, Parent app waits for Child app to set a boolean indicating it's finished initialization. This worked fine the last time I ran this app up (a few days ago). But right now, the shared flag never seems to get triggered (I've added a printf("Waiting..."); in Parent app until the flag is set). All the code leading up to it being set in Child app seem to be running smoothly, so I tried spitting out the addresses of the shared memory locations. The addresses mapped by Parent app and Child app are different; this seemed odd, so I went back and wrote a simple miniature app that just opened a shared structure on my own box, and I get the same thing - different addresses - but the miniature apps work just fine.
Is it normal for a shared memory space to be mapped to two different addresses across two processes?
If so, does anyone have any idea what might be the issue at hand with my Parent / Child app scenario? The Child creates the shared memory, the Parent has a wait before it opens it, and if it doesn't exist should fail (opening with PROT_READ | PROT_WRITE)... it doesn't fail so it's evidently there.
All of this worked until literally just a few hours ago and I made some changes to my network cards, and I can't even imagine how that could have changed whether or not shared memory mapping worked...
I have a Linux IPTables firewall on Centos 5.3.It has one physical interface to the internet and 2 internal interfaces to a DMZ and TRUSTED zone respectively.There are 10 virtual interfaces linked to the physical public interface.Emails are being sent from my server in the DMZ out to the internet, but it is being shown as coming from the firewall IP address.It must show as coming from one of the virtual interfaces.
View 4 Replies View RelatedI'm using F15 with two nics, each on different subnets 192.168.1.0/25 and 192.168.1.128/25. My issue is that on boot my 192.168.1.2/25 interface sets a broadcast address of 192.168.1.255 which is incorrect I believe. Its broadcast should be 192.168.1.127. I've tried setting the broadcast param in ifcfg-p3p1 file "BROADCAST=192.168.1.127" with no benefit.I can change this after boot of course, but that removes my default gateway for some reason.
View 2 Replies View Relatedi was trying to crate a script to show the last time iptables had seen a given IP address (contained in the ipt_recent kernel hook -- my user-defined table name is 'iplist'). The ipt_recent table yields the following information (IPv4 addresses masked for paranoid reasons):
Code:
src=www.xxx.yyy.zzz ttl: 114 last_seen: 9355600126 oldest_pkt: 1 9355600126
src=www.xxx.yyy.zzz ttl: 109 last_seen: 10020040763 oldest_pkt: 1 10020040763
src=www.xxx.yyy.zzz ttl: 111 last_seen: 8106864077 oldest_pkt: 3 8103790647, 8106530788, 8106864077
src=www.xxx.yyy.zzz ttl: 109 last_seen: 9937861664 oldest_pkt: 1 9937861664
src=www.xxx.yyy.zzz ttl: 115 last_seen: 8244867102 oldest_pkt: 1 8244867102
The attempted command used was:
Code:
cat /proc/net/ipt_recent/iplist | awk '{print ($1 ,system("date -d @" $5));}'
Such command yields the following (I'm willing to live with the trailing zero):
Code:
Wed Jun 20 05:48:46 EDT 2266
src=www.xxx.yyy.zzz 0
[code]....
I presume the ipt_recent table uses the standard UNIX epoch timestamp. Am I using the date command syntax incorrectly, is this a 32-bit vs 64-bit break, or it is something else? Please note that I am using FC10, and I have double-checked my system clock settings (both BIOS and OS). The system has only been running during 2009 (no reboot yet).
I have openSUSE 11.3 Gnome installed. The nautilus address bar shows the "Button Bar" and if I press Ctrl+L it swaps to the "Text Location Bar". The Text Location bar is where you see the full path to the directory that you're viewing.But I can't set the default addressing to the Text Location Bar.What else should I do to get the text location bar (i.e. the full path) to be the default view in the address bar?
View 4 Replies View RelatedI am using Open office 3.2 with Ubuntu 10.10. Trying to get it set up to print out the Christmas address labels. To register the data source its 'FILE'> 'WIZARDS' then' ADDRESS DATA SOURCE.' But OO doesn't show the 'ADDRESS DATA SOURCE' at the bottom of the list, so I am stuck. Apart from that, I have had no problems with ubuntu and its working well.
View 1 Replies View RelatedSorry if this has already been solved;answered anywhere else - I tried looking it up but to no avail. The problem persists & the hints I found around the forum did not provide a solution to the case, neither other net solutions i looked up I run Winblows at the lab and sometimes take my Ubuntu PC with me. There is an open Wireless network where they set MAC permission, and there's no pwd to access. It so should be fairly easy to change m MAC and access it, right! No. I run ifconfig and macchange, successfully change my MAC addr BUT the connection drops! Then if I change it back (MAC to my original address) it goes back online. And yes, I shut down the service -- "ifconfig wlan0 down" and then up..WHAT ON EARTH am I doing wrong??? No webpages touch this 'trouble-frigging-shooting instance!
View 2 Replies View RelatedI am trying to learn dns on my ubuntu 8.When the client tries to register is see the following error in the syslogunable to add reverse map from 10.1.168.192.in-addr.arpa. to tftpadmin-desktop.bbnl.iNot sure where i am going wrong. If somebody can help me out here, that will be a great help.the configurations are as follows
tftpadmin@bbnldmn:/etc/bind$ cat named.conf.local
//
// Do any local configuration here
[code]....
I am running centos 4.5 Kernel. 2.6.18
My ifconfig is broken. and i dont know how to fix it.
I go into /sbin and i see the file but when i try and execute the command is says bash: ifconfig: command not found.
The permissions on the file are as follows:
I'm a relatively inexperienced with Linux, coming from a Windows background, and I struggling to solve a troublesome issue attempting to set a static ip address to a Live Debian USB Key. I know it is possible to utilise the 'ifconfig' function to set a static ip address and use 'route' to set the gateway, e.g.
ifconfig eth0 10.0.0.40 up
route add default gw 10.0.0.130 eth0
..however in both cases I need to explicitly set the 'eth0' to point at the appropriate adapter. However, this is where my problem is...
I'm creating a persistent USB key using the Debian Live CD, I'm going to create an image and then duplicate that image to a load of other USB keys. Again, not a problem as such but there are cases where I need to specify a static IP address and gateway rather than using DCHP.
And here's where problem raises its head.
Because I've created the key on another machine it has allocated 'eth0' to a specific MAC Address (assigned in /etc/udev/70-persistent-net.rules) but when I place it into machine with a different network adapter it is assigning to 'eth1' (and this increments up).
a) call 'ifconfig' and 'route' without having to identify the adapter or
b) change the script that is creating '/etc/udev/70-persistent-net.rules' so it overwrites the 'eth0' entry with the only applicavle network adapter for the current hardware.
Following is my ifconfig output code...
I want to do some thing grep that I see the IP corresponding to each LAN card?
Is that possible?
When i type 'ifconfig eth0 192.168.25.1 255.255.255.0' the outcome is 'SIOCSIFADDR : invalid argument', but when i check the ip address using /sbin/ifconfig i see the ip address is updated to 192.168.25.1 and is up. When i restart the linux box,the /sbin/ifconfig is reset to 192.168.100.1 .what should i do so that the linux box /sbin/ifconfig should not change when am rebooting.
View 12 Replies View RelatedI configured it to use IMAP to access our exchange 2010 server front end on a LAN connection. Our webmail connection is segregated behind Forefront, so it was not connecting/authing that way. Even though smartphones have no problem. (sidenote, is there an activesync linux mail client ?)
I have many root folders and several folders underneath my inbox. total mailsize in inbox is 3.5 GB without subfolders. The sent is likewise as large. And is likewise empty.
Things I checked already:
View is all
Folder subscription is on and local copy is on
More info:
Thunderbird worky fine.
But thunderbird is missing calender
Tried adding lightening, but it won't add into thunderbird.
Will try finding a diff add on, or if anyone knows how to get lightening into thunderbird 3.1.8 on ubuntu 10 that would be great as well.
I am usually sshed into different boxes and i forgot what ip I am logged into sometimes. Is there a command I can type to give me the ip on the box I am on.
cat /etc/*release
CentOS release 5 (Final)
this failed
ifconfig | more
bash: ifconfig: command not found