From owner-freebsd-questions Mon Feb 21 6:30:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sasknow.com (h139-142-245-96.ss.fiberone.net [139.142.245.96]) by hub.freebsd.org (Postfix) with ESMTP id C893837BD85 for ; Mon, 21 Feb 2000 06:30:21 -0800 (PST) (envelope-from freebsd@sasknow.com) Received: from localhost (freebsd@localhost) by sasknow.com (8.9.3/8.9.3) with ESMTP id IAA13680; Mon, 21 Feb 2000 08:31:00 -0600 (CST) (envelope-from freebsd@sasknow.com) Date: Mon, 21 Feb 2000 08:30:59 -0600 (CST) From: Ryan Thompson To: "Gestur A. Grjetarsson" Cc: questions@FreeBSD.ORG Subject: Re: I can't telnet to a locally conf ip alias In-Reply-To: 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 On Mon, 21 Feb 2000, Gestur A. Grjetarsson wrote: > Hello, > > I'm having problems telnetting to a ip alias which is setup on my system, > the only ip I can telnet locally is the primary ip setup for this server. > > see: > > root@ns02:/home/gag/isl.is/postur/isl>netstat -in Try ifconfig -a next time to show netmasks and broadcast addresses. > [...] > > nothing happens when I try to telnet locally, for instance when I try to > telnet to a local smtp port, or even pop port. > > when I add ip alias ,, I use this command: > ifconig lnc1 alias 216.6.47.25 netmask 255.255.255.0 > > can you tellme what is wrong ? Yes, unless you have something else configured incorrectly, you should, in your case especially, use a netmask of 0xffffff00 for your FIRST (non-alias) IP on an interface, and 0xffffffff for any aliases on the same /24 or better thereafter. So, delete all current aliases, and try: ifconfig lnc1 alias 216.6.47.25 netmask 255.255.255.255 Note that ifconfig defaults to a netmask of 255.255.255.0 for aliases, which is often not restrictive enough. -- Ryan Thompson 50% Owner, Sysadmin SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message