From owner-freebsd-hackers Tue Jul 23 16:04:49 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA22259 for hackers-outgoing; Tue, 23 Jul 1996 16:04:49 -0700 (PDT) Received: from netcom10.netcom.com (nickliu@netcom10.netcom.com [192.100.81.120]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA22254 for ; Tue, 23 Jul 1996 16:04:47 -0700 (PDT) Received: (from nickliu@localhost) by netcom10.netcom.com (8.6.13/Netcom) id QAA07038; Tue, 23 Jul 1996 16:04:23 -0700 Date: Tue, 23 Jul 1996 16:04:23 -0700 (PDT) From: Nick Liu Subject: Re: Ned info for Host Route add To: "Daniel O'Callaghan" cc: Rishi Gautam , hackers@FreeBSD.ORG In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 24 Jul 1996, Daniel O'Callaghan wrote: > > > On Tue, 23 Jul 1996, Rishi Gautam wrote: > > > > > Hi > > > > I have a network with subnet address 192.192.10. I hooked a machine1 > > with IP adress 228.100.11.135. I want to add HOST route in the machine1 > > for the host 192.192.10.30 with LLINFO flag set, so that i can communicate > > to the machine 192.192.10.30. I also want to create a route in the machine > > 192.192.10.30 for the machine1(228,100.11.135) with the LLINFO flag set. > > > > What route command i have to use? I tried all sort of combinations, and > > it's seems that nothing is working. > > The commands i tried are for machine1 228.100.11.135 > > route add -host 192.192.10.30 228.100.11.135 -netmask 255.255.255.255 -interfacee > > error: arp_rtrequest bad gateway value. > > But it add the host rtentry. > > if we did netstat -r, it gives error "arp_resolve: can't allocate llinfo" > > I think it's not creting the space for the llinfo structure in the > > arp_rtrequest, when I am adding the route. > > >From your description, you have things a little upside-down. For > starters, why are you using 228.100.11.135? Isn't 228.*.*.* class D > networks? If this is a private network you should use 192.168.*.*. > > If you are joining the two machines via ethernet, then you need to > allocate IP addresses on the same network to each machine. e.g. > 192.192.10.30 and 192.192.10.40. *Then* you will be able to talk to > machine1. If you want to route 228.100.11.135 packets to machine1, you > then say (on machine.30) > route add 228.100.11.135 192.192.10.40 > > If you want both of these addresses on the ethernet interface, then you > need to: > ifconfig ed0 192.192.10.40 (at the console, of course) > ifconfig ed0 228.100.11.135 alias > > Danny > My other computer is a Win95 box, what do I have to do to set that up? The addresses I intended to use are: 192.168.254.1 for FBSD (as gateway) 192.168.254.2 for Win95 I have issued: ifconfig ed0 192.168.254.1 netmask 0xfffffff0 broadcast 192.168.254.255 (Really appreciate if you help).