From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 19:42:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA5C416A41F for ; Tue, 12 Jun 2007 19:42:56 +0000 (UTC) (envelope-from freebsd@laws.ms) Received: from mail2.worria.com (mail2.worria.com [205.234.133.139]) by mx1.freebsd.org (Postfix) with SMTP id 728A313C468 for ; Tue, 12 Jun 2007 19:42:56 +0000 (UTC) (envelope-from freebsd@laws.ms) Received: (qmail 27055 invoked by uid 399); 12 Jun 2007 19:42:56 -0000 Received: from unknown (HELO ?218.103.163.47?) (sales@worria.com@218.103.163.47) by mail2.worria.com with ESMTP; 12 Jun 2007 19:42:56 -0000 X-Originating-IP: 218.103.163.47 Message-ID: <466EF739.1090502@laws.ms> Date: Wed, 13 Jun 2007 03:42:49 +0800 From: Pang User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Weird freebsd gateway question 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: Tue, 12 Jun 2007 19:42:56 -0000 Hello, I have followed the document below to set up a gateway for 2 vlans: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html All servers behind the switch can connect to the Internet without any problems. However, I cannot ping the switch IP from the outside nor inside of the network. I have tried to change the IP of the switch, but still the switch cannot be visible in the network (all servers behind works without any glitch.) Could anyone point me out the error? Below is the network diagram: Internet ----- FreeBSD gateway ---- Switch ---- Few servers For FreeBSD gateway, I have that few lines in /etc/rc.d: defaultrouter="10.0.0.1" gateway_enable="YES" ifconfig_em0="inet 10.0.0.2 netmask 255.255.255.252" ifconfig_em1="inet 172.16.0.1 netmask 255.255.255.224" static_routes="lan" route_lan="-net 172.16.0.1/24 172.16.0.2" *The IP of the switch is 172.16.0.2 **All actual IPs are changed to dummy IPs. Thanks Pang