From owner-freebsd-questions Sun Dec 17 5:58:33 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 05:58:30 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from gradient.cis.upenn.edu (GRADIENT.CIS.UPENN.EDU [158.130.67.48]) by hub.freebsd.org (Postfix) with ESMTP id 9F8D337B400 for ; Sun, 17 Dec 2000 05:58:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gradient.cis.upenn.edu (8.10.1/8.10.1) with ESMTP id eBHDwRt13282; Sun, 17 Dec 2000 08:58:28 -0500 (EST) Date: Sun, 17 Dec 2000 08:58:27 -0500 (EST) From: Alwyn Goodloe To: cjclark@alum.mit.edu Cc: questions@FreeBSD.ORG Subject: Re: network testbed setup question In-Reply-To: <20001216231145.D96105@149.211.6.64.reflexcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Crist, THanks for your advise. The crossover cable thing fixed most of the problems - I can ping and telnet between two machines for example. I seem to forget about those crossover cables about every two years -- advancing age..... I'm not sure why you say I don't need routed, isn't that necessary to do routing. This is needed in the experiment since I need to mimic a real environment even though I only have three machines and only one acts as a router. I was under the impression that I needed to have the following in rc.conf gateway_enable ="YES" router_enable="YES" router="routed" router_flags="-s" I guess for something this trivial I don't need to do much with respect to the routing tables.Are you saying that I don't should have gateway_enable = "YES" and router_enable="YES" (or should this be "NO"). The important thing is that I need to route between different networks and have the firewall software be able to filter and divert packets. Alwyn agoodloe@gradient.cis.upenn.edu On Sat, 16 Dec 2000, Crist J. Clark wrote: > On Sat, Dec 16, 2000 at 09:45:23PM -0500, Alwyn Goodloe wrote: > > Hey Guys & Gals, > > > > I have am trying to set up a simple testbed with three computers. I am > > using the standard 192.168 address for a private network. For my experiment > > I need two networks which in my case is 192.168.1 and 192.158.5. > > The other two machines are the single machines on the respective networks. > > This may sound strange but it has to be that way for my test. > > One machine acts as a router between the two networks. I have two nic > > cards in the router and just string normal 10base T cable between it > > and the clients (i couldn't see the need for something more complicated > > but please feel free to correct me). > > Someone else mentioned crossover cables. Make sure you have link on > all interfaces. > > > On the router I run routed. > > You don't need routed(8). Turn it off. > > > The two interfaces ep0 and ep1 seem to be > > configured OK when I run ifconfig -a I get > > > > > > flags - 8a43 > inet 192.168.1.5 netmask ...... broadcast 192.168.1.255 ..... > > > > similarly for the other one, > > > > When I first sit things up and tried to ping a client from the router I > > got Host is Down. So I added the route in the routing table since I > > figured that it didn't know what interface to go out on. (Though the non > > router boxes have the same error.) > > You should not have to modify the routing table. Using ifconfig(8) > should have set up the only routes you need for this. What does, > > $ netstat -rn > > Say? > > > After adding the route the error message > > was: > > > > Time to Live exceeded. > > You've got a routing loop. > > > Also routed is periodically giving me: > > > > routed[142]: send to(ep0,244.0.0.1) No Route to Host > > > > routed[142]: send to(ep1,244.0.0.1) No Route to Host > > You don't need routed(8). Turn it off. > -- > Crist J. Clark cjclark@alum.mit.edu > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message