Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 02:39:54 -0400 (EDT)
From:      Mike Nowlin <mike@argos.org>
To:        freebsd-net@freebsd.org
Subject:   src IP addr w/multiple ifaces
Message-ID:  <Pine.LNX.4.21.0010240230560.9980-100000@jason.argos.org>

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

I have a system here that has four different ethernet interfaces (dc0,
dc1, dc2, and fxp0), each on a different IP address:

  dc0    10.220.134.162/30   <-- Link to outside world
  dc1    1.2.3.4/27          <-- Subnet assigned by my ISP
  dc2    10.98.1.1/16
  fxp0   10.97.1.1/16

The machines "assigned" IP is the 1.2.3.4 addr, but anytime I try
and make an outgoing connection, it uses a src IP of 10.220.134.162, not
1.2.3.4.  (We had to do it this way so that the ISP could route the /27
block via 10.220.134.162.)  

How is this source IP chosen in the kernel - by order of
interfaces?  (The order listed above is the order probed during
bootup.)  Is there any way to force it to use the 1.2.3.4 addr instead of
10.220.134.162?  I imagine I could figure it out with NATD, but I see that
as being a little ugly...


--mike





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0010240230560.9980-100000>