From owner-freebsd-stable Thu Dec 31 05:13:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA28509 for freebsd-stable-outgoing; Thu, 31 Dec 1998 05:13:40 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from net-one.it (gulliver.net-one.it [194.244.60.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA28504 for ; Thu, 31 Dec 1998 05:13:38 -0800 (PST) (envelope-from roberto@net-one.it) Received: by net-one.it (8.9.1a/8.9.1) id OAA07139; Thu, 31 Dec 1998 14:13:14 +0100 (MET) Message-Id: <199812311313.OAA07139@net-one.it> From: roberto@net-one.it (Roberto Grassi) Date: Thu, 31 Dec 1998 14:13:13 +0000 In-Reply-To: Roger Hall 'FW: Network help' (Dec 4, 11:59am) X-Organization: Net1 Srl - via S.Cristoforo, 44 - Saronno (VA) - ITALY X-Phone: +39 2 96704995 X-Dogma-1: If there is an order in all of this disorder X-Dogma-2: Is it like a tape recorder? X-Dogma-3: Can we rewind it just once more? X-Mailer: Mail User's Shell (7.2.6 1995-03-03) To: Roger Hall , freebsd-stable@FreeBSD.ORG Subject: Re: FW: Network help Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Dec 4, 11:59am, Roger Hall wrote: > Subject: FW: Network help > > In /stand/sysinstall I configured the network with an IP address of > > 192.30.2.125 (which is an internal virtual lan), a gateway of > > 205.218.124.1 and Name Server 205.218.124.2. The 205 addresses are > > public internet address. > > > > In /etc/rc.conf: > > network_interfaces="ep0 sl0 lp0" > > ifconfig_ep0="inet 192.30.2.125 netmask 255.255.255.0" > > ifconfig_sl0="inet 192.30.2.125 netmask 255.255.255.0" > > ifconfig_sl0="inet 192.30.2.125 netmask 255.255.255.0" (that's right, > > two sl's) > > ifconfig_lo0="inet 192.30.2.125 netmask 255.255.255.0" > > > > defaultrouter="205.218.124.1" > > > > But netstat -r is very short: > > > > localhost localhost > > 192.30.2 link#2 > > > > I can ping any 192 address, but 205 is unreachable. Obviously there is > > no route, but why, and how to fix? And isn't that route supposed to > > say "192.30.2.0"? > > > > When I try "route add default gw" as described on page 319 of the > > complete Freebsd, I get: > > > > route: bad address: gw >-- End of excerpt from Roger Hall I hope you have substituted the word "gw" with "205.218.124.1" However I think that your machine on 192 network can't talk to 205 network because the ip protocol doesn't permit it. See at your address and netmask : they say that your network is 192.30.2.0 and your boradcast address is 192.30.2.255 . Only machine that have IP address from 192.30.2.1 to 192.30.2.254 can talk between them. You need to configure an internetwork interface to belong to 205 network and configure your machine as a gateway On the other hand you can configure router as gateway or configure router to do NAT (Network Address Translation) . Regards Roberto -- Grassi Roberto NET1 S.r.l. System & Network Administrator via S.Cristoforo, 44 e-mail: roberto@net-one.it 21047 Saronno (VA) - ITALY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message