LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-31-2007, 06:50 PM   #1
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Rep: Reputation: 15
How to obtain devices IP


Hi,

I have an Acme Fox board, which I have plugged into my home network. I have not been able to discover the IP address of the device using nmap on the 192.168.0.0/16 range.

Would anyone know the best way to detect what IP this device is assigned to.

Cheers.
 
Old 12-31-2007, 07:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,606

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
According to the Acme documentation the defaults are:
IP="192.168.0.90"
NETMASK="255.255.255.0"
BROADCAST="192.168.0.255"
GATEWAY="192.168.0.1"

Did you try directly pinging the board?

Did you check the LAN LINK LED DL2 to verify you have a working connection? Do you have a console port to connect the board via RS232 to a PC?
 
Old 01-01-2008, 05:07 PM   #3
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks for you reply.

I did try pinging the default settings, but there is no response.


Code:
$ ping 192.168.0.90
PING 192.168.0.90 (192.168.0.90) 56(84) bytes of data.

--- 192.168.0.90 ping statistics ---
30 packets transmitted, 0 received, 100% packet loss, time 28999ms
The LAN link appears to be intermittent, it was flashing yesterday, but today there is no LAN link activity.

Sadly, no RS232.
 
Old 01-01-2008, 06:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,606

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Is this a new board? I can only suggest the obvious like verifying the ethernet cable and power supply/cable are good. I assume your plugging the board into a switch or a router. Without access to the console port information it is going to be difficult to determine if the board is booting up and functioning correctly.

BTW what is your home network address? i.e. 192.168.0.0, 192.168.1.0 etc...
 
Old 01-02-2008, 04:24 AM   #5
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your quick reply. I have checked all the obvious stuff.

My home network is 192.168.1.0/24

I will have to buy an RS232, I guess :-/

Cheers.
 
Old 01-02-2008, 07:20 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,606

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
I would take a crossover cable and directly connect board to your PC. Configure a static IP address to something in the 192.168.0.x netmask 255.255.255.0 range just to make sure you do not have a basic network configuration problem. If you can ping the board then you will know its working.
 
Old 01-02-2008, 10:07 AM   #7
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Original Poster
Rep: Reputation: 15
Hmmm, yes your right. I got overly excited with the idea of hacking together an rs232 socket and connecting over the serial link.

Thanks for your help, I'll keep you posted with the results.
 
Old 01-02-2008, 10:14 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,606

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
IMHO it would be good idea to have the capability of connecting the board to a PC via its console port.
 
Old 01-03-2008, 01:04 PM   #9
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Original Poster
Rep: Reputation: 15
Hi,

I have plugged a second network card in, configured as follows:

# The secondary network interface
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.50
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1

Also, constructed a cat 5 gigbit crossover cable:

http://en.wikipedia.org/wiki/Etherne..._cable_pinouts

Pinging the board does not work, as I guess the default IP has been changed. Is there any other tests I can try or should I configure the console connection.

Cheers
 
Old 01-03-2008, 05:18 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,606

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
IMHO in the long run it would be best to wire up a console connection.
 
Old 01-03-2008, 06:12 PM   #11
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Original Poster
Rep: Reputation: 15
Hey,

OK, I rushed down the local electronic store today and picked up all the appropriate components. Keep you posted on my progress.

Just thought to tail kern.log after plugging in the crossover from PC to Fox board:

Code:
Jan  4 00:07:20 lennybox kernel: eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
Many thanks.
 
Old 01-03-2008, 10:19 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Well in the old days we used to cheat by creating a static arp entry for the mac address of the device so we could get initial communication then once communication was established we could do a basic config on the networked device.. don't know if that would work with this device or not.

in the example below I check my arp cache
then add a static arp cache entry setting an IP address for the mac address of the device I want to communicate with.

Code:
debianetch:~# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.1              ether   00:04:E2:17:FE:C6   C                     eth1

debianetch:~# arp -s 192.168.2.88 00:04:e2:12:34:56

debianetch:~# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.1              ether   00:04:E2:17:FE:C6   C                     eth1
192.168.2.88             ether   00:04:E2:12:34:56   CM                    eth1
debianetch:~#
at which point I should be able to ping and telnet to the device via the IP address I manually assigned to it's mac address..

can't say if it will work for you or not, but if you have the MAC of the device, give it a shot !!

Last edited by farslayer; 01-03-2008 at 10:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system calls to devices?Talking to devices. kiruxa Linux - Hardware 6 12-09-2006 05:46 PM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM
cannot obtain IP through dhcp? chy1013m1 Linux - Networking 4 06-24-2005 06:24 AM
OS/2---How to obtain? rm6990 General 4 10-15-2004 12:26 AM
obtain grub exodist Linux - Software 4 08-25-2003 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration