public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  DHCP over multiple interfaces
@ 2008-01-23 16:12 Dave Lawrence
  2008-01-23 18:38 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Lawrence @ 2008-01-23 16:12 UTC (permalink / raw)
  To: ecos-discuss

I can't seem to get DHCP work over multiple interfaces.

The problem is that packets sent to 255.255.255.255 always
come out on eth1.

According to "TCP/IP Illustrated Volume 1" (Stevens)
section 12.2:
"Most BSD systems treat 255.255.255.255 as an alias
for the broadcast address of the first interface that
was configured"
and
"The Host Requirements RFC takes no stand on the issue of
whether a multihomed host should send a limited broadcast
out all its interfaces"

Not that sending the packets out to both interfaces would
be a solution either, because you could accept a lease from
the wrong network.  Currently if I have a DHCP server on the
eth1 network then eth0 will obtain its address from there.

Is it possible to configure more than one interface to use
DHCP?  If not, then how can I specify which interface
broadcasts 255.255.255.255 packets?


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: [ECOS]  DHCP over multiple interfaces
@ 2008-01-23 16:55 Jay Foster
  0 siblings, 0 replies; 4+ messages in thread
From: Jay Foster @ 2008-01-23 16:55 UTC (permalink / raw)
  To: 'Dave Lawrence', ecos-discuss

I don't know about eCos, but I have solved a similar issue on Linux using
the SIOCGIFCONF, SIOCGIFINDEX ioctls, and the setsockopt(s, SOL_SOCKET,
SO_BINDTODEVICE) option to bind a socket to a specific interface for the
purposes of sending broadcasts.

Jay

-----Original Message-----
From: Dave Lawrence [mailto:dlawrence@ad-holdings.co.uk]
Sent: Wednesday, January 23, 2008 8:11 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] DHCP over multiple interfaces


I can't seem to get DHCP work over multiple interfaces.

The problem is that packets sent to 255.255.255.255 always
come out on eth1.

According to "TCP/IP Illustrated Volume 1" (Stevens)
section 12.2:
"Most BSD systems treat 255.255.255.255 as an alias
for the broadcast address of the first interface that
was configured"
and
"The Host Requirements RFC takes no stand on the issue of
whether a multihomed host should send a limited broadcast
out all its interfaces"

Not that sending the packets out to both interfaces would
be a solution either, because you could accept a lease from
the wrong network.  Currently if I have a DHCP server on the
eth1 network then eth0 will obtain its address from there.

Is it possible to configure more than one interface to use
DHCP?  If not, then how can I specify which interface
broadcasts 255.255.255.255 packets?


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-25 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 16:12 [ECOS] DHCP over multiple interfaces Dave Lawrence
2008-01-23 18:38 ` Andrew Lunn
2008-01-25 17:14   ` [ECOS] " Dave Lawrence
2008-01-23 16:55 [ECOS] " Jay Foster

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).