From owner-freebsd-net Wed Aug 11 21:58:41 1999 Delivered-To: freebsd-net@freebsd.org Received: from pslgate0.psl.com.sg (pslgate0.psl.com.sg [202.14.153.4]) by hub.freebsd.org (Postfix) with ESMTP id CA3CB14CE3 for ; Wed, 11 Aug 1999 21:57:22 -0700 (PDT) (envelope-from klng@psl.com.sg) Received: from psl.com.sg (mirage [202.14.154.50]) by pslgate0.psl.com.sg (8.7.5/8.7.3) with ESMTP id MAA16504 for ; Thu, 12 Aug 1999 12:54:51 +0800 (SGT) Received: from psl.com.sg (robin [202.14.154.175]) by psl.com.sg (8.8.6/8.8.6) with ESMTP id MAA28389; Thu, 12 Aug 1999 12:52:19 +0800 (SST) Message-ID: <37B25396.88ADF4C3@psl.com.sg> Date: Thu, 12 Aug 1999 12:54:49 +0800 From: Ng Kok Leong Organization: Panasonic Singapore Laboratories Pte Ltd X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Cc: klng@psl.com.sg Subject: Set up a router Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am new to FreeBSD and router setup. I have two ethernet cards for the router machine and they are configure as follows: fxp0: flags=8843 mtu 1500 inet 202.14.153.187 netmask 0xffffff00 broadcast 202.14.153.255 ether 00:90:27:06:3d:88 xl0: flags=8843 mtu 1500 inet 202.14.154.187 netmask 0xffffff00 broadcast 202.14.154.255 ether 00:60:97:b8:cf:70 The card, fxp0, is connected to Machine A with IP address, 202.14.153.190 through a hub and the card, xl0, is connected to Machine B with IP address, 202.14.154.186 through another hub. There is no problem in communication between router and Machine A and router and Machine B. However, when I tried to ping Machine A from Machine B and vice versa, it fails to connect. The IP forwarding is enabled by setting the gateway_enable = yes. The routing table obtained using netstat in the router is: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 202.14.153.187 UGSc 2 10 fxp0 localhost localhost UH 0 1 lo0 202.14.153 link#1 UC 0 0 fxp0 202.14.153.187 0:90:27:6:3d:88 UHLW 1 0 lo0 202.14.154 link#2 UC 0 0 xl0 202.14.154.186 0:a0:c9:dd:65:c9 UHLW 0 33 xl0 1190 202.14.154.187 0:60:97:b8:cf:70 UHLW 0 72 lo0 May I know what is the problem with my router configuration? How can I configure the router for Machine A to be able to talk to Machine B without changing the physical connection? Hope to hear from you soon. Thank you in advance. Regards Kok Leong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message