From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 13:13:15 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13B26106566B for ; Fri, 22 Jun 2012 13:13:15 +0000 (UTC) (envelope-from developerunix@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id 903268FC16 for ; Fri, 22 Jun 2012 13:13:14 +0000 (UTC) Received: by wibhq12 with SMTP id hq12so705083wib.1 for ; Fri, 22 Jun 2012 06:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:x-priority:message-id:to:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=/c552H5qSXn6bPabmw1dBNk/N+4kIWkCp9dbAEOEclM=; b=HPyrrVJ/YNGIy4ZF+kRKiLpRh0nVX1kiwYDXM2Uao05qoz3/+qYraadILKged12ox4 10c65PGWLmDhRNeCXqYszQPr8gkBc6M2h+d7mQfYHzu3HtThYVI5FAN+mOa5AKpsafT4 8ojSSvpcsZxeYYOfbklPyaTVtH5XdNftx8404u2goIY6bc3lU3T/Lgc1UmPA1QTL16JJ 7UWpl/dPeqiKR0RrK2Y5hd/Fh5X7J1UsTiao+1fETYEDkzrmidfVbChLNJ9oBBsr6NPz UxVn1Zcc8GQw2X8p9uEUP8RAtg8PzUvxInweeq8+HzOBnD5lCiFugaXneir/h3/PNuQl O0Aw== Received: by 10.180.99.70 with SMTP id eo6mr4675001wib.17.1340370793402; Fri, 22 Jun 2012 06:13:13 -0700 (PDT) Received: from HP.mits.lv ([136.169.30.17]) by mx.google.com with ESMTPS id et10sm51960911wib.2.2012.06.22.06.13.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 06:13:12 -0700 (PDT) Date: Fri, 22 Jun 2012 16:13:09 +0300 From: "UNIX developer @ Google.com" X-Priority: 3 (Normal) Message-ID: <1988813484.20120622161309@gmail.com> To: freebsd-questions@freebsd.org In-Reply-To: References: <1842148286.20120621235936@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Problem with routing in VmWare VMS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 13:13:15 -0000 Ok, I understud! I remove from rc.conf this rows: static_routes=3D"clnet" route_clnet=3D"-net 192.168.2.0/24 192.168.1.10" new rc.conf: ifconfig_em0=3D" inet 192.168.1.10 netmask 255.255.255.0" ifconfig_em1=3D" inet 192.168.2.1 netmask 255.255.255.0" defaultrouter=3D"192.168.1.1" gateway_enable=3D"YES" now after reboot the problem still the same. ping -S 192.168.2.1 192.168.1.1 PING 192.168.1.1 (192.168.1.1) from 192.168.2.1: 56 data bytes ^C --- 192.168.1.1 ping statistics --- 8 packets transmitted, 0 packets received, 100.0% packet loss netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.1 UGS 0 38 em0 127.0.0.1 link#4 UH 0 0 lo0 192.168.1.0/24 link#1 U 0 1153 em0 192.168.1.10 link#1 UHS 0 6 lo0 192.168.2.0/24 link#2 U 0 0 em1 192.168.2.1 link#2 UHS 0 6 lo0 Where more can be trouble? ------------- =D0=92=D1=8B =D0=BF=D0=B8=D1=81=D0=B0=D0=BB=D0=B8 22 =D0=B8=D1=8E=D0=BD=D1= =8F 2012 =D0=B3., 0:56:49: > On Thu, 21 Jun 2012 15:59:36 -0500, UNIX developer @ Google.com =20 > wrote: >> /etc/rc.conf >> ifconfig_em0=3D" inet 192.168.1.10 netmask 255.255.255.0" >> ifconfig_em1=3D" inet 192.168.2.1 netmask 255.255.255.0" >> defaultrouter=3D"192.168.1.1" >> gateway_enable=3D"YES" >> static_routes=3D"clnet" >> route_clnet=3D"-net 192.168.2.0/24 192.168.1.10" > You simply CANNOT do this. Traffic for 192.168.2.0/24 is bound to em1 and > cannot be changed. You setup a static route that basically says "to find > 192.168.2.0/24, don't use em1 but instead ask 192.168.1.10 how to find it= "? > This makes no sense at all. --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, UNIX mailto:developerunix@gmail.com