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

next in thread | previous in thread | raw e-mail | index | archive | help
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

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




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