From owner-freebsd-questions Fri Mar 30 11:14:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bugs.elitsat.net (bugs.elitsat.net [209.239.78.230]) by hub.freebsd.org (Postfix) with ESMTP id 4D24337B71C for ; Fri, 30 Mar 2001 11:14:40 -0800 (PST) (envelope-from amour@bugs.elitsat.net) Received: from localhost (amour@localhost) by bugs.elitsat.net (8.11.1/8.11.1) with ESMTP id f2UJEHn50475; Fri, 30 Mar 2001 22:14:17 +0300 (EEST) (envelope-from amour@bugs.elitsat.net) Date: Fri, 30 Mar 2001 22:14:11 +0300 (EEST) From: Alexander To: Tony Landells Cc: freebsd-questions@FreeBSD.ORG Subject: Re: routings In-Reply-To: <200103292300.JAA26804@tungsten.austclear.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It is like: aaa.bbb.ccc.129/32 aaa.bbb.ccc.0/240 | | | | ----------------------------------- | ... ---- aaa.bbb.ccc.1/24 --- aaa.bbb.ccc.2/(24?) (I don't have access here and don't know the netmask) | (These machines are linuxes and the netmask doesn't matter to them) | | -------------------------- aaa.bbb.ccc.OTHER_IPS_FROM_THE_NET I'm aaa.bbb.ccc.129/32 and my problem is that my netmask must be 255.255.255.0 to catch the gateway ( rc.conf: ifconfig_ed0="inet .... netmask 255.255.255.0" ) But on boot my sendmail hangs because somehow it tries to resolve some host or something and it contacts to my nameserver, which is not on the same network segment (aaa.bbb.ccc.2). If I change the netmask to 255.255.255.255 (hostmask) then the gateway won't add to the routing table. So the only thing I can do is to leave the netmask by default to Class C and then after the booting I do rc.local: ifconfig ed0 inet aaa.bbb.ccc.129 netmask 255.255.255.255 and then I start sendmail, but this is really ugly and there must be other way to do that. Thanks. On Fri, 30 Mar 2001, Tony Landells wrote: > I'm sorry, but are you saying you have something like: > > aaa.bbb.ccc.129/24 > | > | > aaa.bbb.ccc.1/24 > | > | > ----------------------------- > | | > | | > aaa.bbb.ccc.2/? ... > > Because if you are your network is broken. > > The whole point of a netmask is to define your network. By defining > your netmask as 255.255.255.0 you are saying that everything on the > network aaa.bbb.ccc.0 is directly accessible, and anything that doesn't > start with aaa.bbb.ccc isn't and therefore needs a gateway. > > Now if you deliberately have your box isolated from the rest of the > network, you need different addressing. You could do it by subnetting > aaa.bbb.ccc.0, but not when the two addresses or your segment are 128 > apart, since the first bit you add to the netmask will put them on > separate networks and therefore you'll get errors whenever you try > to access the gateway. > > Tony > -- > Tony Landells > Senior Network Engineer Ph: +61 3 9677 9319 > Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 > Level 4, Rialto North Tower > 525 Collins Street > Melbourne VIC 3000 > Australia > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message