From owner-freebsd-net@FreeBSD.ORG Fri Jun 20 07:28:45 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCE3037B401 for ; Fri, 20 Jun 2003 07:28:45 -0700 (PDT) Received: from mail.liu.se (mail.liu.se [130.236.1.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC3F543F75 for ; Fri, 20 Jun 2003 07:28:44 -0700 (PDT) (envelope-from antbl656@student.liu.se) Received: by mail.liu.se (Postfix, from userid 506) id 9E4F21FE67; Fri, 20 Jun 2003 16:28:43 +0200 (CEST) Received: from elysium.student.liu.se (elysium.student.liu.se [130.236.230.91]) by mail.liu.se (Postfix) with ESMTP id 1F65F1FD02 for ; Fri, 20 Jun 2003 16:28:43 +0200 (CEST) Received: by elysium.student.liu.se (Postfix, from userid 102) id 62C0322E81; Fri, 20 Jun 2003 16:28:42 +0200 (MEST) Received: from m201.ryd.student.liu.se (m201.ryd.student.liu.se [130.236.214.201]) by elysium.student.liu.se (Postfix) with ESMTP id 7681122E7C for ; Fri, 20 Jun 2003 16:28:41 +0200 (MEST) Date: Fri, 20 Jun 2003 16:28:55 +0200 (CEST) From: Anton Blad X-X-Sender: crp@org.darktech.org To: Frebbsd-net Message-ID: <20030620150315.P5634@org.darktech.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-0.1 required=5.0 tests=FROM_ENDS_IN_NUMS,LIU_FROM_MATCHES_LIUSTUDENT version=2.54-liu_1.4 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.54-liu_1.4 (1.174.2.17-2003-05-11-exp) Subject: Point-to-point over ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 14:28:46 -0000 Hello. I have problems setting up a point-to-point link on an ethernet interface. The computers on the link have IP:s 130.236.214.201 and 130.236.236.148, 130.236.214.201 being a FreeBSD box running 5.1. In the ifconfig man page I saw the dest_address option for point-to-point links. However, this set the broadcast instead and didn't seem to work. Maybe it expects the interface to have the POINTOPOINT flag set.. Then on the net I saw that I needed to use "route add -interface", so I tested: # ifconfig rl1 inet 130.236.214.201/32 # route add -interface 130.236.236.148 130.236.214.201 -ifp rl1 The configuration is then # ifconfig rl1 rl1: flags=8843 mtu 1500 inet6 fe80::20a:cdff:fe02:e307%rl1 prefixlen 64 scopeid 0x3 inet 130.236.214.201 netmask 0xffffffff broadcast 130.236.214.201 ether 00:0a:cd:02:e3:07 media: Ethernet autoselect (100baseTX ) status: active # netstat -rnf inet Destination Gateway Flags Refs Use Netif Expire default 130.236.214.1 UGSc 7 51450 rl0 127.0.0.1 127.0.0.1 UH 4 15049 lo0 130.236.214/24 link#2 UC 2 0 rl0 130.236.214.1 00:20:9c:53:49:c4 UHLW 6 1146 rl0 1200 130.236.214.201 00:0a:cd:02:e3:07 UHLW 2 2 lo0 => 130.236.214.201/32 link#3 UC 1 0 rl1 130.236.214.255 ff:ff:ff:ff:ff:ff UHLWb 0 6 rl0 130.236.236.148 130.236.214.201 UHS 0 4 rl1 Then I get in the log: Jun 20 15:33:54 stonesail kernel: arp_rtrequest: bad gateway value Jun 20 15:34:41 stonesail kernel: arplookup 130.236.236.148 failed: could not allocate llinfo Jun 20 15:34:41 stonesail kernel: arpresolve: can't allocate llinfo for 130.236.236.148rt I have the address 130.236.214.201 on the external interface rl0 too and thought this could be the problem, so I tried to setup the link on the 10 net too. I tried different addresses, both on and off the net, and I tried different netmasks. I got the same error, though, and not even an arp request on the interface. What do I do wrong? I'm thankful for any help. / Anton