From owner-freebsd-questions@FreeBSD.ORG Tue Nov 4 00:57:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FC9716A4CE for ; Tue, 4 Nov 2003 00:57:09 -0800 (PST) Received: from smtp.orbitel.bg (smtp.orbitel.bg [195.24.32.22]) by mx1.FreeBSD.org (Postfix) with SMTP id 73B9943FAF for ; Tue, 4 Nov 2003 00:57:07 -0800 (PST) (envelope-from bivol@vip.bg) Received: (qmail 6813 invoked from network); 4 Nov 2003 08:56:44 -0000 Received: from unknown (HELO localhost) (195.24.32.29) by mail.orbitel.bg with SMTP; 4 Nov 2003 08:56:44 -0000 Received: from 194.39.131.39 ( [194.39.131.39]) as user bivol@vip.bg@localhost by mail.orbitel.bg with HTTP; Tue, 4 Nov 2003 10:56:44 +0200 Message-ID: <1067936204.3fa769cc60938@mail.orbitel.bg> Date: Tue, 4 Nov 2003 10:56:44 +0200 From: bivol@vip.bg To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 194.39.131.39 Subject: RedHat 7.2 -> Freebsd - BIG PROBLEN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 08:57:09 -0000 X-List-Received-Date: Tue, 04 Nov 2003 08:57:09 -0000 X-List-Received-Date: Tue, 04 Nov 2003 08:57:09 -0000 X-List-Received-Date: Tue, 04 Nov 2003 08:57:09 -0000 Hi, I'm trying to migrate my router from RedHat 7.2 to FreeBSD. Please see the following scrit - it works fine under linux: =========== touch /var/lock/subsys/local sleep 5 /sbin/ifconfig eth0 down sleep 1 /sbin/ifconfig eth0 193.108.24.75 netmask 255.255.255.255 up sleep 2 /sbin/route add -host 193.108.24.145 eth0 /sbin/route add default gw 193.108.24.145 /sbin/route add -net 192.168.17.0/24 eth0 ============ I could never make that work for FREEBSD. ifconfig fxp0 down ifconfig fxp0 193.108.24.75 netmask 255.255.255.255 up route add -host 193.108.24.75 193.108.24.145 255.255.255.255 or route add -host 193.108.24.75 193.108.24.145 Looks impossible at freebsd...It says Network Unreachable. I read the man page of route; It says this happens when the host is more than one hop away. But it is working with my old RedHat. Typing just: route add -host 193.108.24.75 193.108.24.145 works, but I need 255.255.255.255 mask to have inet access I posted to the local group but the only guy that anaswered me says that it is not possible. Please help, I just can't believe that freebsd can not do it. Thanks in advance, BIVOL