Article View: demon.ip.developers
Article #448Re: Is this group what I think it's for?
From: Ben McKeegan
Date: Fri, 20 Jun 1997 00:00
Date: Fri, 20 Jun 1997 00:00
29 lines
1913 bytes
1913 bytes
In article <33a9bc41.2603504@news.demon.co.uk>, matt@gumbley.ANTISPAM.demon.co.uk (Matt J. Gumbley) writes: > that of the destination. If they match, the datagram is sent. If they > don't match, how do I send the datagram to a gateway - where does the > gateway's IP address go? Certainly not in the IP header's destination > address... or do I just send the datagram over the SLIP link, > addressed to the eventual destination, and expect the gateway to see a > datagram destined for another network, and so route it accordingly? What would be the point of including the gateway IP address in an IP packet? (Ignoring source routed packets...) The gateway is by definition the next hop, and must therefore be on the same network, so addressing it at the network level would be pointless. As I understand it in the case of ethernet you simply use ARP to get the ethernet address of the gateway from its IP address, and send the packet as is to that ethernet address, in the hope that the gateway will know what to do with it next. The gateway doesn't need to be told what its own IP address is! In the case of SLIP and PPP it's even easier as the next hop is just the other end of the link. i.e. just chuck the packets at the other end of the link as they are. Regards, Ben. -- / Ben McKeegan http://www.fitz.cam.ac.uk/ben/ \ \ Fitzwilliam College, University of Cambridge, UK. /
Technical Details
Message-ID:
<m0wf1qY-00007PC@cbts.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<33a9bc41.2603504@news.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,f2b0cded878e0775 X-Google-Attributes: gid10bb05,public From: ben@cbts.demon.co.uk (Ben McKeegan) Subject: Re: Is this group what I think it's for? Date: 1997/06/20 Message-ID: <m0wf1qY-00007PC@cbts.demon.co.uk> X-Deja-AN: 251311113 References: <33a9bc41.2603504@news.demon.co.uk> X-Mail2News-User: ben@cbts.demon.co.uk X-Mail2News-Path: cbts.demon.co.uk Newsgroups: demon.ip.developers