From owner-freebsd-questions Tue Jun 30 04:26:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA01484 for freebsd-questions-outgoing; Tue, 30 Jun 1998 04:26:29 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (www.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA01165 for ; Tue, 30 Jun 1998 04:26:02 -0700 (PDT) (envelope-from malte@webmore.com) Received: from neuron.webmore.com (unverified [194.95.214.188]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Tue, 30 Jun 1998 13:27:30 +0200 Received: (from malte@webmore.com) by neuron.webmore.com (8.8.8/8.8.8) id NAA01046; Tue, 30 Jun 1998 13:23:00 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 30 Jun 1998 13:23:00 +0200 (CEST) Reply-To: malte@webmore.com From: Malte Lance To: Alan Sawyer Subject: RE: Ip aliasing with Freebsd. Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 30-Jun-98 Alan Sawyer wrote: > Hi, wondering if you can help me. > What I would like to do is lets say I have 2 class C addresses on my LAN. > I would like the BSD machine to have an address for each, and communicate > to the hosts's on each class C via the ip of the respective hosts. > > Okay, setting up an interface > ifconfig ep0 inet 203.19.222.6 netmask 255.255.255.255 alias ifconfig ep0 inet 203.19.222.6 netmask 255.255.255.0 alias Thats all. No "route add ..." Maybe you want to enable forwarding in your "/etc/rc.conf" file. Malte. > > then a route > route -n add -host 203.19.222.6 -iface ed0 > > then I would like to route all traffic to 203.19.222.0 via the .6 ip > route -n add -net 203.19.222.0 203.19.222.6 > route -n add -net 203.36.8.0 203.36.8.34 > route -n add -host 203.36.8.1 203.19.222.6 > route -n add default 203.36.8.1 > > or so I would of thought. I come from a predominantly Linux background, so > I am not certain how to impliment this on BSD. > > Regards, Alan Sawyer. IRC @ Frooky. > Systems/Network Administrator. > Satlink Internet Services P/L > I'm not fat..... I'm festively plump. - Eric Cartman. South Park. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- E-Mail: Malte Lance Date: 30-Jun-98 Time: 13:11:56 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message