From owner-freebsd-questions Wed Nov 28 3:39:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gw.smarts-gsm.ru (gw.smarts-gsm.ru [194.190.8.162]) by hub.freebsd.org (Postfix) with ESMTP id 4D52B37B416 for ; Wed, 28 Nov 2001 03:39:16 -0800 (PST) Received: (from vss@localhost) by gw.smarts-gsm.ru (8.11.3/8.11.0-vlm) id fASBdDp52284 for freebsd-questions@freebsd.org.AVP; Wed, 28 Nov 2001 14:39:13 +0300 (MSK) (envelope-from vss@gw.smarts-gsm.ru) X-Authentication-Warning: ns.smarts-gsm.ru: vss set sender to vss@gw.smarts-gsm.ru using -f Received: (from vss@localhost) by gw.smarts-gsm.ru (8.11.3/8.11.0-vlm) id fASBdDe52276 for freebsd-questions@freebsd.org; Wed, 28 Nov 2001 14:39:13 +0300 (MSK) (envelope-from vss@gw.smarts-gsm.ru) Date: Wed, 28 Nov 2001 14:39:13 +0300 From: Vlad Skvortsov To: freebsd-questions@freebsd.org Subject: route add -interface Message-ID: <20011128143913.M11977@smarts-gsm.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello ! [Please CC: any answers back to me, I'm not on the list !] I'm trying to set up a connection with our peer using sbni adapter (http://www.granch.ru). The specific of the situation is that ISP routes a block of 4 ip addresses to our router via modem line and I have to forward one of these addresses to peer. ISP cisco ========== =========================== 1.2.3.4 | -- modem --> | 1.2.3.5 | | 192.168.1.1 | -- ethernet --> ========== =========================== Internal router Peer =============================== =========== ----> | 192.168.1.2 | | 192.168.2.1 | -- sbni -> | 2.3.4.1 | =============================== =========== ISP forwards a block of addresses, say, 2.3.4.0/30 to 1.2.3.5. Cisco router forwards them to some internal servers. My task is to forward one address, 2.3.4.1, to peer. The problem is that I cannot setup internal router to properly forward this address to peer. Peer cannot set 192.168.2.x address on his end of sbni interface (windows there ...). So I configure my end this way: # ifconfig sbni1 192.168.2.1 netmask 0xffffffff # route add 2.3.4.1 -interface sbni1 Pinging 2.3.4.1 fails with redirect FROM MY END 192.168.2.1 (redirected to 2.3.4.1). When I start exploring the situation, it reveals that ARP table contains record with MY MAC address and IP of PEER. When I see netstat -nr output I discover that there is an entry containing PEER's ip address and MY ip address (though with proper interface specified). Is this a bug in sbni driver or is this a misbehaviour of freebsd route add command ? I run FreeBSD 4.2. -- Vlad Skvortsov, vss@smarts-gsm.ru, vss@high.net.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message