Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 1998 13:23:00 +0200 (CEST)
From:      Malte Lance <malte@webmore.com>
To:        Alan Sawyer <frooky@sx.com.au>
Cc:        questions@FreeBSD.ORG
Subject:   RE: Ip aliasing with Freebsd.
Message-ID:  <XFMail.980630132300.malte@webmore.com>
In-Reply-To: <Pine.LNX.3.96.980630140106.15835A-100000@southx.sx.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <being my wan link>
> 
> 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 <malte@webmore.com>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980630132300.malte>