Your netmask is probably causing problems. Try 255.0.0.0.

Omachonu Ogali
Intranova Networking Group

On Thu, 6 Jan 2000, John Ioannidis wrote:

> Here is the setup:
> 
> Hosts alice and bob, running 3.4-STABLE, xl interfaces.
> 
> on alice: 
> # ifconfig xl1 10.1.1.1 up netmask 255.255.255.255
> # netstat -r -n
> ...
> 10.1.1.1/32        link#2             UC          0        0      xl1
> ...
> # ping 10.1.1.1
> (yes, it pings fine)
> # netstat -r -n
> ...
> 10.1.1.1           0:10:4b:63:80:33   UHLW        0        4      lo0 =>
> 10.1.1.1/32        link#2             UC          0        0      xl1
> ...
> 
> So far, everything is fine.
> 
> Do the same on bob;
> 
> # ifconfig xl1 10.1.1.2 up netmask 255.255.255.255
> 
> bob can also ping himself.
> 
> Now, how to ping bob from alice? 
> The obvious thing would be to say 
> 
> # route add -interface 10.1.1.2 10.1.1.1
> 
> which creates the following routing entry:
> 
> 10.1.1.2           10.1.1.1           UHS         0       60      xl1
> 
> which of course doesn't work.
> 
> So, what's the right way to do this?  (No, I can't have a shorter
> subnet mask and put both interfaces on the same subnet! Needless to
> say, what I've described is the simplified problem).  There has to be
> a way to tell the routing code "this address may not look like it's on
> any of your subnets, but the way to reach it is to ARP for it through
> interface xl1".  There was definitely a way of doing this back in the
> SunOS 4 (and before) days.
> 
> Help?
> 
> /ji
> 
> --
> John Ioannidis * Secure Systems Research Department * AT&T Labs - Research
> OUR COMMON BOND: Respect for Individuals * Dedication to Helping Customers
>                  Highest Standards of Integrity * Innovation * Teamwork
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to