Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I've been trying to connect to an embedded board via a network. Seeing ifconfig said no ip I set about setting this up and setting route etc.
ifconfig eth0 192.168.0.8 net mask ..... up etc.
Still no luck.
I then noticed the terminal was putting an error message
udhcpc[280]: sending discover ...
After a search I found this is a type of protocol for small systems. I them searched the file system and found udhcpc and a file default.sh.
One line showed ifconfig 0.0.0.0 so I changed this is a valid address. There was also some gw stuff set to 0.0.0.0 but I didn't change this. I rebooted and no effect.
Can someone help me with this. Is there a command to stop, set ip, set gateway set route etc. Then reboot. So do I need to do something with default.
I'm a programmer and rarely touch this stuff so please be gentle :s Thanks!
No luck. ifconfig eth0 shows the correct ip and netmask, but ping 192.168.0.1 won't see the server or anyother pc.
One strange thing
#ping localhost shows 127.0.0.1
also if I use any udhcpc command it changes my IP (without me asking) to 127.0.0.8 , but my udhcpc default.script shows the correct IP I've entered :s. It's as if it's getting the manufacturers host IP, maybe this is set somewhere?
I needed to go into /etc/rc.sysinit and change the route in there.
The usual route command does not appear to override it on this system.
On testing this does not work ifconfig shows it's all OK and I thought I could ping other servers.
However... I've found I cannot ping the embedded board, it shows
From 192.168.0.6 icmp_seq=1 Destination Host Unreachable
Then on further testing on my embedded board I found I can ping any 192.168.0. IP even when no PC with than IP exists.
I think it's some sort of loopback.
if I understand what you mean all my PC's are on 192.186.0. 1-8.
My router is on 192.168.0.1. My PC 192.168.0.6, the embedded board which I'm showing is set as above.
If I ping and IP 192.186.0. 0-255 from the embedded board it sends replies (that's why I thought it was working :s). If I ping the router from my pc it's seen, if I ping the embedded board from my pc it gives a time out error.
So I think the embedded board's pings are false, due to the fact I get a reply on any 192.168.0...
What I want is to be able to communicate via the Ethernet with the embedded board. But I can't see or ping it from any PC on the network. But it seems to report it communicate with any ip on the network even ones that don't exist :s
I seems to show its configured OK as afr as I can see but my knowledge is limited.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.