Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Dec 2001 15:22:01 -0600
From:      Lars Fredriksen <lars@odin-corporation.com>
To:        net@freebsd.org
Subject:   specifying interface to route command broken??
Message-ID:  <3C1132F8.AF4BF927@odin-corporation.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------E8145C52065AA3D67DCADF36
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

>
> Hi,
>
> I am probably screwing something up :-)
>
> netstat -rn shows:
>
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif
> Expire
> 127.0.0.1          127.0.0.1          UH          4       31      lo0
> aaa.bbb.ccc.16/28  link#5             UC          1        0      wi0 =>
>
> aaa.bbb.ccc.17     aaa.bbb.ccc.27     UHS         1        0      wi0
>
> ifconfig -a shows:
>
> fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
>         inet aaa.bbb.ccc.26 netmask 0xfffffff0 broadcast 216.233.173.31
>         ether 08:00:46:05:95:32
>         media: autoselect (10baseT/UTP) status: active
>         supported media: autoselect 100baseTX <full-duplex> 100baseTX
> 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet aaa.bbb.ccc.27 netmask 0xfffffff0 broadcast 216.233.173.31
>         ether 00:02:2d:3a:4c:fd
>
> I am trying to add a default route to go to aaa.bbb.ccc.17 via the wi0
> interface, but it appears that since the fxp0 interface was configured
> first (even though it is down at the moment) that the route always ends
> up going through  it!
>
> I tried:
>
> route add -ifa aaa.bbb.ccc.27 default aaa.bbb.ccc.17
>
> but the default route still showed up as going through the fxp0
> interface. Anyone see what I might be doing wrong with the route command
> here, or is it broken? This is on current as of 05/01/01....
>
> Lars

--------------E8145C52065AA3D67DCADF36
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
	by munin.odin-corporation.com (8.11.3/8.11.1) id fB7LCfQ35562;
	Fri, 7 Dec 2001 15:12:41 -0600 (CST)
	(envelope-from MAILER-DAEMON)
Date: Fri, 7 Dec 2001 15:12:41 -0600 (CST)
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200112072112.fB7LCfQ35562@munin.odin-corporation.com>
To: <lars@odin-corporation.com>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
	boundary="fB7LCfQ35562.1007759561/munin.odin-corporation.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
X-Mozilla-Status2: 00000000

This is a MIME-encapsulated message

--fB7LCfQ35562.1007759561/munin.odin-corporation.com

The original message was received at Fri, 7 Dec 2001 15:12:40 -0600 (CST)
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<net@freebsd>
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <net@freebsd>... Host unknown (Name server: freebsd: host not found)

--fB7LCfQ35562.1007759561/munin.odin-corporation.com
Content-Type: message/delivery-status

Reporting-MTA: dns; munin.odin-corporation.com
Received-From-MTA: DNS; localhost
Arrival-Date: Fri, 7 Dec 2001 15:12:40 -0600 (CST)

Final-Recipient: RFC822; net@freebsd
Action: failed
Status: 5.1.2
Remote-MTA: DNS; freebsd
Diagnostic-Code: SMTP; 550 Host unknown
Last-Attempt-Date: Fri, 7 Dec 2001 15:12:41 -0600 (CST)

--fB7LCfQ35562.1007759561/munin.odin-corporation.com
Content-Type: message/rfc822

Return-Path: <lars@odin-corporation.com>
Received: from odin-corporation.com (localhost [127.0.0.1])
	by munin.odin-corporation.com (8.11.3/8.11.1) with ESMTP id fB7LCeQ35560
	for <net@freebsd>; Fri, 7 Dec 2001 15:12:40 -0600 (CST)
	(envelope-from lars@odin-corporation.com)
Sender: lars
Message-ID: <3C1130C7.9F28ABBC@odin-corporation.com>
Date: Fri, 07 Dec 2001 15:12:39 -0600
From: Lars Fredriksen <lars@odin-corporation.com>
Organization: Odin Corporation
X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386)
X-Accept-Language: no, en
MIME-Version: 1.0
To: net@freebsd
Subject: specifying interface to route command broken??
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I am probably screwing something up :-)

netstat -rn shows:

Internet:
Destination        Gateway            Flags     Refs     Use     Netif
Expire
127.0.0.1          127.0.0.1          UH          4       31      lo0
aaa.bbb.ccc.16/28  link#5             UC          1        0      wi0 =>

aaa.bbb.ccc.17     aaa.bbb.ccc.27     UHS         1        0      wi0

ifconfig -a shows:

fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        inet aaa.bbb.ccc.26 netmask 0xfffffff0 broadcast 216.233.173.31
        ether 08:00:46:05:95:32
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet aaa.bbb.ccc.27 netmask 0xfffffff0 broadcast 216.233.173.31
        ether 00:02:2d:3a:4c:fd

I am trying to add a default route to go to aaa.bbb.ccc.17 via the wi0
interface, but it appears that since the fxp0 interface was configured
first (even though it is down at the moment) that the route always ends
up going through  it!


I tried:

route add -ifa aaa.bbb.ccc.27 default aaa.bbb.ccc.17

but the default route still showed up as going through the fxp0
interface. Anyone see what I might be doing wrong with the route command
here, or is it broken? This is on current as of 05/01/01....


Lars




--fB7LCfQ35562.1007759561/munin.odin-corporation.com--



--------------E8145C52065AA3D67DCADF36--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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