Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 1999 11:41:53 +0300
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        "Don O'Neil" <don@whtech.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Why can't I ping my own IP Aliases?
Message-ID:  <19990929114153.K55586@relay.ucb.crimea.ua>
In-Reply-To: <MOBBIPGJKBNNPGLGMFHFKEPCDFAA.don@whtech.com>; from Don O'Neil on Wed, Sep 29, 1999 at 01:16:01AM -0700
References:  <19990929100653.I55586@relay.ucb.crimea.ua> <MOBBIPGJKBNNPGLGMFHFKEPCDFAA.don@whtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 100baseTX
> <half-dupl
> ex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 10baseT/UTP
> <half-duplex>
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990929114153.K55586>