Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2000 08:30:59 -0600 (CST)
From:      Ryan Thompson <freebsd@sasknow.com>
To:        "Gestur A. Grjetarsson" <gag@ns1.islandssimi.is>
Cc:        questions@FreeBSD.ORG
Subject:   Re: I can't telnet to a locally conf ip alias
Message-ID:  <Pine.BSF.4.10.10002210824380.13499-100000@sasknow.com>
In-Reply-To: <Pine.BSF.3.96K.1000221140821.31996A-100000@ns1.islandssimi.is>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com>	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10002210824380.13499-100000>