Re: Default Gateway outside of subnet
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Mon, 21 May 2007 21:31:23 -0400
In article <4651de29$0$15304$ec3e2dad@xxxxxxxxxxxxxxxxxxxxxx>,
"Scooby" <mmscooby1@xxxxxxxxxxxxx> wrote:
"Walter Roberson" <roberson@xxxxxxxxxxxx> wrote in message
news:itk4i.201922$DE1.98400@xxxxxxxxxxxx
In article <4651C977.40501@xxxxxxxxx>, Arnold Nipper <arnold@xxxxxxxxx>
wrote:
On 21.05.2007 17:24 Walter Roberson wrote
In article <f2saaf$4dg$1@xxxxxxxx>, pk <philip.kluss@xxxxxxxxx> wrote:
If I have 4 disjoint subnets all joined together in one VLAN, can they
all
reference the same default gateway address that is located in one of the
subnets or do I have to assign the default gateway an address in each of
the
four subnets?
Some operating systems will ARP for the default gateway if it is
not in the same subnet, but others will not; and even if the OS does
Never heard of this. How does that work?
Windows 2000 and later (not sure about earlier).
If I understand correctly, the ARPs are sent to the all-1's MAC broadcast
address. If the intended receiver picks it up and replies, then it
will reply to the MAC address of the sender: this will be received even
if the sender is in a different subnet than the receiver (the host trying
to get out.) The host trying to get out then knows the MAC address of
the default gateway, which is all it needs to route packets through
that gateway.
Actually, I've heard of this working as well, but this description alone
doesn't fill in the whole picture for me. Sure, that seems easy enough to
get the packet out. However, when the packet returns to an IP that the
router does not have an interface for, what does it do? How does it know to
send the packet out to the correct mac address instead of just forwarding it
along to its own next hop route? Perhaps it remembers the info from the
incoming packet. But, what if the conversation was initiated from a device
outside the network to one of the devices inside and the arp entry was not
already there?
You can configure static routes on the router that point to the
interface:
ip route <subnet> <mask> ethernet0/1
The only benefit of this over the more normal mechanism of secondary
addresses is that you don't waste an address for the router.
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- References:
- Default Gateway outside of subnet
- From: pk
- Re: Default Gateway outside of subnet
- From: Walter Roberson
- Re: Default Gateway outside of subnet
- From: Arnold Nipper
- Re: Default Gateway outside of subnet
- From: Walter Roberson
- Re: Default Gateway outside of subnet
- From: Scooby
- Default Gateway outside of subnet
- Prev by Date: Free CISCO EBOOKS
- Next by Date: Re: HWIC-AP-G-A
- Previous by thread: Re: Default Gateway outside of subnet
- Next by thread: Re: Default Gateway outside of subnet
- Index(es):
Relevant Pages
|