routing problem - fork on gateways
hanasaki
hanasaki at hanaden.com
Wed Aug 31 12:38:54 CDT 2005
Yup... I have
Internet - cablemodem - 10.1.1.1 firewall
10.1.1.2 router / squid / dhcp / email
all internal here
by your convention, maybe .2 should become .254
everything is a linux box in the net
Jeremy Fowler wrote:
>>On 11:34:52 am 08/31/05 "Jeremy Fowler" <JFowler at westrope.com> wrote:
>>
>>>Default gateway for host1 is set to 10.1.1.2, change to 10.1.1.1
>>
>>Umm.. no. The default gateway is for any request outside the
>>local subnet
>>and if 10.1.1.2 is the router out then this is correct. The
>>routing table
>>for host1 shows that no gateway is required for 10.1.1.0/24
>>and that all
>>else (0.0.0.0) should be shoved out 10.1.1.2.
>
>
> Umm.. host1 and host2 are on the same subnet, so why would they have two separate default gateways? The reason its going thru host2 is because 101.1.1.10 isn't on the subnet and so it forwards packets to host2, the default gateway. He doesn't want packets to go thru host2, so you change the default gateway. Standard convention places gateways on either the first or last address on the subnet range, in the case of 10.1.1.0/24 that would be either 10.1.1.1 or 10.1.1.254. So when I saw that a) the default gateway wasn't the same for host1 and host2 it caught my eye. and b) host two had a default gateway address at the beginning of the subnet address range, so I assumed it was correct.
>
> Try not to be so condescending with your replies, makes you sound like an ass.
>
More information about the Kclug
mailing list