From: Gary Thomas <gary@mlbassoc.com>
To: mkhoyila@uci.edu
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] assign IP address to a specifig mac
Date: Tue, 02 Aug 2005 00:28:00 -0000 [thread overview]
Message-ID: <1122940866.6848.28.camel@hermes> (raw)
In-Reply-To: <21913.63.87.1.243.1122939985.squirrel@webmail.uci.edu>
Please copy your replies to the eCos mailing list. Private support
is only available with a support contract.
On Mon, 2005-08-01 at 16:46 -0700, mkhoyila@uci.edu wrote:
> Sorry I did not provide enough info.
>
> 1) I have a DSL modem and I want to use eCos as embededed RTOS.
>
> 2) I have written an Ethernet drive for it under eCos and now I want to
> assign a static IP to it (eth0 and eth1). I am using third party boot
> loader to load eCos. I can see it is loading eCos and runs my "hello
> world" applicaiton.
>
> [cyg_net_init] Init: loopattach(0x00000000)
> [cyg_net_init] Init: ifinit(0x00000000)
> [cyg_net_init] Init: domaininit(0x00000000)
> [cyg_net_init] Init: cyg_net_add_domain(0x8004d638)
> New domain internet at 0x00000000
> [cyg_net_init] Init: cyg_net_add_domain(0x8004d0e0)
> New domain route at 0x00000000
> [cyg_net_init] Init: cyg_route_init(0x00000000)
> [cyg_net_init] Done
>
> 3) once I can send and receie packets, I am going to do some benchmarks to
> test the eCos performace.
>
> Right now I need to assign an IP address to my eth0 so I can at least ping
> it and later create a bridge between two to send and receive packets.
> Thanks.
Why can't you use DHCP to get the IP address?
If you must use a fixed IP, then try settings like these:
cdl_component CYGPKG_NET_DHCP {
user_value 0
};
cdl_component CYGHWR_NET_DRIVER_ETH0_MANUAL {
user_value 0
};
cdl_component CYGHWR_NET_DRIVER_ETH0_BOOTP {
user_value 0
};
cdl_component CYGHWR_NET_DRIVER_ETH0_ADDRS {
user_value 1
};
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_IP {
user_value 192.168.1.169
};
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_NETMASK {
user_value 255.255.255.0
};
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_BROADCAST {
user_value 192.168.1.255
};
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_SERVER {
user_value 192.168.1.101
};
>
> > On Mon, 2005-08-01 at 14:07 -0700, mkhoyila@uci.edu wrote:
> >> can someone guide me on how to assign an IP address to a mac address
> >> from
> >> eCos ethernet driver? If so, is there a sample code I can look at.
> >> thanks.
> >
> > It's unclear exactly what you mean here.
> >
> > * Are you looking for a way to force the IP that a particular
> > interface uses (within an eCos application)?
> >
> > This is done using the CDL, selecting a fixed IP instead
> > of using DHCP or BOOTP.
> >
> > * Perhaps you want for force the association between some external
> > device's address (ESA) and a particular IP address.
> >
> > This is normally discovered via ARP (Address Resolution Protocol).
> > It is possible to push such a relationship directly into the
> > stack, but it's messy and I'm not sure why you would ever want
> > to do so.
> >
> > --
> > ------------------------------------------------------------
> > Gary Thomas | Consulting for the
> > MLB Associates | Embedded world
> > ------------------------------------------------------------
> >
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2005-08-02 0:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-01 21:05 mkhoyila
2005-08-01 21:58 ` Gary Thomas
[not found] ` <21913.63.87.1.243.1122939985.squirrel@webmail.uci.edu>
2005-08-02 0:28 ` Gary Thomas [this message]
2005-08-02 7:27 ` Sébastien Couret
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=1122940866.6848.28.camel@hermes \
--to=gary@mlbassoc.com \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=mkhoyila@uci.edu \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).