public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ip address confusion.
Date: Fri, 23 Oct 2009 09:09:33 -0400	[thread overview]
Message-ID: <4AE1AB0D.6040103@ge.com> (raw)
In-Reply-To: <memo.20091023133244.2092V@postmaster+dexdyne.com.cix.co.uk>

David Collier wrote:
> Our office network runs on 
> 
> 10.213.1.1/24

10.213.1.1/15 per your netmask.

> so all addresses in 10.212 and 10.213 should be local.
> 
> and I have a TFTP server on 10.213.1.105
> 
> if I set my office pc to 10.212.0.99 I can ping 10.213.1.105
> 
> so far so good
> 
> -----------------------------------------
> if I set u-boot up so the printenv at power-on looks like
> 
> ethaddr=00:90:46:20:000:99
> eth1addr=00:90:46:20:100:99
> ipaddr=10.212.000.99
> serverip=10.213.1.105
> gatewayip=10.213.1.1
> netmask=255.254.0.0
> bootfile=99/uImage
> ethact=macb1
> 
> then if I do
> 
>     ping 10.213.1.105
> 
> it fails.
> 
> but after setting 
> 
>     setenv ipaddr 10.213.0.99
> 
> it works
> 
> Can anyone suggest why?

It smells like your netmask is not what you think it is.  The difference 
in the addresses is .212. vs. .213. and it sounds like a gateway issue. 
  Note that your gateway is in .213. land so, if your netmask is 
255.255.0.0, the gateway will not be reachable from .212. land.

Please capture your console interaction and post it directly.  Your list 
above is playing Chinese Whispers, resulting in unreliable communications.
   <http://en.wikipedia.org/wiki/Chinese_whispers>
You may also want to do a printenv before and after (critical) commands 
to verify things didn't change on you.

FWIIW, when someone asks me "why doesn't the system do X" or says "the 
system did X", I *always* say "show me" - users often filter out 
important information because they don't realize that it is important... 
which is exactly why the system isn't doing X and exactly why the user 
is surprised by that.

> David Collier

gvb

  reply	other threads:[~2009-10-23 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 12:32 [U-Boot] ip address confusion David Collier
2009-10-23 13:09 ` Jerry Van Baren [this message]
2009-10-23 14:18 ` Ben Warren
2009-10-23 18:09 ` David Collier
2009-10-23 19:18 ` David Collier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AE1AB0D.6040103@ge.com \
    --to=gerald.vanbaren@ge.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox