Re: two public ip addresses on one interface



Wilkinson, Alex wrote:
0n Mon, May 28, 2007 at 11:43:21AM +0400, Eygene Ryabinkin wrote:

>Alex, good day.
>
>Sun, May 27, 2007 at 07:07:41PM +0800, Wilkinson, Alex wrote:
>> > If your aliases are part of the same subnet as the "primary" or first configured IP, then you want to >> > use the all-1's netmask. In your case, however, the second IP is part of a completely different subnet, >> > and you can (and should) use a /24 netmask....
>> >> I have always wondered why we need to use the "all-1's" netmask. Why is this ?
>
>Because if you're stuffing two addresses from the same subnet to
>one interface it will not work: there can be only one route to the
>specified network in the FreeBSD routing table. And adding IP to
>the interface creates the entry in the routing table. So you should
>specify the different mask and most probably 0xffffffff will be the
>best choice, but your mileage may vary with your routing needs.

mmm ... it looks like you can actually get around this on OpenBSD 4.1
with their new "multiple routing table" code.

"Multiple routing tables. What does it mean for PF?

Henning Brauer:
The kernel used to have one routing table per address
family--one for inet, one for inet6, one for IPsec, usually. Now it can have
multiple tables. From within PF, you can select which routing table should be
used for the route lookup later--you can implement policy routing with this. But
much more could be done--this is really only the groundwork. It could be
possible, in future, to have overlapping address ranges on interfaces and place
interfaces into different routing tables, forming a kind of virtual routers. And
of course, the routing daemons will learn to make more use of alternate
tables."

the trouble I have with this is that by the time pf or ipfw get to the packet,
the routing has already been done.



[http://www.onlamp.com/pub/a/bsd/2007/05/03/openbsd-41-puffy-strikes-again.html?page=2]

-aW

IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.


_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Routing Problem
    ... Subject: Routing Problem ... each with a different subnet. ... it should use the second default gateway. ... > routers configured on multiple interfaces connected to two or more ...
    (freebsd-questions)
  • Re: MultiHomed Workstation - Which NIC is being used?
    ... Regardless of which interface received ... the same routing rules apply for return traffic. ... >> the subnet mask. ... >> load balancing of multiple NICs and default gateways. ...
    (microsoft.public.win2000.networking)
  • Re: Could an ICMP Redirect have disconnected my server?
    ... yes - but you seem to have a strange network ... does a routing table entry from an ICMP Redirect time out? ... systems with the same subnet number. ...
    (comp.os.linux.networking)
  • Re: VPN connection works, lan access fails
    ... "real" routing going on because they are all in the same IP subnet. ... the LAN to pick up replies for the remotes. ... through the VPN server. ...
    (microsoft.public.win2000.ras_routing)
  • Re: please advise - problem with routing
    ... > Sorry for the confusion, again, ther is cisco router which connects ... > "Dana Brash" wrote in message ... >> This configuration can be accomplished by changing the subnet mask on ... >> routing anything and just using a different subnet mask, ...
    (microsoft.public.windows.server.networking)