From owner-freebsd-questions Wed Sep 29 1:47:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 39DB61519A for ; Wed, 29 Sep 1999 01:44:14 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id LAA91520; Wed, 29 Sep 1999 11:41:53 +0300 (EEST) (envelope-from ru) Date: Wed, 29 Sep 1999 11:41:53 +0300 From: Ruslan Ermilov To: "Don O'Neil" Cc: questions@FreeBSD.ORG Subject: Re: Why can't I ping my own IP Aliases? Message-ID: <19990929114153.K55586@relay.ucb.crimea.ua> Mail-Followup-To: Don O'Neil , questions@FreeBSD.ORG References: <19990929100653.I55586@relay.ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Don O'Neil on Wed, Sep 29, 1999 at 01:16:01AM -0700 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 29, 1999 at 01:16:01AM -0700, Don O'Neil wrote: > 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 > ex> 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 > Use the following (note the netmask values), and stop running routed(8): 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.255" # DNS1 ifconfig_rl0_alias1="inet 209.172.89.12 netmask 255.255.255.255" # MAIL ifconfig_rl0_alias2="inet 209.172.89.40 netmask 255.255.255.255" # WHTECH ifconfig_rl0_alias3="inet 209.172.89.41 netmask 255.255.255.255" # EITSI ifconfig_rl0_alias4="inet 209.172.89.9 netmask 255.255.255.255" # DNS2 HTH, -- 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