Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 1996 08:43:26 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Rishi Gautam <rishim@teil.soft.net>
Cc:        hackers@freebsd.org
Subject:   Re: Ned info for Host Route add
Message-ID:  <Pine.BSF.3.91.960724083808.1006A-100000@panda.hilink.com.au>
In-Reply-To: <9607240203.AA25716@teil.soft.net>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960724083808.1006A-100000>