Date: Mon, 16 Jul 2001 19:15:42 -0600 From: Peter Warrick <peter@guest-tek.com> To: freebsd-questions@freebsd.org Subject: Routing Message-ID: <200107170112.TAA30503@mail.guest-tek.com>
next in thread | raw e-mail | index | archive | help
Ok.. Hopefully I have sent this to the right place. I sent in a question to freebsd-net earlier but maybe some clarification here might help. I am trying to reproduce the same functionality that I have achieved on Redhat Linux on a BSD box. In Redhat linux if I issue these commands.. ifconfig eth1:0 1.2.3.1 netmask 255.255.255.255 route add -host 1.2.3.4 dev eth1:0 A computer connected to my BSD box (1.2.3.4) can then start pinging 1.2.3.1 immediately. Additionally this does NOT bring the entire 1.2.3.x subnet onto my BSD box and this is what I want. I simply want to route these two IPs together so they can talk to each other. On BSD I have tried the following without success... ifconfig en1 1.2.3.1 netmask 255.255.255.255 broadcast 1.255.255.255 alias route add -host 1.2.3.4 -interface en1 I added the broadcast to the ifconfig line in BSD because I noticed in linux my broadcast was 1.255.255.255 by default and BSD wasn't doing this. Yet this still did not help. Is there anything else someone may suggest that I need to do to get this working? Again I have this working on my Redhat Linux box but not my BSD box and I am kind of under the gun to prove that it can be done in BSD as it has been done in Redhat. Thanks guys for any help. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107170112.TAA30503>