From owner-freebsd-questions Wed Sep 29 1:14: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from web04.bigbiz.com (web04.bigbiz.com [209.133.75.128]) by hub.freebsd.org (Postfix) with ESMTP id 6FDC914F9A for ; Wed, 29 Sep 1999 01:14:00 -0700 (PDT) (envelope-from don@whtech.com) Received: from gateway.whtech.com ([209.172.105.110]) by web04.bigbiz.com (8.8.7/8.8.7) with ESMTP id BAA09375 for ; Wed, 29 Sep 1999 01:13:59 -0700 Received: from digerati (digerati.whtech.com [10.1.0.2]) by gateway.whtech.com (8.8.7/8.8.7) with SMTP id BAA14156; Wed, 29 Sep 1999 01:40:56 -0700 (PDT) (envelope-from don@whtech.com) From: "Don O'Neil" To: "Ruslan Ermilov" Cc: Subject: RE: Why can't I ping my own IP Aliases? Date: Wed, 29 Sep 1999 01:16:01 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <19990929100653.I55586@relay.ucb.crimea.ua> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ruslan, I've added the follwing to my rc.conf: ifconfig_rl0="inet 209.172.89.24 netmask 255.255.255.0" # WEB01 ifconfig_rl0_alias0="inet 209.172.89.8 netmask 255.255.255.0" # DNS1 ifconfig_rl0_alias1="inet 209.172.89.12 netmask 255.255.255.0" # MAIL ifconfig_rl0_alias2="inet 209.172.89.40 netmask 255.255.255.0" # WHTECH ifconfig_rl0_alias3="inet 209.172.89.41 netmask 255.255.255.0" # EITSI ifconfig_rl0_alias4="inet 209.172.89.9 netmask 255.255.255.0" # DNS2 ifconfig_lo0="inet 127.0.0.1 netmask 255.255.255.0" # WEB01 ifconfig_lo0_alias0="inet 209.172.89.24 netmask 255.255.255.0" # WEB01 ifconfig_lo0_alias1="inet 209.172.89.8 netmask 255.255.255.0" # DNS1 ifconfig_lo0_alias2="inet 209.172.89.12 netmask 255.255.255.0" # MAIL ifconfig_lo0_alias3="inet 209.172.89.40 netmask 255.255.255.0" # WHTECH ifconfig_lo0_alias4="inet 209.172.89.41 netmask 255.255.255.0" # EITSI ifconfig_lo0_alias5="inet 209.172.89.9 netmask 255.255.255.0" # DNS2 Which results in a ifconfig -a listing of: web01# ifconfig -a rl0: flags=8843 mtu 1500 inet 209.172.89.24 netmask 0xffffff00 broadcast 209.172.89.255 inet 209.172.89.8 netmask 0xffffff00 broadcast 209.172.89.255 inet 209.172.89.12 netmask 0xffffff00 broadcast 209.172.89.255 inet 209.172.89.40 netmask 0xffffff00 broadcast 209.172.89.255 inet 209.172.89.41 netmask 0xffffff00 broadcast 209.172.89.255 inet 209.172.89.9 netmask 0xffffff00 broadcast 209.172.89.255 ether 00:00:e8:80:ce:50 media: autoselect supported media: autoselect 100baseTX 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 10baseT/UTP lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xffffff00 inet 209.172.89.24 netmask 0xffffff00 inet 209.172.89.8 netmask 0xffffff00 inet 209.172.89.12 netmask 0xffffff00 inet 209.172.89.40 netmask 0xffffff00 inet 209.172.89.41 netmask 0xffffff00 inet 209.172.89.9 netmask 0xffffff00 web01# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 209.172.89.1 UGSc 10 36 rl0 127.0.0.1 127.0.0.1 UH 1 227 lo0 209.172.89 link#1 UC 0 0 rl0 209.172.89.1 0:60:83:7c:a3:bb UHLW 11 0 rl0 993 209.172.89.8 209.172.89.8 UH 0 17 lo0 209.172.89.9 209.172.89.9 UH 0 0 lo0 209.172.89.12 209.172.89.12 UH 0 0 lo0 209.172.89.24 209.172.89.24 UH 2 1152 lo0 209.172.89.40 209.172.89.40 UH 0 4 lo0 209.172.89.41 209.172.89.41 UH 0 0 lo0 I'm not explicitly activating ipfirewall.. so unless it automatically gets setup and activated it shouldn't be in the way. It's disabled in the /etc/defaults/rc.conf file. 2.2.8 (the other machine I'm running) didn't need the explicit lo0 aliases to work.... Having the aliases on this machine seems to solve the problem. Maybe it's a band-aid for now, but it works. Any ideas on how it's supposed tobe done correctly? > -----Original Message----- > From: Ruslan Ermilov [mailto:ru@ucb.crimea.ua] > Sent: Wednesday, September 29, 1999 12:07 AM > To: Don O'Neil > Cc: questions@FreeBSD.ORG > Subject: Re: Why can't I ping my own IP Aliases? > > > On Tue, Sep 28, 1999 at 06:31:19PM -0700, Don O'Neil wrote: > > I've configured a few IP aliases on my 3.3 machine, and they > show up under > > ifconfig -a... but when I try to ping them from the machine > they're defined > > on I can't... nor can I telnet or ftp to them. I can > ping/telnet/ftp to them > > from outside the machine, so I know the traffic is getting routed > > correctly... what gives? > > > > I'm using RealTek 10/100 PCI ethernet cards, FBSD 3.3-Release. > > > > Thanks! > > Don > > Show us the output of `ifconfig -a' and `netstat -rn' commands, > and tell us what address is not pingable for you. > > Also, are you running ipfirewall(4)? If so, what its rules are? > > -- > Ruslan Ermilov Sysadmin and DBA of the > ru@ucb.crimea.ua United Commercial Bank, > ru@FreeBSD.org FreeBSD committer, > +380.652.247.647 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message