From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 7 19:20:04 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A4EE16A419 for ; Mon, 7 Jan 2008 19:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E227413C467 for ; Mon, 7 Jan 2008 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m07JK3Gw007409 for ; Mon, 7 Jan 2008 19:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m07JK3jQ007408; Mon, 7 Jan 2008 19:20:03 GMT (envelope-from gnats) Resent-Date: Mon, 7 Jan 2008 19:20:03 GMT Resent-Message-Id: <200801071920.m07JK3jQ007408@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Axel Scheepers Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46A7416A417 for ; Mon, 7 Jan 2008 19:17:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2AAC113C45B for ; Mon, 7 Jan 2008 19:17:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m07JG0vm058500 for ; Mon, 7 Jan 2008 19:16:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m07JG01Z058499; Mon, 7 Jan 2008 19:16:00 GMT (envelope-from nobody) Message-Id: <200801071916.m07JG01Z058499@www.freebsd.org> Date: Mon, 7 Jan 2008 19:16:00 GMT From: Axel Scheepers To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/119432: route add -host -iface causes arp entry with nic's arp address X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 19:20:04 -0000 >Number: 119432 >Category: kern >Synopsis: route add -host -iface causes arp entry with nic's arp address >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 07 19:20:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Axel Scheepers >Release: 7.0-PRERELEASE >Organization: Private Home User >Environment: System: FreeBSD taliesin.thuis.net 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Sun Jan 6 14:44:59 CET 2008 root@taliesin.thuis.net:/usr/obj/usr/src/sys/TALIESIN i386 >Description: I use a xs4all connection at home for which I have to use sip spoofing (http://www.sterenborg.org:81/docs/alcatel_sip_spoof.html). To make it usefull I have to set a route to my speedtouch modem with the -iface option to route like this: - ifconfig netmask 255.255.255.255 - route add -iface - route add default This worked on 4.x as above, on 7.0-PRERELEASE however an arp entry for modemIp containing the mac adress of extNic is added as soon as I add the route with -iface. Pinging the modem causes icmp redirects and ttl expires. I get messages on the console that modemIp wan't to overwrite the existing arp entry. I have to enter the correct mac address in the arp table for things to work correctly like; - arp -s - route add default I'm not sure if this is intended behaviour but the former way seems more intuitive. >How-To-Repeat: Connect 2 boxes with crosscable, on box a: (simulates my modem) - ifconfig fxp0 192.168.0.1 netmask 255.255.255.0 on box b: (simulates my router) - ifconfig fxp0 10.10.10.1 netmask 255.255.255.255 - route add 192.168.0.1 -iface fxp0 - ping 192.168.0.1 - arp -na (- arp -s 192.168.0.1 ) (- ping 192.168.0.1) >Fix: You can work around it by setting the correct mac adress in the arp table. >Release-Note: >Audit-Trail: >Unformatted: