Date: Tue, 17 Jul 2001 22:28:21 -0400 From: Mike Tancsa <mike@sentex.net> To: peter@guest-tek.com (Peter Warrick) Cc: questions@freebsd.org Subject: Re: Routing Message-ID: <frs9ltg09sliq720oks548hcss5khves09@4ax.com> In-Reply-To: <SEN.995332715.518944271@news.sentex.net> References: <SEN.995332715.518944271@news.sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Jul 2001 21:18:35 -0400, in sentex.lists.freebsd.questions you = wrote: >Ok.. Hopefully I have sent this to the right place. > >I sent in a question to freebsd-net earlier but maybe some clarification= =20 >here might help. I am trying to reproduce the same functionality that I=20 >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=20 >1.2.3.1 immediately. Additionally this does NOT bring the entire 1.2.3.x= =20 >subnet onto my BSD box and this is what I want. I simply want to route=20 >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=20 >alias >route add -host 1.2.3.4 -interface en1 If you have 2 IP address that you want to alias onto the machine who has lets say 192.168.1.1/28,=20 ifconfig lo0 1.2.3.1 netmask 255.255.255.255 alias ifconfig lo0 1.2.3.4 netmask 255.255.255.255 alias As long as the *outside* world knows how to get to these 2 host routes, = you dont need to do anything else. ---Mike Mike Tancsa (mdtancsa@sentex.net) =09 Sentex Communications Corp, =09 Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers=20 could setup a national IP network." (KDW2) 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?frs9ltg09sliq720oks548hcss5khves09>