Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 11:29:41 -0700
From:      Michael Loftis <mloftis@wgops.com>
To:        Peter Warrick <peter@guest-tek.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Routing
Message-ID:  <3B55D595.A9FC28AA@wgops.com>
References:  <200107170112.TAA30503@mail.guest-tek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
If you mean you want a single-ip alias you can...

ifconfig en1 add 1.2.3.1 netmask 255.255.255.255 ....

Peter Warrick wrote:
> 
> 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

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?3B55D595.A9FC28AA>