From owner-freebsd-questions Mon Jun 29 21:03:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA21833 for freebsd-questions-outgoing; Mon, 29 Jun 1998 21:03:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from southx.sx.com.au (root@SOUTHX.sx.com.au [203.19.222.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA21804 for ; Mon, 29 Jun 1998 21:03:20 -0700 (PDT) (envelope-from frooky@sx.com.au) Received: from southx.sx.com.au (frooky@SOUTHX.sx.com.au [203.19.222.1]) by southx.sx.com.au (8.8.8/8.8.4) with SMTP id OAA15904 for ; Tue, 30 Jun 1998 14:05:42 +1000 Date: Tue, 30 Jun 1998 14:05:40 +1000 (EST) From: Alan Sawyer To: questions@FreeBSD.ORG Subject: Ip aliasing with Freebsd. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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